@arshad-shah/cynosure 0.3.0 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -3
- package/dist/adapters/astro/index.d.ts +52 -0
- package/dist/adapters/astro/index.js +27 -0
- package/dist/adapters/astro/index.js.map +1 -0
- package/dist/adapters/vite/index.d.ts +11 -0
- package/dist/adapters/vite/index.js +33 -12
- package/dist/adapters/vite/index.js.map +1 -1
- package/dist/brands/googleplay.d.ts +2 -0
- package/dist/brands/googleplay.js +17 -0
- package/dist/brands/googleplay.js.map +1 -0
- package/dist/brands/index.d.ts +1 -0
- package/dist/brands/index.js +132 -130
- package/dist/components/Announcer/Announcer.js +5 -5
- package/dist/components/Announcer/Announcer.js.map +1 -1
- package/dist/components/AppShell/AppShell.js +50 -53
- package/dist/components/AppShell/AppShell.js.map +1 -1
- package/dist/components/Avatar/Avatar.js +20 -20
- package/dist/components/Avatar/Avatar.js.map +1 -1
- package/dist/components/Button/Button.d.ts +17 -3
- package/dist/components/Button/Button.js +51 -44
- package/dist/components/Button/Button.js.map +1 -1
- package/dist/components/Calendar/Calendar.js +69 -69
- package/dist/components/Calendar/Calendar.js.map +1 -1
- package/dist/components/Card/Card.d.ts +8 -1
- package/dist/components/Card/Card.js.map +1 -1
- package/dist/components/Checkbox/Checkbox.d.ts +4 -4
- package/dist/components/Checkbox/Checkbox.js +33 -8
- package/dist/components/Checkbox/Checkbox.js.map +1 -1
- package/dist/components/Checklist/Checklist.js +21 -21
- package/dist/components/Checklist/Checklist.js.map +1 -1
- package/dist/components/Choice/Choice.d.ts +73 -0
- package/dist/components/Choice/Choice.js +41 -0
- package/dist/components/Choice/Choice.js.map +1 -0
- package/dist/components/Choice/index.d.ts +1 -0
- package/dist/components/ColorField/ColorField.js +198 -207
- package/dist/components/ColorField/ColorField.js.map +1 -1
- package/dist/components/Combobox/Combobox.js +86 -115
- package/dist/components/Combobox/Combobox.js.map +1 -1
- package/dist/components/Container/Container.d.ts +2 -2
- package/dist/components/Container/Container.js +17 -13
- package/dist/components/Container/Container.js.map +1 -1
- package/dist/components/CopyButton/CopyButton.js +29 -28
- package/dist/components/CopyButton/CopyButton.js.map +1 -1
- package/dist/components/DeviceFrame/DeviceFrame.d.ts +63 -0
- package/dist/components/DeviceFrame/DeviceFrame.js +54 -0
- package/dist/components/DeviceFrame/DeviceFrame.js.map +1 -0
- package/dist/components/DeviceFrame/index.d.ts +1 -0
- package/dist/components/Dialog/Dialog.d.ts +10 -1
- package/dist/components/Dialog/Dialog.js +82 -77
- package/dist/components/Dialog/Dialog.js.map +1 -1
- package/dist/components/EmptyState/EmptyState.d.ts +5 -2
- package/dist/components/EmptyState/EmptyState.js.map +1 -1
- package/dist/components/Field/Field.js +31 -33
- package/dist/components/Field/Field.js.map +1 -1
- package/dist/components/FileDrop/FileDrop.js +14 -14
- package/dist/components/FileDrop/FileDrop.js.map +1 -1
- package/dist/components/FloatingToolbar/FloatingToolbar.js +7 -6
- package/dist/components/FloatingToolbar/FloatingToolbar.js.map +1 -1
- package/dist/components/Grid/Grid.d.ts +32 -11
- package/dist/components/Grid/Grid.js +68 -46
- package/dist/components/Grid/Grid.js.map +1 -1
- package/dist/components/Grid/index.d.ts +1 -1
- package/dist/components/Heading/Heading.d.ts +4 -2
- package/dist/components/Heading/Heading.js.map +1 -1
- package/dist/components/IconButton/IconButton.d.ts +16 -1
- package/dist/components/IconButton/IconButton.js +14 -10
- package/dist/components/IconButton/IconButton.js.map +1 -1
- package/dist/components/IconTile/IconTile.d.ts +45 -0
- package/dist/components/IconTile/IconTile.js +25 -0
- package/dist/components/IconTile/IconTile.js.map +1 -0
- package/dist/components/IconTile/index.d.ts +1 -0
- package/dist/components/Image/Image.js.map +1 -1
- package/dist/components/Inline/Inline.d.ts +3 -3
- package/dist/components/Inline/Inline.js +12 -22
- package/dist/components/Inline/Inline.js.map +1 -1
- package/dist/components/KeyValueEditor/KeyValueEditor.js +37 -36
- package/dist/components/KeyValueEditor/KeyValueEditor.js.map +1 -1
- package/dist/components/Link/Link.d.ts +9 -1
- package/dist/components/Link/Link.js +20 -18
- package/dist/components/Link/Link.js.map +1 -1
- package/dist/components/List/List.d.ts +73 -0
- package/dist/components/List/List.js +64 -0
- package/dist/components/List/List.js.map +1 -0
- package/dist/components/List/index.d.ts +1 -0
- package/dist/components/Notice/Notice.js +12 -11
- package/dist/components/Notice/Notice.js.map +1 -1
- package/dist/components/OptionList/OptionList.d.ts +69 -0
- package/dist/components/OptionList/OptionList.js +75 -0
- package/dist/components/OptionList/OptionList.js.map +1 -0
- package/dist/components/OptionList/index.d.ts +1 -0
- package/dist/components/PageHeader/PageHeader.d.ts +6 -0
- package/dist/components/PageHeader/PageHeader.js +27 -27
- package/dist/components/PageHeader/PageHeader.js.map +1 -1
- package/dist/components/Pagination/Pagination.js +31 -30
- package/dist/components/Pagination/Pagination.js.map +1 -1
- package/dist/components/QRCode/QRCode.d.ts +56 -0
- package/dist/components/QRCode/QRCode.js +48 -0
- package/dist/components/QRCode/QRCode.js.map +1 -0
- package/dist/components/QRCode/index.d.ts +1 -0
- package/dist/components/RadioGroup/RadioGroup.js +32 -24
- package/dist/components/RadioGroup/RadioGroup.js.map +1 -1
- package/dist/components/Section/Section.d.ts +57 -0
- package/dist/components/Section/Section.js +27 -0
- package/dist/components/Section/Section.js.map +1 -0
- package/dist/components/Section/index.d.ts +1 -0
- package/dist/components/SegmentedControl/SegmentedControl.js +12 -12
- package/dist/components/SegmentedControl/SegmentedControl.js.map +1 -1
- package/dist/components/Select/Select.js +106 -133
- package/dist/components/Select/Select.js.map +1 -1
- package/dist/components/Sheet/Sheet.js +12 -7
- package/dist/components/Sheet/Sheet.js.map +1 -1
- package/dist/components/SideNav/SideNav.js +55 -53
- package/dist/components/SideNav/SideNav.js.map +1 -1
- package/dist/components/SiteFooter/SiteFooter.d.ts +66 -0
- package/dist/components/SiteFooter/SiteFooter.js +80 -0
- package/dist/components/SiteFooter/SiteFooter.js.map +1 -0
- package/dist/components/SiteFooter/index.d.ts +1 -0
- package/dist/components/SiteHeader/SiteHeader.d.ts +78 -0
- package/dist/components/SiteHeader/SiteHeader.js +114 -0
- package/dist/components/SiteHeader/SiteHeader.js.map +1 -0
- package/dist/components/SiteHeader/index.d.ts +1 -0
- package/dist/components/SkipLink/SkipLink.d.ts +42 -0
- package/dist/components/SkipLink/SkipLink.js +43 -0
- package/dist/components/SkipLink/SkipLink.js.map +1 -0
- package/dist/components/SkipLink/index.d.ts +1 -0
- package/dist/components/SortableList/SortableList.js +13 -13
- package/dist/components/SortableList/SortableList.js.map +1 -1
- package/dist/components/Stack/Stack.d.ts +16 -7
- package/dist/components/Stack/Stack.js +25 -18
- package/dist/components/Stack/Stack.js.map +1 -1
- package/dist/components/Stack/index.d.ts +1 -1
- package/dist/components/Stack/space.d.ts +29 -0
- package/dist/components/Stack/space.js +16 -5
- package/dist/components/Stack/space.js.map +1 -1
- package/dist/components/Stat/Stat.d.ts +88 -0
- package/dist/components/Stat/Stat.js +105 -0
- package/dist/components/Stat/Stat.js.map +1 -0
- package/dist/components/Stat/index.d.ts +1 -0
- package/dist/components/Steps/Steps.d.ts +10 -4
- package/dist/components/Steps/Steps.js +31 -30
- package/dist/components/Steps/Steps.js.map +1 -1
- package/dist/components/Switch/Switch.d.ts +4 -4
- package/dist/components/Switch/Switch.js +18 -7
- package/dist/components/Switch/Switch.js.map +1 -1
- package/dist/components/Table/Table.js +11 -12
- package/dist/components/Table/Table.js.map +1 -1
- package/dist/components/Tabs/Tabs.d.ts +4 -1
- package/dist/components/Tabs/Tabs.js +71 -70
- package/dist/components/Tabs/Tabs.js.map +1 -1
- package/dist/components/TagInput/TagInput.js +76 -97
- package/dist/components/TagInput/TagInput.js.map +1 -1
- package/dist/components/TextField/TextField.d.ts +4 -0
- package/dist/components/TextField/TextField.js +30 -29
- package/dist/components/TextField/TextField.js.map +1 -1
- package/dist/components/ThemeToggle/ThemeToggle.d.ts +7 -1
- package/dist/components/ThemeToggle/ThemeToggle.js +33 -30
- package/dist/components/ThemeToggle/ThemeToggle.js.map +1 -1
- package/dist/components/Toast/Toast.js +22 -20
- package/dist/components/Toast/Toast.js.map +1 -1
- package/dist/components/Tooltip/Tooltip.d.ts +6 -1
- package/dist/components/Tooltip/Tooltip.js +19 -19
- package/dist/components/Tooltip/Tooltip.js.map +1 -1
- package/dist/components/VisuallyHidden/VisuallyHidden.d.ts +24 -0
- package/dist/components/VisuallyHidden/VisuallyHidden.js +17 -0
- package/dist/components/VisuallyHidden/VisuallyHidden.js.map +1 -0
- package/dist/components/VisuallyHidden/index.d.ts +1 -0
- package/dist/foundations/ChoiceBase/ChoiceBase.js +8 -8
- package/dist/foundations/ChoiceBase/ChoiceBase.js.map +1 -1
- package/dist/foundations/HiddenValue/HiddenValue.js +5 -5
- package/dist/foundations/HiddenValue/HiddenValue.js.map +1 -1
- package/dist/foundations/Icon/Icon.d.ts +6 -1
- package/dist/foundations/Icon/Icon.js +15 -14
- package/dist/foundations/Icon/Icon.js.map +1 -1
- package/dist/foundations/image-outcome.d.ts +8 -3
- package/dist/foundations/image-outcome.js +12 -8
- package/dist/foundations/image-outcome.js.map +1 -1
- package/dist/foundations/printing.d.ts +6 -0
- package/dist/foundations/printing.js +17 -0
- package/dist/foundations/printing.js.map +1 -0
- package/dist/foundations/qr.d.ts +42 -0
- package/dist/foundations/qr.js +246 -0
- package/dist/foundations/qr.js.map +1 -0
- package/dist/icons/book-marked.d.ts +2 -0
- package/dist/icons/book-marked.js +14 -0
- package/dist/icons/book-marked.js.map +1 -0
- package/dist/icons/calendar-days.d.ts +2 -0
- package/dist/icons/calendar-days.js +24 -0
- package/dist/icons/calendar-days.js.map +1 -0
- package/dist/icons/check-square.d.ts +2 -0
- package/dist/icons/check-square.js +14 -0
- package/dist/icons/check-square.js.map +1 -0
- package/dist/icons/crescent.d.ts +2 -0
- package/dist/icons/crescent.js +14 -0
- package/dist/icons/crescent.js.map +1 -0
- package/dist/icons/index.d.ts +10 -0
- package/dist/icons/index.js +436 -416
- package/dist/icons/kaaba.d.ts +2 -0
- package/dist/icons/kaaba.js +14 -0
- package/dist/icons/kaaba.js.map +1 -0
- package/dist/icons/keywords.d.ts +11 -1
- package/dist/icons/keywords.js +89 -1
- package/dist/icons/keywords.js.map +1 -1
- package/dist/icons/list-tree.d.ts +2 -0
- package/dist/icons/list-tree.js +14 -0
- package/dist/icons/list-tree.js.map +1 -0
- package/dist/icons/mosque.d.ts +2 -0
- package/dist/icons/mosque.js +14 -0
- package/dist/icons/mosque.js.map +1 -0
- package/dist/icons/prayer-beads.d.ts +2 -0
- package/dist/icons/prayer-beads.js +67 -0
- package/dist/icons/prayer-beads.js.map +1 -0
- package/dist/icons/qr-code.d.ts +2 -0
- package/dist/icons/qr-code.js +38 -0
- package/dist/icons/qr-code.js.map +1 -0
- package/dist/icons/refresh-cw.d.ts +2 -0
- package/dist/icons/refresh-cw.js +14 -0
- package/dist/icons/refresh-cw.js.map +1 -0
- package/dist/icons/types.d.ts +1 -1
- package/dist/icons/types.js +2 -1
- package/dist/icons/types.js.map +1 -1
- package/dist/index.d.ts +16 -2
- package/dist/index.js +274 -241
- package/dist/styles/announcer.css +1 -1
- package/dist/styles/app-shell.css +1 -1
- package/dist/styles/avatar.css +1 -1
- package/dist/styles/base.css +1 -1
- package/dist/styles/button.css +1 -1
- package/dist/styles/calendar.css +1 -1
- package/dist/styles/card.css +1 -1
- package/dist/styles/checkbox.css +1 -1
- package/dist/styles/choice-base.css +1 -0
- package/dist/styles/choice.css +1 -1
- package/dist/styles/color-field.css +1 -1
- package/dist/styles/combobox.css +1 -1
- package/dist/styles/copy-button.css +1 -1
- package/dist/styles/date-field.css +1 -1
- package/dist/styles/device-frame.css +1 -0
- package/dist/styles/dialog.css +1 -1
- package/dist/styles/disclosure.css +1 -1
- package/dist/styles/field.css +1 -1
- package/dist/styles/file-drop.css +1 -1
- package/dist/styles/floating-toolbar.css +1 -1
- package/dist/styles/generated-css.d.ts +1 -1
- package/dist/styles/generated-css.js +1 -1
- package/dist/styles/generated-css.js.map +1 -1
- package/dist/styles/grid.css +1 -1
- package/dist/styles/heading.css +1 -1
- package/dist/styles/icon-tile.css +1 -0
- package/dist/styles/icon.css +1 -1
- package/dist/styles/inline.css +1 -0
- package/dist/styles/key-value-editor.css +1 -1
- package/dist/styles/link.css +1 -1
- package/dist/styles/list.css +1 -0
- package/dist/styles/manifest.json +715 -0
- package/dist/styles/notice.css +1 -1
- package/dist/styles/number-field.css +1 -1
- package/dist/styles/option-list.css +1 -0
- package/dist/styles/pagination.css +1 -1
- package/dist/styles/qr-code.css +1 -0
- package/dist/styles/radio-group.css +1 -1
- package/dist/styles/section.css +1 -0
- package/dist/styles/segmented-control.css +1 -1
- package/dist/styles/select.css +1 -1
- package/dist/styles/sheet.css +1 -1
- package/dist/styles/side-nav.css +1 -1
- package/dist/styles/site-footer.css +1 -0
- package/dist/styles/site-header.css +1 -0
- package/dist/styles/skip-link.css +1 -0
- package/dist/styles/sortable-list.css +1 -1
- package/dist/styles/stack.css +1 -1
- package/dist/styles/stat.css +1 -0
- package/dist/styles/steps.css +1 -1
- package/dist/styles/switch.css +1 -0
- package/dist/styles/table.css +1 -1
- package/dist/styles/tabs.css +1 -1
- package/dist/styles/tag-input.css +1 -1
- package/dist/styles/text-field.css +1 -1
- package/dist/styles/time-field.css +1 -1
- package/dist/styles/toast.css +1 -1
- package/dist/styles/visually-hidden.css +1 -0
- package/dist/styles.css +1 -1
- package/dist/tokens/create-theme.js +137 -108
- package/dist/tokens/create-theme.js.map +1 -1
- package/package.json +6 -1
- package/dist/components/Checkbox/ChoiceRow.d.ts +0 -39
- package/dist/components/Checkbox/ChoiceRow.js +0 -58
- package/dist/components/Checkbox/ChoiceRow.js.map +0 -1
- package/dist/styles/hidden-value.css +0 -1
- package/dist/styles/iconbutton.css +0 -1
- package/dist/styles/search-field.css +0 -1
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
var h = {
|
|
2
|
+
name: "qr-code",
|
|
3
|
+
category: "data",
|
|
4
|
+
body: [
|
|
5
|
+
["rect", {
|
|
6
|
+
x: 3.5,
|
|
7
|
+
y: 3.5,
|
|
8
|
+
width: 7,
|
|
9
|
+
height: 7,
|
|
10
|
+
rx: 2
|
|
11
|
+
}],
|
|
12
|
+
["rect", {
|
|
13
|
+
x: 13.5,
|
|
14
|
+
y: 3.5,
|
|
15
|
+
width: 7,
|
|
16
|
+
height: 7,
|
|
17
|
+
rx: 2
|
|
18
|
+
}],
|
|
19
|
+
["rect", {
|
|
20
|
+
x: 3.5,
|
|
21
|
+
y: 13.5,
|
|
22
|
+
width: 7,
|
|
23
|
+
height: 7,
|
|
24
|
+
rx: 2
|
|
25
|
+
}],
|
|
26
|
+
["path", { d: "M7 7h.01M17 7h.01M7 17h.01" }],
|
|
27
|
+
["path", {
|
|
28
|
+
d: "M13.5 13.5h3.5M20.5 13.5V17M13.5 17v3.5M17 17h.01M17 20.5h3.5",
|
|
29
|
+
animate: !0
|
|
30
|
+
}]
|
|
31
|
+
],
|
|
32
|
+
motion: "pop"
|
|
33
|
+
};
|
|
34
|
+
export {
|
|
35
|
+
h as qrCode
|
|
36
|
+
};
|
|
37
|
+
|
|
38
|
+
//# sourceMappingURL=qr-code.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"qr-code.js","names":["qrCode"],"sources":["../../src/icons/qr-code.ts"],"sourcesContent":["import type { IconData } from \"./types.js\";\n\nexport const qrCode: IconData = {\n name: \"qr-code\",\n category: \"data\",\n body: [\n [\"rect\", { x: 3.5, y: 3.5, width: 7, height: 7, rx: 2 }],\n [\"rect\", { x: 13.5, y: 3.5, width: 7, height: 7, rx: 2 }],\n [\"rect\", { x: 3.5, y: 13.5, width: 7, height: 7, rx: 2 }],\n [\"path\", { d: \"M7 7h.01M17 7h.01M7 17h.01\" }],\n [\"path\", { d: \"M13.5 13.5h3.5M20.5 13.5V17M13.5 17v3.5M17 17h.01M17 20.5h3.5\", animate: true }],\n ],\n motion: \"pop\",\n};\n"],"mappings":"AAEA,IAAaA,IAAmB;AAAA,EAC9B,MAAM;AAAA,EACN,UAAU;AAAA,EACV,MAAM;AAAA,IACJ,CAAC,QAAQ;AAAA,MAAE,GAAG;AAAA,MAAK,GAAG;AAAA,MAAK,OAAO;AAAA,MAAG,QAAQ;AAAA,MAAG,IAAI;AAAA,IAAE,CAAC;AAAA,IACvD,CAAC,QAAQ;AAAA,MAAE,GAAG;AAAA,MAAM,GAAG;AAAA,MAAK,OAAO;AAAA,MAAG,QAAQ;AAAA,MAAG,IAAI;AAAA,IAAE,CAAC;AAAA,IACxD,CAAC,QAAQ;AAAA,MAAE,GAAG;AAAA,MAAK,GAAG;AAAA,MAAM,OAAO;AAAA,MAAG,QAAQ;AAAA,MAAG,IAAI;AAAA,IAAE,CAAC;AAAA,IACxD,CAAC,QAAQ,EAAE,GAAG,6BAA6B,CAAC;AAAA,IAC5C,CAAC,QAAQ;AAAA,MAAE,GAAG;AAAA,MAAiE,SAAS;AAAA,IAAK,CAAC;AAAA,EAChG;AAAA,EACA,QAAQ;AACV"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
var a = {
|
|
2
|
+
name: "refresh-cw",
|
|
3
|
+
category: "actions",
|
|
4
|
+
body: [["path", {
|
|
5
|
+
d: "M4 12a8 8 0 0 1 14.5-4.65M20 12a8 8 0 0 1-14.5 4.65M19 3.5v4h-4M5 20.5v-4h4",
|
|
6
|
+
animate: !0
|
|
7
|
+
}]],
|
|
8
|
+
motion: "spin"
|
|
9
|
+
};
|
|
10
|
+
export {
|
|
11
|
+
a as refreshCw
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
//# sourceMappingURL=refresh-cw.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"refresh-cw.js","names":["refreshCw"],"sources":["../../src/icons/refresh-cw.ts"],"sourcesContent":["import type { IconData } from \"./types.js\";\n\nexport const refreshCw: IconData = {\n name: \"refresh-cw\",\n category: \"actions\",\n body: [\n [\n \"path\",\n { d: \"M4 12a8 8 0 0 1 14.5-4.65M20 12a8 8 0 0 1-14.5 4.65M19 3.5v4h-4M5 20.5v-4h4\", animate: true },\n ],\n ],\n motion: \"spin\",\n};\n"],"mappings":"AAEA,IAAaA,IAAsB;AAAA,EACjC,MAAM;AAAA,EACN,UAAU;AAAA,EACV,MAAM,CACJ,CACE,QACA;AAAA,IAAE,GAAG;AAAA,IAA+E,SAAS;AAAA,EAAK,CACpG,CACF;AAAA,EACA,QAAQ;AACV"}
|
package/dist/icons/types.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/** Facet icons: 24×24 grid, 1.75 round stroke, softened-square geometry, stroke only. */
|
|
2
2
|
/** Gallery and documentation grouping. Every icon belongs to exactly one category. */
|
|
3
|
-
export declare const ICON_CATEGORIES: readonly ["arrows", "navigation", "actions", "editing", "files", "data", "media", "communication", "status", "time", "security", "people", "devices", "design", "layout", "maths"];
|
|
3
|
+
export declare const ICON_CATEGORIES: readonly ["arrows", "navigation", "actions", "editing", "files", "data", "media", "communication", "status", "time", "security", "people", "devices", "design", "layout", "maths", "faith"];
|
|
4
4
|
export type IconCategory = (typeof ICON_CATEGORIES)[number];
|
|
5
5
|
export type IconMotion = "tilt" | "rotate" | "flip" | "draw" | "lift" | "drop" | "spin" | "pop" | "nudge" | "slide";
|
|
6
6
|
/** `animate: true` marks the part that moves when the icon's motion plays. */
|
package/dist/icons/types.js
CHANGED
package/dist/icons/types.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","names":["ICON_CATEGORIES"],"sources":["../../src/icons/types.ts"],"sourcesContent":["/** Facet icons: 24×24 grid, 1.75 round stroke, softened-square geometry, stroke only. */\n\n/** Gallery and documentation grouping. Every icon belongs to exactly one category. */\nexport const ICON_CATEGORIES = [\n \"arrows\",\n \"navigation\",\n \"actions\",\n \"editing\",\n \"files\",\n \"data\",\n \"media\",\n \"communication\",\n \"status\",\n \"time\",\n \"security\",\n \"people\",\n \"devices\",\n \"design\",\n \"layout\",\n \"maths\",\n] as const;\nexport type IconCategory = (typeof ICON_CATEGORIES)[number];\n\nexport type IconMotion =\n | \"tilt\"\n | \"rotate\"\n | \"flip\"\n | \"draw\"\n | \"lift\"\n | \"drop\"\n | \"spin\"\n | \"pop\"\n | \"nudge\"\n | \"slide\";\n\n/** `animate: true` marks the part that moves when the icon's motion plays. */\ninterface Part {\n animate?: true;\n}\nexport type IconNode =\n | [\"path\", Part & { d: string }]\n | [\"rect\", Part & { x: number; y: number; width: number; height: number; rx?: number }]\n | [\"circle\", Part & { cx: number; cy: number; r: number }];\n\n/** Where a brand mark comes from and how its owner allows it to be used. */\nexport interface BrandInfo {\n /** The brand's own name, as it writes it. */\n title: string;\n /** The brand's colour (hex without #), for `color=\"brand\"`. */\n hex: string;\n /** The brand's guidelines for using its mark, where it publishes them. */\n guidelines?: string;\n /** Where the mark was taken from. */\n source: string;\n}\n\nexport interface IconData {\n /** kebab-case, unique. */\n name: string;\n /** Facet icons have a category; brand marks (from `@arshad-shah/cynosure/brands`) are \"brands\". */\n category: IconCategory | \"brands\";\n body: IconNode[];\n motion?: IconMotion;\n /** A filled shape (brand marks) rather than Facet's stroke. */\n fill?: true;\n /** Set on brand marks: they are drawn exactly as their owner publishes them, never restyled. */\n brand?: BrandInfo;\n}\n"],"mappings":"AAGA,IAAaA,IAAkB;AAAA,EAC7B;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF"}
|
|
1
|
+
{"version":3,"file":"types.js","names":["ICON_CATEGORIES"],"sources":["../../src/icons/types.ts"],"sourcesContent":["/** Facet icons: 24×24 grid, 1.75 round stroke, softened-square geometry, stroke only. */\n\n/** Gallery and documentation grouping. Every icon belongs to exactly one category. */\nexport const ICON_CATEGORIES = [\n \"arrows\",\n \"navigation\",\n \"actions\",\n \"editing\",\n \"files\",\n \"data\",\n \"media\",\n \"communication\",\n \"status\",\n \"time\",\n \"security\",\n \"people\",\n \"devices\",\n \"design\",\n \"layout\",\n \"maths\",\n \"faith\",\n] as const;\nexport type IconCategory = (typeof ICON_CATEGORIES)[number];\n\nexport type IconMotion =\n | \"tilt\"\n | \"rotate\"\n | \"flip\"\n | \"draw\"\n | \"lift\"\n | \"drop\"\n | \"spin\"\n | \"pop\"\n | \"nudge\"\n | \"slide\";\n\n/** `animate: true` marks the part that moves when the icon's motion plays. */\ninterface Part {\n animate?: true;\n}\nexport type IconNode =\n | [\"path\", Part & { d: string }]\n | [\"rect\", Part & { x: number; y: number; width: number; height: number; rx?: number }]\n | [\"circle\", Part & { cx: number; cy: number; r: number }];\n\n/** Where a brand mark comes from and how its owner allows it to be used. */\nexport interface BrandInfo {\n /** The brand's own name, as it writes it. */\n title: string;\n /** The brand's colour (hex without #), for `color=\"brand\"`. */\n hex: string;\n /** The brand's guidelines for using its mark, where it publishes them. */\n guidelines?: string;\n /** Where the mark was taken from. */\n source: string;\n}\n\nexport interface IconData {\n /** kebab-case, unique. */\n name: string;\n /** Facet icons have a category; brand marks (from `@arshad-shah/cynosure/brands`) are \"brands\". */\n category: IconCategory | \"brands\";\n body: IconNode[];\n motion?: IconMotion;\n /** A filled shape (brand marks) rather than Facet's stroke. */\n fill?: true;\n /** Set on brand marks: they are drawn exactly as their owner publishes them, never restyled. */\n brand?: BrandInfo;\n}\n"],"mappings":"AAGA,IAAaA,IAAkB;AAAA,EAC7B;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF"}
|
package/dist/index.d.ts
CHANGED
|
@@ -10,6 +10,7 @@ export { addDays, addMonths, Calendar, type CalendarDayMark, type CalendarDaySta
|
|
|
10
10
|
export { Card, type CardProps, type CardTokens } from "./components/Card/index.js";
|
|
11
11
|
export { Checkbox, type CheckboxProps, type CheckboxTokens } from "./components/Checkbox/index.js";
|
|
12
12
|
export { Checklist, type ChecklistItem, type ChecklistLabels, type ChecklistProps, type ChecklistTokens, } from "./components/Checklist/index.js";
|
|
13
|
+
export { Choice, type ChoiceControlProps, type ChoiceInput, type ChoiceProps, type ChoiceTokens, } from "./components/Choice/index.js";
|
|
13
14
|
export { CodeBlock, type CodeBlockLabels, type CodeBlockProps, type CodeBlockTokens, } from "./components/CodeBlock/index.js";
|
|
14
15
|
export { ColorField, type ColorFieldLabels, type ColorFieldProps, type ColorFieldTokens, readColor, } from "./components/ColorField/index.js";
|
|
15
16
|
export { type ColorSwatch, ColorSwatches, type ColorSwatchesProps, type ColorSwatchesTokens, } from "./components/ColorSwatches/index.js";
|
|
@@ -21,6 +22,7 @@ export { ContextMenu, type ContextMenuProps, type ContextMenuTargetProps, } from
|
|
|
21
22
|
export { CopyButton, type CopyButtonLabels, type CopyButtonProps } from "./components/CopyButton/index.js";
|
|
22
23
|
export { DateField, type DateFieldLabels, type DateFieldProps } from "./components/DateField/index.js";
|
|
23
24
|
export { type DescriptionItem, DescriptionList, type DescriptionListProps, type DescriptionListTokens, } from "./components/DescriptionList/index.js";
|
|
25
|
+
export { DeviceFrame, type DeviceFrameDevice, type DeviceFrameProps, type DeviceFrameTokens, } from "./components/DeviceFrame/index.js";
|
|
24
26
|
export { Dialog, type DialogLabels, type DialogProps, type DialogTokens } from "./components/Dialog/index.js";
|
|
25
27
|
export { Disclosure, type DisclosureProps, type DisclosureTokens } from "./components/Disclosure/index.js";
|
|
26
28
|
export { Divider, type DividerProps, type DividerTokens } from "./components/Divider/index.js";
|
|
@@ -29,19 +31,22 @@ export { EmptyState, type EmptyStateProps, type EmptyStateTokens } from "./compo
|
|
|
29
31
|
export { Field, type FieldProps } from "./components/Field/index.js";
|
|
30
32
|
export { acceptsFile, FileDrop, type FileDropLabels, type FileDropProps, type FileDropTokens, type FileRejection, } from "./components/FileDrop/index.js";
|
|
31
33
|
export { type DockEdge, DockedToolbar, type DockedToolbarLabels, type DockedToolbarProps, FloatingToolbar, type FloatingToolbarProps, type FloatingToolbarTokens, type ToolbarAnchor, useSelectionAnchor, } from "./components/FloatingToolbar/index.js";
|
|
32
|
-
export { GRID_BREAKPOINTS, Grid, type GridBreakpoint, type GridColumns, GridItem, type GridItemProps, type GridProps, } from "./components/Grid/index.js";
|
|
34
|
+
export { GRID_BREAKPOINTS, Grid, type GridBreakpoint, type GridColumns, GridItem, type GridItemProps, type GridProps, type GridResponsive, } from "./components/Grid/index.js";
|
|
33
35
|
export { Heading, type HeadingLevel, type HeadingProps, type HeadingSize, type HeadingTokens, } from "./components/Heading/index.js";
|
|
34
36
|
export { HoverCard, type HoverCardProps, type HoverCardTokens } from "./components/HoverCard/index.js";
|
|
35
37
|
export { IconButton, type IconButtonProps } from "./components/IconButton/index.js";
|
|
38
|
+
export { IconTile, type IconTileProps, type IconTileTokens } from "./components/IconTile/index.js";
|
|
36
39
|
export { Image, type ImageProps, type ImageTokens } from "./components/Image/index.js";
|
|
37
40
|
export { Inline, type InlineProps } from "./components/Inline/index.js";
|
|
38
41
|
export { Kbd, type KbdProps } from "./components/Kbd/index.js";
|
|
39
42
|
export { KeyValueEditor, type KeyValueEditorLabels, type KeyValueEditorProps, type KeyValueEditorTokens, type KeyValuePair, } from "./components/KeyValueEditor/index.js";
|
|
40
43
|
export { Link, type LinkProps } from "./components/Link/index.js";
|
|
44
|
+
export { List, type ListItem, type ListMarker, type ListProps, type ListTokens, } from "./components/List/index.js";
|
|
41
45
|
export { LoadingDots, type LoadingDotsProps } from "./components/LoadingDots/index.js";
|
|
42
46
|
export { Menu, type MenuEntry, type MenuItem, type MenuProps, type MenuSection, type MenuTokens, type MenuTriggerProps, } from "./components/Menu/index.js";
|
|
43
47
|
export { Notice, type NoticeLabels, type NoticeProps, type NoticeTokens } from "./components/Notice/index.js";
|
|
44
48
|
export { NumberField, type NumberFieldLabels, type NumberFieldProps, parseNumber, } from "./components/NumberField/index.js";
|
|
49
|
+
export { OptionList, OptionListGroup, type OptionListGroupProps, OptionListItem, type OptionListItemProps, OptionListNote, type OptionListNoteProps, type OptionListProps, type OptionListTokens, } from "./components/OptionList/index.js";
|
|
45
50
|
export { PageHeader, type PageHeaderProps, type PageHeaderTokens } from "./components/PageHeader/index.js";
|
|
46
51
|
export { Pagination, type PaginationLabels, type PaginationProps, type PaginationTokens, pageCount, pageRange, } from "./components/Pagination/index.js";
|
|
47
52
|
export { type CanvasRect, type CanvasScreen, type CanvasView, PanZoomCanvas, type PanZoomCanvasHandle, type PanZoomCanvasLabels, type PanZoomCanvasProps, type PanZoomCanvasTokens, } from "./components/PanZoomCanvas/index.js";
|
|
@@ -49,19 +54,25 @@ export { Popover, type PopoverProps, type PopoverTokens, type PopoverTriggerProp
|
|
|
49
54
|
export { ProgressBar, type ProgressBarLabels, type ProgressBarProps, type ProgressBarTokens, type ProgressSegment, } from "./components/ProgressBar/index.js";
|
|
50
55
|
export { ProgressOverlay, type ProgressOverlayLabels, type ProgressOverlayProps, } from "./components/ProgressOverlay/index.js";
|
|
51
56
|
export { Prose, type ProseProps, type ProseTokens } from "./components/Prose/index.js";
|
|
57
|
+
export { QRCode, type QRCodeLabels, type QRCodeProps, type QRCodeTokens } from "./components/QRCode/index.js";
|
|
52
58
|
export { RadioGroup, type RadioGroupProps, type RadioOption } from "./components/RadioGroup/index.js";
|
|
53
59
|
export { SearchField, type SearchFieldProps } from "./components/SearchField/index.js";
|
|
60
|
+
export { Section, type SectionProps, type SectionTokens } from "./components/Section/index.js";
|
|
54
61
|
export { SegmentedControl, type SegmentedControlProps, type SegmentOption, } from "./components/SegmentedControl/index.js";
|
|
55
62
|
export { type OptionIconColor, Select, type SelectOption, type SelectProps, type SelectTokens, } from "./components/Select/index.js";
|
|
56
63
|
export { angleFrom, contain, type FrameBox, type FrameHandle, type FrameLimits, moveBy, resizeBy, resizeByKey, SelectionFrame, type SelectionFrameLabels, type SelectionFrameProps, type SelectionFrameTokens, } from "./components/SelectionFrame/index.js";
|
|
57
64
|
export { Sheet, type SheetProps, type SheetTokens } from "./components/Sheet/index.js";
|
|
58
65
|
export { type NavAction, type NavEntry, type NavItem, type NavLinkProps, type NavSection, SideNav, type SideNavProps, type SideNavTokens, } from "./components/SideNav/index.js";
|
|
59
66
|
export { INK_WEIGHTS, type InkPoint, type InkStroke, type InkWeight, inkOutline, inkPath, inkPoint, inkToSvg, outlineToPath, penPressure, SignaturePad, type SignaturePadProps, type SignaturePadTokens, STEADY_PRESSURE, } from "./components/SignaturePad/index.js";
|
|
67
|
+
export { SiteFooter, type SiteFooterColumn, type SiteFooterLabels, type SiteFooterProps, type SiteFooterTokens, } from "./components/SiteFooter/index.js";
|
|
68
|
+
export { SiteHeader, type SiteHeaderLabels, type SiteHeaderLink, type SiteHeaderProps, type SiteHeaderTokens, } from "./components/SiteHeader/index.js";
|
|
60
69
|
export { Skeleton, type SkeletonProps, type SkeletonTokens } from "./components/Skeleton/index.js";
|
|
70
|
+
export { SkipLink, type SkipLinkLabels, type SkipLinkProps, type SkipLinkTokens, } from "./components/SkipLink/index.js";
|
|
61
71
|
export { Slider, type SliderLabels, type SliderMark, type SliderProps, type SliderTokens, type SliderValue, } from "./components/Slider/index.js";
|
|
62
72
|
export { type SortableItem, SortableList, type SortableListLabels, type SortableListProps, type SortableListTokens, } from "./components/SortableList/index.js";
|
|
63
73
|
export { SplitPane, type SplitPaneProps, type SplitPaneTokens } from "./components/SplitPane/index.js";
|
|
64
|
-
export { Stack, type StackProps } from "./components/Stack/index.js";
|
|
74
|
+
export { BREAKPOINTS, type Breakpoint, type LayoutAttributes, type PaddingProps, type Space, Stack, type StackProps, type VisibilityProps, } from "./components/Stack/index.js";
|
|
75
|
+
export { Stat, type StatDelta, type StatDirection, type StatLabels, type StatProps, type StatTokens, } from "./components/Stat/index.js";
|
|
65
76
|
export { type StepItem, type StepStatus, Steps, type StepsLabels, type StepsProps, type StepsTokens, } from "./components/Steps/index.js";
|
|
66
77
|
export { Switch, type SwitchProps, type SwitchTokens } from "./components/Switch/index.js";
|
|
67
78
|
export { type SortDirection, Table, type TableColumn, type TableLabels, type TableProps, type TableSort, type TableTokens, } from "./components/Table/index.js";
|
|
@@ -77,6 +88,7 @@ export { Toolbar, type ToolbarProps } from "./components/Toolbar/index.js";
|
|
|
77
88
|
export { Tooltip, type TooltipProps } from "./components/Tooltip/index.js";
|
|
78
89
|
export { Tree, type TreeItem, type TreeLabels, type TreeProps, type TreeTokens, } from "./components/Tree/index.js";
|
|
79
90
|
export { moveItems, type VirtualItemState, VirtualList, type VirtualListHandle, type VirtualListLabels, type VirtualListProps, type VirtualListTokens, } from "./components/VirtualList/index.js";
|
|
91
|
+
export { VisuallyHidden, type VisuallyHiddenProps } from "./components/VisuallyHidden/index.js";
|
|
80
92
|
export { ZoomControls, type ZoomControlsLabels, type ZoomControlsProps, } from "./components/ZoomControls/index.js";
|
|
81
93
|
export { ButtonBase, type ButtonBaseProps } from "./foundations/ButtonBase/ButtonBase.js";
|
|
82
94
|
export { ChoiceBase, type ChoiceBaseProps } from "./foundations/ChoiceBase/ChoiceBase.js";
|
|
@@ -90,8 +102,10 @@ export { ariaKeyShortcuts, isApple, matchesHotkey, shortcutKeys, useHotkey } fro
|
|
|
90
102
|
export { Icon, type IconProps } from "./foundations/Icon/Icon.js";
|
|
91
103
|
export { InputBase, type InputBaseProps } from "./foundations/InputBase/InputBase.js";
|
|
92
104
|
export { LinkBase, type LinkBaseProps } from "./foundations/LinkBase/LinkBase.js";
|
|
105
|
+
export { type QrLevel, type QrOptions, type QrToSvgOptions, qrMatrix, qrPath, qrToSvg, } from "./foundations/qr.js";
|
|
93
106
|
export { type RovingOptions, useRovingFocus } from "./foundations/roving-focus.js";
|
|
94
107
|
export { TextAreaBase, type TextAreaBaseProps } from "./foundations/TextAreaBase/TextAreaBase.js";
|
|
108
|
+
export type { BrandInfo, IconCategory, IconData, IconMotion, IconNode } from "./icons/types.js";
|
|
95
109
|
export { type DismissOptions, type DismissReason, useDismiss } from "./overlay/dismiss.js";
|
|
96
110
|
export * from "./theme/index.js";
|
|
97
111
|
export * from "./tokens/index.js";
|