Mukbang meditation kitsch
Lomo migas ascot beard irony kickstarter unicorn keytar. Asymmetrical pok pok keffiyeh single-origin coffee.
diff --git a/src/assets/components/nss-membership-card/standard.html b/src/assets/components/nss-membership-card/standard.html
index 36b6ec097..1f76dc626 100644
--- a/src/assets/components/nss-membership-card/standard.html
+++ b/src/assets/components/nss-membership-card/standard.html
@@ -1,4 +1,3 @@
-
Readymade air plant
Tumblr irony listicle chicharrones la croix put a bird on it master cleanse tote bag street art next level.
diff --git a/src/components/ExampleConfigure.astro b/src/components/ExampleConfigure.astro
index 6c20ce602..a2d038c81 100644
--- a/src/components/ExampleConfigure.astro
+++ b/src/components/ExampleConfigure.astro
@@ -1,5 +1,7 @@
---
const { componentName } = Astro.props;
+const { disableAttributes } = Astro.props;
+const { snowflake = false } = Astro.props;
import { NucleusComponentRenderer } from './NucleusComponentRenderer';
import { NucleusCodeSnippet } from './NucleusCodeSnippet';
@@ -163,6 +165,7 @@ attributes?.splice(0, 0, typeAttribute[0]);
{
customElement?.attributes?.map((attribute) => {
const defaultValue = attribute.default?.replaceAll('"', '');
+ const disabled = disableAttributes?.includes(attribute.name) ? 'disabled' : '';
if (attribute.type === 'string') {
if (attribute.name === 'icon' || (componentName === 'ns-icon' && attribute.name === 'name') || (componentName !== 'ns-icon' && attribute.description?.includes('icon'))) {
return (
@@ -196,7 +199,7 @@ attributes?.splice(0, 0, typeAttribute[0]);
return (
-
+
);
}
@@ -222,7 +225,7 @@ attributes?.splice(0, 0, typeAttribute[0]);
return (
-
+
);
} else if (attribute.type === 'boolean') {
@@ -235,7 +238,7 @@ attributes?.splice(0, 0, typeAttribute[0]);
const checked = defaultValue === option ? true : false;
return (
-
+
)
})
@@ -247,7 +250,7 @@ attributes?.splice(0, 0, typeAttribute[0]);
return (
-
+
);
}
@@ -273,7 +276,7 @@ attributes?.splice(0, 0, typeAttribute[0]);
Preview
-
+
diff --git a/src/components/ExampleViewer.astro b/src/components/ExampleViewer.astro
index 9dd1e6aba..2022ebd1a 100644
--- a/src/components/ExampleViewer.astro
+++ b/src/components/ExampleViewer.astro
@@ -8,6 +8,7 @@ const componentName = slug?.replace('components/', '');
const { type } = Astro.props;
const { disableConfigure = false } = Astro.props;
+const { snowflake = false } = Astro.props;
const exampleFileMatcher = `/assets/${slug}/${type}.html`;
const examples = import.meta.glob("../assets/**/*.html", { import: 'default', as: 'raw', eager: true});
const htmlFile = Object.keys(examples).find((example) => example?.endsWith(exampleFileMatcher));
@@ -22,7 +23,7 @@ const htmlContent = await examples[htmlFile];
)
}
-
+
diff --git a/src/components/NucleusComponentRenderer.js b/src/components/NucleusComponentRenderer.js
index ad6892d00..a494dbc42 100644
--- a/src/components/NucleusComponentRenderer.js
+++ b/src/components/NucleusComponentRenderer.js
@@ -11,6 +11,7 @@ export class NucleusComponentRenderer extends LitElement {
src: { type: String },
_minHeight: { type: Number, state: true },
zoom: { type: Boolean },
+ snowflake: { type: Boolean },
_viewport: { type: String, state: true },
_customElement: { type: Object, state: true },
_loading: { type: Boolean }
@@ -115,6 +116,7 @@ export class NucleusComponentRenderer extends LitElement {
this._viewport = 'desktop';
this.zoom = '75';
this._loading = false;
+ this.snowflake = false;
}
willUpdate() {
@@ -163,6 +165,7 @@ export class NucleusComponentRenderer extends LitElement {
return `
+ ${this.snowflake ? '' : ''}
${mainWrapper}
diff --git a/src/components/figma.astro b/src/components/figma.astro
index fd5eb00a2..57f5ac937 100644
--- a/src/components/figma.astro
+++ b/src/components/figma.astro
@@ -1,8 +1,6 @@
---
-import LinkToComponent from "./LinkToComponent.astro";
const { name } = Astro.props;
import { Icon } from "@astrojs/starlight/components";
-import { ceJsDoc } from "../scripts/custom-elements";
// Define the common URL for the Figma UI Kit that prepends the node ID
const urlFigmaUIKit =
diff --git a/src/components/placement.astro b/src/components/placement.astro
index 0950820e2..7ad32dce1 100644
--- a/src/components/placement.astro
+++ b/src/components/placement.astro
@@ -1,10 +1,9 @@
---
import LinkToComponent from "./LinkToComponent.astro";
const { name } = Astro.props;
-import { ceJsDoc, sfCEJsDoc } from "../scripts/custom-elements";
+import { ceJsDoc } from "../scripts/custom-elements";
-const placements = [...ceJsDoc, ...sfCEJsDoc].find((tag) => tag.name === name)?.placements;
-console.log('placements ', placements);
+const placements = ceJsDoc.find((tag) => tag.name === name)?.placements;
---
{
placements?.length > 0 && (
diff --git a/src/components/specification.astro b/src/components/specification.astro
index 88c979ae9..6e3f6c015 100644
--- a/src/components/specification.astro
+++ b/src/components/specification.astro
@@ -1,15 +1,18 @@
---
import LinkToComponent from "./LinkToComponent.astro";
const { name } = Astro.props;
+const { exclude } = Astro.props;
-import { customElements, ceJsDoc, sfCustomElements, sfCEJsDoc } from "../scripts/custom-elements";
+import { customElements, ceJsDoc } from "../scripts/custom-elements";
-const compDetails = {...customElements, ...sfCustomElements}.tags.find((tag) => tag.name === name);
-const jsdocDetails = [...ceJsDoc, ...sfCEJsDoc].find((tag) => tag.name === name);
+const compDetails = customElements.tags.find((tag) => tag.name === name);
+const jsdocDetails = ceJsDoc.find((tag) => tag.name === name);
const properties = compDetails?.properties;
const slots = jsdocDetails?.slots;
const events = compDetails?.events;
+
+const excludedAttributes = exclude?.split(',').map((item) => item.trim());
---