@namroodinc/liquid-editorial 0.11.0 → 0.13.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 +44 -20
- package/UPGRADING.md +322 -0
- package/dist/chunks/{Avatar-DPnrvkwd.cjs → Avatar-BY0dAItT.cjs} +2 -2
- package/dist/chunks/{Avatar-DPnrvkwd.cjs.map → Avatar-BY0dAItT.cjs.map} +1 -1
- package/dist/chunks/{Avatar-BK8IdL5W.js → Avatar-UjhjcHh5.js} +2 -2
- package/dist/chunks/{Avatar-BK8IdL5W.js.map → Avatar-UjhjcHh5.js.map} +1 -1
- package/dist/chunks/{Board-Cnyqrc-R.js → Board-BCS7sDXg.js} +13 -5
- package/dist/chunks/{Board-Cnyqrc-R.js.map → Board-BCS7sDXg.js.map} +1 -1
- package/dist/chunks/{Board-DFuJt2Oh.cjs → Board-CNVy8gHI.cjs} +2 -2
- package/dist/chunks/Board-CNVy8gHI.cjs.map +1 -0
- package/dist/chunks/CollectionView-CIJdNwcq.cjs +2 -0
- package/dist/chunks/CollectionView-CIJdNwcq.cjs.map +1 -0
- package/dist/chunks/{CollectionView-Vj84E26b.js → CollectionView-JRNdXHti.js} +5 -5
- package/dist/chunks/CollectionView-JRNdXHti.js.map +1 -0
- package/dist/chunks/{ColourField-DkO8tjeB.js → ColourField-BTj9NHgI.js} +147 -153
- package/dist/chunks/ColourField-BTj9NHgI.js.map +1 -0
- package/dist/chunks/ColourField-DuoVeXjG.cjs +2 -0
- package/dist/chunks/ColourField-DuoVeXjG.cjs.map +1 -0
- package/dist/chunks/DatePicker-BYpGsfL4.cjs +2 -0
- package/dist/chunks/DatePicker-BYpGsfL4.cjs.map +1 -0
- package/dist/chunks/{DatePicker-B8tllGYy.js → DatePicker-Cb5WspIC.js} +22 -22
- package/dist/chunks/DatePicker-Cb5WspIC.js.map +1 -0
- package/dist/chunks/{Drawer-DTtgAZO2.js → Drawer-Ck5XKT_V.js} +4 -4
- package/dist/chunks/Drawer-Ck5XKT_V.js.map +1 -0
- package/dist/chunks/Drawer-DdIH9jpe.cjs +2 -0
- package/dist/chunks/Drawer-DdIH9jpe.cjs.map +1 -0
- package/dist/chunks/EntryPicker-CCCoJxbd.cjs +2 -0
- package/dist/chunks/EntryPicker-CCCoJxbd.cjs.map +1 -0
- package/dist/chunks/{EntryPicker-KxHZzZsh.js → EntryPicker-DLCP4S-q.js} +4 -4
- package/dist/chunks/EntryPicker-DLCP4S-q.js.map +1 -0
- package/dist/chunks/{FormEditor-BJcAIVcL.cjs → FormEditor-ArvjKtJJ.cjs} +2 -2
- package/dist/chunks/{FormEditor-BJcAIVcL.cjs.map → FormEditor-ArvjKtJJ.cjs.map} +1 -1
- package/dist/chunks/{FormEditor-CdLqPaKK.js → FormEditor-DnNBv9Xf.js} +16 -16
- package/dist/chunks/{FormEditor-CdLqPaKK.js.map → FormEditor-DnNBv9Xf.js.map} +1 -1
- package/dist/chunks/{Message-CyLq9ef-.js → Message-C73sJfdo.js} +4 -8
- package/dist/chunks/{Message-CyLq9ef-.js.map → Message-C73sJfdo.js.map} +1 -1
- package/dist/chunks/{Message-D3b8HDhm.cjs → Message-CIKSTXp8.cjs} +2 -2
- package/dist/chunks/{Message-D3b8HDhm.cjs.map → Message-CIKSTXp8.cjs.map} +1 -1
- package/dist/chunks/RichTextEditor--kMao88d.cjs +2 -0
- package/dist/chunks/RichTextEditor--kMao88d.cjs.map +1 -0
- package/dist/chunks/{RichTextEditor-DmNM63Wg.js → RichTextEditor-CvbboqJY.js} +397 -380
- package/dist/chunks/RichTextEditor-CvbboqJY.js.map +1 -0
- package/dist/chunks/{dialogLabel-D18maX-p.js → dialogLabel-DT7rCr3_.js} +19 -19
- package/dist/chunks/{dialogLabel-D18maX-p.js.map → dialogLabel-DT7rCr3_.js.map} +1 -1
- package/dist/chunks/{dialogLabel-2HRYMHbF.cjs → dialogLabel-_-MTckE_.cjs} +2 -2
- package/dist/chunks/{dialogLabel-2HRYMHbF.cjs.map → dialogLabel-_-MTckE_.cjs.map} +1 -1
- package/dist/chunks/overlayLayer-iGhuAByk.cjs +2 -0
- package/dist/chunks/overlayLayer-iGhuAByk.cjs.map +1 -0
- package/dist/chunks/{overlayLayer-IuoPVwTO.js → overlayLayer-lU4iWSjO.js} +32 -28
- package/dist/chunks/overlayLayer-lU4iWSjO.js.map +1 -0
- package/dist/chunks/{group-7Z_xRlQx.js → style-7Z_xRlQx.js} +1 -1
- package/dist/chunks/{group-7Z_xRlQx.js.map → style-7Z_xRlQx.js.map} +1 -1
- package/dist/chunks/{group-nulIa2_8.cjs → style-nulIa2_8.cjs} +1 -1
- package/dist/chunks/{group-nulIa2_8.cjs.map → style-nulIa2_8.cjs.map} +1 -1
- package/dist/chunks/use-picker-session-Bue5MJHQ.cjs +2 -0
- package/dist/chunks/use-picker-session-Bue5MJHQ.cjs.map +1 -0
- package/dist/chunks/{use-picker-session-BDEWL2jK.js → use-picker-session-DUO4G8Cs.js} +4 -4
- package/dist/chunks/use-picker-session-DUO4G8Cs.js.map +1 -0
- package/dist/chunks/{useTooltip-BXAvQwt4.cjs → useTooltip-C7ON4nkV.cjs} +2 -2
- package/dist/chunks/{useTooltip-BXAvQwt4.cjs.map → useTooltip-C7ON4nkV.cjs.map} +1 -1
- package/dist/chunks/{useTooltip-BrC7FdeH.js → useTooltip-DnJEFBLg.js} +2 -2
- package/dist/chunks/{useTooltip-BrC7FdeH.js.map → useTooltip-DnJEFBLg.js.map} +1 -1
- package/dist/components/AppShell/index.cjs +1 -1
- package/dist/components/AppShell/index.js +1 -1
- package/dist/components/AssetCard/index.cjs +1 -1
- package/dist/components/AssetCard/index.cjs.map +1 -1
- package/dist/components/AssetCard/index.d.cts.map +1 -1
- package/dist/components/AssetCard/index.d.ts.map +1 -1
- package/dist/components/AssetCard/index.js +16 -16
- package/dist/components/AssetCard/index.js.map +1 -1
- package/dist/components/AssetCard/style.css +47 -46
- package/dist/components/AssetGrid/index.cjs +1 -1
- package/dist/components/AssetGrid/index.cjs.map +1 -1
- package/dist/components/AssetGrid/index.d.cts +0 -2
- package/dist/components/AssetGrid/index.d.cts.map +1 -1
- package/dist/components/AssetGrid/index.d.ts +0 -2
- package/dist/components/AssetGrid/index.d.ts.map +1 -1
- package/dist/components/AssetGrid/index.js +15 -15
- package/dist/components/AssetGrid/index.js.map +1 -1
- package/dist/components/Avatar/index.cjs +1 -1
- package/dist/components/Avatar/index.js +1 -1
- package/dist/components/Avatar/style.css +26 -5
- package/dist/components/Badge/index.cjs +1 -1
- package/dist/components/Badge/index.cjs.map +1 -1
- package/dist/components/Badge/index.d.cts +2 -3
- package/dist/components/Badge/index.d.cts.map +1 -1
- package/dist/components/Badge/index.d.ts +2 -3
- package/dist/components/Badge/index.d.ts.map +1 -1
- package/dist/components/Badge/index.js +1 -1
- package/dist/components/Badge/index.js.map +1 -1
- package/dist/components/Badge/style.css +29 -35
- package/dist/components/Banner/index.cjs +1 -1
- package/dist/components/Banner/index.js +1 -1
- package/dist/components/Board/index.cjs +1 -1
- package/dist/components/Board/index.js +1 -1
- package/dist/components/Board/style.css +37 -16
- package/dist/components/Button/style.css +17 -12
- package/dist/components/ButtonGroup/index.cjs.map +1 -1
- package/dist/components/ButtonGroup/index.d.cts +1 -1
- package/dist/components/ButtonGroup/index.d.ts +1 -1
- package/dist/components/ButtonGroup/index.js.map +1 -1
- package/dist/components/ButtonGroup/style.css +4 -20
- package/dist/components/Choice/index.cjs +1 -1
- package/dist/components/Choice/index.cjs.map +1 -1
- package/dist/components/Choice/index.js +3 -3
- package/dist/components/Choice/index.js.map +1 -1
- package/dist/components/Choice/style.css +34 -22
- package/dist/components/CollectionView/index.cjs +1 -1
- package/dist/components/CollectionView/index.js +1 -1
- package/dist/components/CollectionView/style.css +8 -11
- package/dist/components/ColourField/index.cjs +1 -1
- package/dist/components/ColourField/index.d.cts.map +1 -1
- package/dist/components/ColourField/index.d.ts.map +1 -1
- package/dist/components/ColourField/index.js +1 -1
- package/dist/components/ColourField/style.css +31 -20
- package/dist/components/DatePicker/index.cjs +1 -1
- package/dist/components/DatePicker/index.js +1 -1
- package/dist/components/DatePicker/style.css +10 -3
- package/dist/components/Drawer/index.cjs +1 -1
- package/dist/components/Drawer/index.js +1 -1
- package/dist/components/Drawer/style.css +10 -23
- package/dist/components/EditLayout/index.cjs +1 -1
- package/dist/components/EditLayout/index.cjs.map +1 -1
- package/dist/components/EditLayout/index.js +4 -4
- package/dist/components/EditLayout/index.js.map +1 -1
- package/dist/components/EditLayout/style.css +5 -6
- package/dist/components/EntryPicker/index.cjs +1 -1
- package/dist/components/EntryPicker/index.js +1 -1
- package/dist/components/EntryPicker/style.css +46 -20
- package/dist/components/Field/style.css +6 -5
- package/dist/components/FormEditor/README.md +28 -19
- package/dist/components/FormEditor/index.cjs +1 -1
- package/dist/components/FormEditor/index.js +1 -1
- package/dist/components/FormEditor/style.css +1 -0
- package/dist/components/ImageCropper/style.css +20 -20
- package/dist/components/LimitReading/style.css +1 -1
- package/dist/components/Menu/index.cjs +1 -1
- package/dist/components/Menu/index.js +1 -1
- package/dist/components/Menu/style.css +3 -3
- package/dist/components/Modal/index.cjs +1 -1
- package/dist/components/Modal/index.cjs.map +1 -1
- package/dist/components/Modal/index.js +3 -3
- package/dist/components/Modal/index.js.map +1 -1
- package/dist/components/Modal/style.css +6 -6
- package/dist/components/Popover/index.cjs +1 -1
- package/dist/components/Popover/index.cjs.map +1 -1
- package/dist/components/Popover/index.d.cts.map +1 -1
- package/dist/components/Popover/index.d.ts.map +1 -1
- package/dist/components/Popover/index.js +58 -55
- package/dist/components/Popover/index.js.map +1 -1
- package/dist/components/Popover/style.css +2 -2
- package/dist/components/RichTextEditor/index.cjs +1 -1
- package/dist/components/RichTextEditor/index.d.cts.map +1 -1
- package/dist/components/RichTextEditor/index.d.ts.map +1 -1
- package/dist/components/RichTextEditor/index.js +1 -1
- package/dist/components/RichTextEditor/storyblock-view.d.cts.map +1 -1
- package/dist/components/RichTextEditor/storyblock-view.d.ts.map +1 -1
- package/dist/components/RichTextEditor/style.css +123 -75
- package/dist/components/Select/index.cjs +1 -1
- package/dist/components/Select/index.js +1 -1
- package/dist/components/SelectionCard/index.cjs +1 -1
- package/dist/components/SelectionCard/index.cjs.map +1 -1
- package/dist/components/SelectionCard/index.d.cts.map +1 -1
- package/dist/components/SelectionCard/index.d.ts.map +1 -1
- package/dist/components/SelectionCard/index.js +7 -3
- package/dist/components/SelectionCard/index.js.map +1 -1
- package/dist/components/SelectionCard/style.css +30 -48
- package/dist/components/SideNav/index.cjs +1 -1
- package/dist/components/SideNav/index.cjs.map +1 -1
- package/dist/components/SideNav/index.d.cts +3 -3
- package/dist/components/SideNav/index.d.ts +3 -3
- package/dist/components/SideNav/index.js +15 -3
- package/dist/components/SideNav/index.js.map +1 -1
- package/dist/components/SideNav/style.css +19 -13
- package/dist/components/Skeleton/style.css +1 -1
- package/dist/components/Slider/style.css +19 -32
- package/dist/components/SortableList/index.cjs +1 -1
- package/dist/components/SortableList/index.cjs.map +1 -1
- package/dist/components/SortableList/index.js +6 -2
- package/dist/components/SortableList/index.js.map +1 -1
- package/dist/components/SortableList/style.css +20 -5
- package/dist/components/Stepper/style.css +8 -9
- package/dist/components/SubNav/index.cjs.map +1 -1
- package/dist/components/SubNav/index.d.cts +2 -2
- package/dist/components/SubNav/index.d.ts +2 -2
- package/dist/components/SubNav/index.js.map +1 -1
- package/dist/components/SubNav/style.css +3 -8
- package/dist/components/Switch/index.cjs +1 -1
- package/dist/components/Switch/index.cjs.map +1 -1
- package/dist/components/Switch/index.d.cts.map +1 -1
- package/dist/components/Switch/index.d.ts.map +1 -1
- package/dist/components/Switch/index.js +3 -2
- package/dist/components/Switch/index.js.map +1 -1
- package/dist/components/Switch/style.css +26 -6
- package/dist/components/Table/index.cjs +1 -1
- package/dist/components/Table/index.cjs.map +1 -1
- package/dist/components/Table/index.js +2 -2
- package/dist/components/Table/index.js.map +1 -1
- package/dist/components/Table/style.css +34 -22
- package/dist/components/TagsInput/index.cjs +1 -1
- package/dist/components/TagsInput/index.cjs.map +1 -1
- package/dist/components/TagsInput/index.js +1 -1
- package/dist/components/TagsInput/index.js.map +1 -1
- package/dist/components/TagsInput/style.css +12 -5
- package/dist/components/Time/index.cjs +1 -1
- package/dist/components/Time/index.js +1 -1
- package/dist/components/Time/style.css +1 -1
- package/dist/components/Toast/index.cjs +1 -1
- package/dist/components/Toast/index.js +1 -1
- package/dist/components/Toast/style.css +1 -1
- package/dist/components/TopNav/index.cjs +1 -1
- package/dist/components/TopNav/index.cjs.map +1 -1
- package/dist/components/TopNav/index.d.cts +4 -4
- package/dist/components/TopNav/index.d.ts +4 -4
- package/dist/components/TopNav/index.js +5 -1
- package/dist/components/TopNav/index.js.map +1 -1
- package/dist/components/TopNav/style.css +6 -9
- package/dist/elements.css +2 -2
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +44 -44
- package/dist/internal/dialogFocus.d.cts +2 -0
- package/dist/internal/dialogFocus.d.cts.map +1 -1
- package/dist/internal/dialogFocus.d.ts +2 -0
- package/dist/internal/dialogFocus.d.ts.map +1 -1
- package/dist/message.css +13 -17
- package/dist/tokens.css +112 -280
- package/package.json +1 -1
- package/dist/chunks/Board-DFuJt2Oh.cjs.map +0 -1
- package/dist/chunks/CollectionView-BNYx29b1.cjs +0 -2
- package/dist/chunks/CollectionView-BNYx29b1.cjs.map +0 -1
- package/dist/chunks/CollectionView-Vj84E26b.js.map +0 -1
- package/dist/chunks/ColourField--rS9KDpq.cjs +0 -2
- package/dist/chunks/ColourField--rS9KDpq.cjs.map +0 -1
- package/dist/chunks/ColourField-DkO8tjeB.js.map +0 -1
- package/dist/chunks/DatePicker-B8tllGYy.js.map +0 -1
- package/dist/chunks/DatePicker-OiqjoO-f.cjs +0 -2
- package/dist/chunks/DatePicker-OiqjoO-f.cjs.map +0 -1
- package/dist/chunks/Drawer-BDX9_qHA.cjs +0 -2
- package/dist/chunks/Drawer-BDX9_qHA.cjs.map +0 -1
- package/dist/chunks/Drawer-DTtgAZO2.js.map +0 -1
- package/dist/chunks/EntryPicker-BI_7g2Wg.cjs +0 -2
- package/dist/chunks/EntryPicker-BI_7g2Wg.cjs.map +0 -1
- package/dist/chunks/EntryPicker-KxHZzZsh.js.map +0 -1
- package/dist/chunks/RichTextEditor-BXyhSeJd.cjs +0 -2
- package/dist/chunks/RichTextEditor-BXyhSeJd.cjs.map +0 -1
- package/dist/chunks/RichTextEditor-DmNM63Wg.js.map +0 -1
- package/dist/chunks/overlayLayer-IuoPVwTO.js.map +0 -1
- package/dist/chunks/overlayLayer-seJG-EFn.cjs +0 -2
- package/dist/chunks/overlayLayer-seJG-EFn.cjs.map +0 -1
- package/dist/chunks/use-picker-session-BDEWL2jK.js.map +0 -1
- package/dist/chunks/use-picker-session-C4FGinLN.cjs +0 -2
- package/dist/chunks/use-picker-session-C4FGinLN.cjs.map +0 -1
- package/dist/components/ColourField/focus.d.cts +0 -3
- package/dist/components/ColourField/focus.d.cts.map +0 -1
- package/dist/components/ColourField/focus.d.ts +0 -3
- package/dist/components/ColourField/focus.d.ts.map +0 -1
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
@layer components {
|
|
2
|
-
/* The collection frame
|
|
3
|
-
*
|
|
2
|
+
/* The collection frame: a surface on the canvas. Cards inside it, such as
|
|
3
|
+
* an AssetGrid's tiles, rest on the alternate row fill to stand off it. */
|
|
4
4
|
.ds-table-frame {
|
|
5
5
|
--field-bg: var(--color-surface);
|
|
6
|
+
--fill-card: var(--fill-row-alt);
|
|
6
7
|
|
|
7
|
-
border:
|
|
8
|
+
border: 0;
|
|
8
9
|
border-radius: var(--radius-lg);
|
|
9
|
-
background: var(--
|
|
10
|
+
background: var(--field-bg);
|
|
10
11
|
overflow: hidden;
|
|
11
12
|
}
|
|
12
13
|
|
|
@@ -20,8 +21,9 @@
|
|
|
20
21
|
justify-content: space-between;
|
|
21
22
|
gap: var(--space-4);
|
|
22
23
|
padding: var(--space-4) var(--table-row-pad-inline);
|
|
23
|
-
background: var(--
|
|
24
|
-
|
|
24
|
+
background: var(--field-bg);
|
|
25
|
+
|
|
26
|
+
--field-bg: var(--fill-band);
|
|
25
27
|
}
|
|
26
28
|
|
|
27
29
|
.ds-table-toolbar__group {
|
|
@@ -41,6 +43,11 @@
|
|
|
41
43
|
border-collapse: collapse;
|
|
42
44
|
font-size: var(--table-cell-size);
|
|
43
45
|
color: var(--color-text);
|
|
46
|
+
|
|
47
|
+
/* Alternate rows step from the ground the table sits on: the frame's
|
|
48
|
+
* surface, or the canvas or any panel when used on its own. Declared
|
|
49
|
+
* here so each row can take it as its own ground. */
|
|
50
|
+
--table-row-alt: color-mix(in srgb, var(--color-text) 3%, var(--field-bg));
|
|
44
51
|
}
|
|
45
52
|
|
|
46
53
|
.ds-table th {
|
|
@@ -52,6 +59,7 @@
|
|
|
52
59
|
color: var(--color-text-muted);
|
|
53
60
|
padding: var(--space-3) var(--table-row-pad-inline);
|
|
54
61
|
white-space: nowrap;
|
|
62
|
+
padding-block-start: 14px;
|
|
55
63
|
}
|
|
56
64
|
|
|
57
65
|
.ds-table th[data-align="end"],
|
|
@@ -83,40 +91,44 @@
|
|
|
83
91
|
font-size: var(--font-size-sm);
|
|
84
92
|
}
|
|
85
93
|
|
|
86
|
-
.ds-table tbody tr
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
/* The rail exists at every row so selection never shifts the layout. */
|
|
90
|
-
box-shadow: inset var(--rail-width) 0 0 0 transparent;
|
|
91
|
-
transition: background-color var(--duration-fast) var(--ease-standard);
|
|
92
|
-
}
|
|
94
|
+
.ds-table:where(:has(thead)) tbody tr:where(:nth-child(odd)),
|
|
95
|
+
.ds-table:where(:not(:has(thead))) tbody tr:where(:nth-child(even)) {
|
|
96
|
+
--field-bg: var(--table-row-alt);
|
|
93
97
|
|
|
94
|
-
|
|
95
|
-
border-block-end: none;
|
|
98
|
+
background: var(--field-bg);
|
|
96
99
|
}
|
|
97
100
|
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
101
|
+
.ds-table tbody tr {
|
|
102
|
+
/* The rail exists at every row so selection never shifts the layout. */
|
|
103
|
+
box-shadow: inset calc(var(--rail-width) * var(--rail-direction)) 0 0 0 transparent;
|
|
104
|
+
transition: background-color var(--duration-fast) var(--ease-standard);
|
|
102
105
|
}
|
|
103
106
|
|
|
107
|
+
/* Painted fills other than the ground are named in --field-paint, so
|
|
108
|
+
* neutral badges and controls in the row step from them. */
|
|
104
109
|
.ds-table tbody tr[data-interactive]:hover {
|
|
110
|
+
--field-paint: var(--field-hover);
|
|
111
|
+
|
|
105
112
|
background: var(--field-hover);
|
|
106
113
|
cursor: pointer;
|
|
107
114
|
}
|
|
108
115
|
|
|
109
116
|
.ds-table tbody tr[data-selected] {
|
|
110
|
-
|
|
111
|
-
|
|
117
|
+
--field-bg: var(--color-primary-soft);
|
|
118
|
+
--button-active-bg: var(--color-primary-soft-pressed);
|
|
119
|
+
|
|
120
|
+
background: var(--field-bg);
|
|
121
|
+
box-shadow: inset calc(var(--rail-width) * var(--rail-direction)) 0 0 0 var(--rail-color);
|
|
112
122
|
}
|
|
113
123
|
|
|
114
124
|
.ds-table tbody tr[data-selected]:hover {
|
|
125
|
+
--field-paint: var(--color-primary-soft-hover);
|
|
126
|
+
|
|
115
127
|
background: var(--color-primary-soft-hover);
|
|
116
128
|
}
|
|
117
129
|
|
|
118
130
|
.ds-table tbody tr:focus-visible {
|
|
119
|
-
outline: var(--
|
|
131
|
+
outline: var(--focus-width) solid var(--color-focus);
|
|
120
132
|
outline-offset: -2px;
|
|
121
133
|
}
|
|
122
134
|
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../Button/index.cjs");;/* empty css */const t=require("../../chunks/useLimit-CCv6sAUS.cjs");let n=require("react"),r=require("react/jsx-runtime");function i(...e){return e.filter(Boolean).join(` `)}var a=(0,n.forwardRef)(function({value:a,defaultValue:o=[],onValueChange:s,placeholder:c=`Add a tag`,size:l=`md`,max:u,isDisabled:d=!1,isInvalid:f=!1,required:p,"aria-invalid":m,className:h,...g},_){let[v,y]=(0,n.useState)(o),b=a??v;t.t(g,u===void 0?void 0:{count:b.length,max:u});let[x,S]=(0,n.useState)(``),C=(0,n.useRef)(null),w=e=>{a===void 0&&y(e),s?.(e)},T=e=>{let t=e.trim();t&&!b.includes(t)&&(u!==void 0&&b.length>=u||w([...b,t]))};return(0,r.jsxs)(`div`,{className:i(`ds-field-skin`,`ds-tags`,h),"data-size":l,"data-disabled":d||void 0,"aria-invalid":f||m||void 0,onClick:()=>C.current?.focus(),children:[b.map(t=>(0,r.jsxs)(`span`,{className:`ds-tags__tag`,children:[t,(0,r.jsx)(e.Button,{variant:`simple`,size:`xs`,isIconOnly:!0,iconStart:`x`,"aria-label":`Remove ${t}`,isDisabled:d,onClick:e=>{e.stopPropagation(),w(b.filter(e=>e!==t))}})]},t)),(0,r.jsx)(`input`,{ref:e=>{C.current=e,typeof _==`function`?_(e):_&&(_.current=e)},type:`text`,className:`ds-tags__input`,value:x,placeholder:b.length===0?c:``,disabled:d,"aria-invalid":f||m||void 0,"aria-required":p||void 0,onChange:e=>S(e.target.value),onKeyDown:e=>{e.key===`Enter`||e.key===`,`?(e.preventDefault(),T(x),S(``)):e.key===`Backspace`&&x===``&&b.length>0&&w(b.slice(0,-1))},onBlur:()=>{T(x),S(``)},...g})]})});exports.TagsInput=a;
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../Button/index.cjs");;/* empty css */const t=require("../../chunks/useLimit-CCv6sAUS.cjs");let n=require("react"),r=require("react/jsx-runtime");function i(...e){return e.filter(Boolean).join(` `)}var a=(0,n.forwardRef)(function({value:a,defaultValue:o=[],onValueChange:s,placeholder:c=`Add a tag`,size:l=`md`,max:u,isDisabled:d=!1,isInvalid:f=!1,required:p,"aria-invalid":m,className:h,...g},_){let[v,y]=(0,n.useState)(o),b=a??v;t.t(g,u===void 0?void 0:{count:b.length,max:u});let[x,S]=(0,n.useState)(``),C=(0,n.useRef)(null),w=e=>{a===void 0&&y(e),s?.(e)},T=e=>{let t=e.trim();t&&!b.includes(t)&&(u!==void 0&&b.length>=u||w([...b,t]))};return(0,r.jsxs)(`div`,{className:i(`ds-field-skin`,`ds-tags`,h),"data-size":l,"data-disabled":d||void 0,"aria-invalid":f||m||void 0,onClick:()=>C.current?.focus(),children:[b.map(t=>(0,r.jsxs)(`span`,{className:`ds-tags__tag ds-field-surface`,children:[t,(0,r.jsx)(e.Button,{variant:`simple`,size:`xs`,isIconOnly:!0,iconStart:`x`,"aria-label":`Remove ${t}`,isDisabled:d,onClick:e=>{e.stopPropagation(),w(b.filter(e=>e!==t))}})]},t)),(0,r.jsx)(`input`,{ref:e=>{C.current=e,typeof _==`function`?_(e):_&&(_.current=e)},type:`text`,className:`ds-tags__input`,value:x,placeholder:b.length===0?c:``,disabled:d,"aria-invalid":f||m||void 0,"aria-required":p||void 0,onChange:e=>S(e.target.value),onKeyDown:e=>{e.key===`Enter`||e.key===`,`?(e.preventDefault(),T(x),S(``)):e.key===`Backspace`&&x===``&&b.length>0&&w(b.slice(0,-1))},onBlur:()=>{T(x),S(``)},...g})]})});exports.TagsInput=a;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs","names":["forwardRef","useState","useRef","Button","require_components_Button_index","require_useLimit","react","react_jsx_runtime","cx","parts","TagsInput","ariaInvalid","rest","internal","setInternal","defaultValue","current","value","max","draft","setDraft","inputRef","commit","next","onValueChange","add","tag","raw","className","size","isDisabled","isInvalid","event","item","node","ref","placeholder","required"],"sources":["../../../src/components/TagsInput/index.tsx"],"sourcesContent":["import { forwardRef, useRef, useState, type KeyboardEvent } from \"react\";\nimport { Button } from \"../Button\";\nimport type { FieldBinding, FieldSize } from \"../Field\";\nimport { useReportedLimit } from \"../Field/useLimit\";\nimport \"../Field/style.css\";\nimport \"./style.css\";\n\nfunction cx(...parts: (string | undefined | false)[]) {\n return parts.filter(Boolean).join(\" \");\n}\n\nexport interface TagsInputProps extends FieldBinding {\n value?: string[];\n defaultValue?: string[];\n onValueChange?: (value: string[]) => void;\n placeholder?: string;\n size?: FieldSize;\n /** Stop accepting new tags past this count. */\n max?: number;\n isDisabled?: boolean;\n isInvalid?: boolean;\n className?: string;\n}\n\n/**\n * Free-text keywords. Enter or comma commits a tag, Backspace on an empty\n * input removes the last one. Tags are plain strings — never status tones.\n */\nexport const TagsInput = forwardRef<HTMLInputElement, TagsInputProps>(function TagsInput(\n {\n value,\n defaultValue = [],\n onValueChange,\n placeholder = \"Add a tag\",\n size = \"md\",\n max,\n isDisabled = false,\n isInvalid = false,\n required,\n \"aria-invalid\": ariaInvalid,\n className,\n ...rest\n },\n ref,\n) {\n const [internal, setInternal] = useState<string[]>(defaultValue);\n const current = value ?? internal;\n useReportedLimit(rest, max === undefined ? undefined : { count: current.length, max });\n const [draft, setDraft] = useState(\"\");\n const inputRef = useRef<HTMLInputElement | null>(null);\n\n const commit = (next: string[]) => {\n if (value === undefined) {\n setInternal(next);\n }\n onValueChange?.(next);\n };\n\n const add = (raw: string) => {\n const tag = raw.trim();\n if (!tag || current.includes(tag)) {\n return;\n }\n if (max !== undefined && current.length >= max) {\n return;\n }\n commit([...current, tag]);\n };\n\n const onKeyDown = (event: KeyboardEvent<HTMLInputElement>) => {\n if (event.key === \"Enter\" || event.key === \",\") {\n event.preventDefault();\n add(draft);\n setDraft(\"\");\n } else if (event.key === \"Backspace\" && draft === \"\" && current.length > 0) {\n commit(current.slice(0, -1));\n }\n };\n\n return (\n <div\n className={cx(\"ds-field-skin\", \"ds-tags\", className)}\n data-size={size}\n data-disabled={isDisabled || undefined}\n aria-invalid={isInvalid || ariaInvalid || undefined}\n onClick={() => inputRef.current?.focus()}\n >\n {current.map((tag) => (\n <span\n key={tag}\n className=\"ds-tags__tag\"\n >\n {tag}\n <Button\n variant=\"simple\"\n size=\"xs\"\n isIconOnly\n iconStart=\"x\"\n aria-label={`Remove ${tag}`}\n isDisabled={isDisabled}\n onClick={(event) => {\n event.stopPropagation();\n commit(current.filter((item) => item !== tag));\n }}\n />\n </span>\n ))}\n <input\n ref={(node) => {\n inputRef.current = node;\n if (typeof ref === \"function\") {\n ref(node);\n } else if (ref) {\n ref.current = node;\n }\n }}\n type=\"text\"\n className=\"ds-tags__input\"\n value={draft}\n placeholder={current.length === 0 ? placeholder : \"\"}\n disabled={isDisabled}\n aria-invalid={isInvalid || ariaInvalid || undefined}\n aria-required={required || undefined}\n onChange={(event) => setDraft(event.target.value)}\n onKeyDown={onKeyDown}\n onBlur={() => {\n add(draft);\n setDraft(\"\");\n }}\n {...rest}\n />\n </div>\n );\n});\n"],"mappings":"A,iQAOA,SAASQ,EAAG,GAAGC,EAAuC,CACpD,OAAOA,EAAM,OAAO,OAAO,CAAC,CAAC,KAAK,GAAG,CACvC,CAmBA,IAAaC,GAAA,EAAYV,EAAAA,WAAAA,CAA6C,SACpE,CACE,QACA,eAAe,CAAC,EAChB,gBACA,cAAc,YACd,OAAO,KACP,MACA,aAAa,GACb,YAAY,GACZ,WACA,eAAgBW,EAChB,YACA,GAAGC,GAEL,EACA,CACA,GAAM,CAACC,EAAUC,IAAA,EAAeb,EAAAA,SAAAA,CAAmBc,CAAY,EACzDC,EAAUC,GAASJ,EACzBR,EAAA,EAAiBO,EAAMM,IAAQ,IAAA,GAAY,IAAA,GAAY,CAAE,MAAOF,EAAQ,OAAQ,KAAI,CAAC,EACrF,GAAM,CAACG,EAAOC,IAAA,EAAYnB,EAAAA,SAAAA,CAAS,EAAE,EAC/BoB,GAAA,EAAWnB,EAAAA,OAAAA,CAAgC,IAAI,EAE/CoB,EAAU,GAAmB,CAC7BL,IAAU,IAAA,IACZH,EAAYS,CAAI,EAElBC,IAAgBD,CAAI,CACtB,EAEME,EAAO,GAAgB,CAC3B,IAAMC,EAAMC,EAAI,KAAK,EAChBD,GAAO,GAAQ,SAASA,CAAG,IAG5BR,IAAQ,IAAA,IAAaF,EAAQ,QAAUE,GAG3CI,EAAO,CAAC,GAAGN,EAASU,CAAG,CAAC,EAC1B,EAYA,OACE,EAAAnB,EAAA,KAAA,CAAC,MAAD,CACE,UAAWC,EAAG,gBAAiB,UAAWoB,CAAS,EACnD,YAAWC,EACX,gBAAeC,GAAc,IAAA,GAC7B,eAAcC,GAAapB,GAAe,IAAA,GAC1C,YAAeU,EAAS,SAAS,MAAM,EALzC,SAAA,CAOGL,EAAQ,IAAK,IACZ,EAAAT,EAAA,KAAA,CAAC,OAAD,CAEE,UAAU,
|
|
1
|
+
{"version":3,"file":"index.cjs","names":["forwardRef","useState","useRef","Button","require_components_Button_index","require_useLimit","react","react_jsx_runtime","cx","parts","TagsInput","ariaInvalid","rest","internal","setInternal","defaultValue","current","value","max","draft","setDraft","inputRef","commit","next","onValueChange","add","tag","raw","className","size","isDisabled","isInvalid","event","item","node","ref","placeholder","required"],"sources":["../../../src/components/TagsInput/index.tsx"],"sourcesContent":["import { forwardRef, useRef, useState, type KeyboardEvent } from \"react\";\nimport { Button } from \"../Button\";\nimport type { FieldBinding, FieldSize } from \"../Field\";\nimport { useReportedLimit } from \"../Field/useLimit\";\nimport \"../Field/style.css\";\nimport \"./style.css\";\n\nfunction cx(...parts: (string | undefined | false)[]) {\n return parts.filter(Boolean).join(\" \");\n}\n\nexport interface TagsInputProps extends FieldBinding {\n value?: string[];\n defaultValue?: string[];\n onValueChange?: (value: string[]) => void;\n placeholder?: string;\n size?: FieldSize;\n /** Stop accepting new tags past this count. */\n max?: number;\n isDisabled?: boolean;\n isInvalid?: boolean;\n className?: string;\n}\n\n/**\n * Free-text keywords. Enter or comma commits a tag, Backspace on an empty\n * input removes the last one. Tags are plain strings — never status tones.\n */\nexport const TagsInput = forwardRef<HTMLInputElement, TagsInputProps>(function TagsInput(\n {\n value,\n defaultValue = [],\n onValueChange,\n placeholder = \"Add a tag\",\n size = \"md\",\n max,\n isDisabled = false,\n isInvalid = false,\n required,\n \"aria-invalid\": ariaInvalid,\n className,\n ...rest\n },\n ref,\n) {\n const [internal, setInternal] = useState<string[]>(defaultValue);\n const current = value ?? internal;\n useReportedLimit(rest, max === undefined ? undefined : { count: current.length, max });\n const [draft, setDraft] = useState(\"\");\n const inputRef = useRef<HTMLInputElement | null>(null);\n\n const commit = (next: string[]) => {\n if (value === undefined) {\n setInternal(next);\n }\n onValueChange?.(next);\n };\n\n const add = (raw: string) => {\n const tag = raw.trim();\n if (!tag || current.includes(tag)) {\n return;\n }\n if (max !== undefined && current.length >= max) {\n return;\n }\n commit([...current, tag]);\n };\n\n const onKeyDown = (event: KeyboardEvent<HTMLInputElement>) => {\n if (event.key === \"Enter\" || event.key === \",\") {\n event.preventDefault();\n add(draft);\n setDraft(\"\");\n } else if (event.key === \"Backspace\" && draft === \"\" && current.length > 0) {\n commit(current.slice(0, -1));\n }\n };\n\n return (\n <div\n className={cx(\"ds-field-skin\", \"ds-tags\", className)}\n data-size={size}\n data-disabled={isDisabled || undefined}\n aria-invalid={isInvalid || ariaInvalid || undefined}\n onClick={() => inputRef.current?.focus()}\n >\n {current.map((tag) => (\n <span\n key={tag}\n className=\"ds-tags__tag ds-field-surface\"\n >\n {tag}\n <Button\n variant=\"simple\"\n size=\"xs\"\n isIconOnly\n iconStart=\"x\"\n aria-label={`Remove ${tag}`}\n isDisabled={isDisabled}\n onClick={(event) => {\n event.stopPropagation();\n commit(current.filter((item) => item !== tag));\n }}\n />\n </span>\n ))}\n <input\n ref={(node) => {\n inputRef.current = node;\n if (typeof ref === \"function\") {\n ref(node);\n } else if (ref) {\n ref.current = node;\n }\n }}\n type=\"text\"\n className=\"ds-tags__input\"\n value={draft}\n placeholder={current.length === 0 ? placeholder : \"\"}\n disabled={isDisabled}\n aria-invalid={isInvalid || ariaInvalid || undefined}\n aria-required={required || undefined}\n onChange={(event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,UAAU,gCAFZ,SAAA,CAIGmB,GACD,EAAAnB,EAAA,IAAA,CAACJ,EAAAA,OAAD,CACE,QAAQ,SACR,KAAK,KACL,WAAA,GACA,UAAU,IACV,aAAY,UAAUuB,IACV,aACZ,QAAU,GAAU,CAClBM,EAAM,gBAAgB,EACtBV,EAAON,EAAQ,OAAQ,GAASiB,IAASP,CAAG,CAAC,CAC/C,CACD,CAAA,CACG,CAhBC,EAAAA,CAgBD,CACP,GACD,EAAAnB,EAAA,IAAA,CAAC,QAAD,CACE,IAAM,GAAS,CACb,EAAS,QAAU2B,EACf,OAAOC,GAAQ,WACjBA,EAAID,CAAI,EACCC,IACT,EAAI,QAAUD,EAElB,EACA,KAAK,OACL,UAAU,iBACV,MAAOf,EACP,YAAaH,EAAQ,SAAW,EAAIoB,EAAc,GAClD,SAAUN,EACV,eAAcC,GAAapB,GAAe,IAAA,GAC1C,gBAAe0B,GAAY,IAAA,GAC3B,SAAW,GAAUjB,EAASY,EAAM,OAAO,KAAK,EACrC,UAvDE,GAA2C,CACxDA,EAAM,MAAQ,SAAWA,EAAM,MAAQ,KACzCA,EAAM,eAAe,EACrBP,EAAIN,CAAK,EACTC,EAAS,EAAE,GACFY,EAAM,MAAQ,aAAeb,IAAU,IAAMH,EAAQ,OAAS,GACvEM,EAAON,EAAQ,MAAM,EAAG,EAAE,CAAC,CAE/B,EAgDM,WAAc,CACZS,EAAIN,CAAK,EACTC,EAAS,EAAE,CACb,EACA,GAAIR,CACL,CAAA,CACE,C,EAET,CAAC,E"}
|
|
@@ -26,7 +26,7 @@ var c = n(function({ value: n, defaultValue: c = [], onValueChange: l, placehold
|
|
|
26
26
|
"aria-invalid": m || g || void 0,
|
|
27
27
|
onClick: () => T.current?.focus(),
|
|
28
28
|
children: [S.map((t) => /* @__PURE__ */ o("span", {
|
|
29
|
-
className: "ds-tags__tag",
|
|
29
|
+
className: "ds-tags__tag ds-field-surface",
|
|
30
30
|
children: [t, /* @__PURE__ */ a(e, {
|
|
31
31
|
variant: "simple",
|
|
32
32
|
size: "xs",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["cx","parts","TagsInput","forwardRef","ariaInvalid","rest","internal","setInternal","useState","defaultValue","current","value","max","draft","setDraft","inputRef","useRef","commit","next","onValueChange","add","tag","raw","className","size","isDisabled","isInvalid","Button","event","item","node","ref","placeholder","required"],"sources":["../../../src/components/TagsInput/index.tsx"],"sourcesContent":["import { forwardRef, useRef, useState, type KeyboardEvent } from \"react\";\nimport { Button } from \"../Button\";\nimport type { FieldBinding, FieldSize } from \"../Field\";\nimport { useReportedLimit } from \"../Field/useLimit\";\nimport \"../Field/style.css\";\nimport \"./style.css\";\n\nfunction cx(...parts: (string | undefined | false)[]) {\n return parts.filter(Boolean).join(\" \");\n}\n\nexport interface TagsInputProps extends FieldBinding {\n value?: string[];\n defaultValue?: string[];\n onValueChange?: (value: string[]) => void;\n placeholder?: string;\n size?: FieldSize;\n /** Stop accepting new tags past this count. */\n max?: number;\n isDisabled?: boolean;\n isInvalid?: boolean;\n className?: string;\n}\n\n/**\n * Free-text keywords. Enter or comma commits a tag, Backspace on an empty\n * input removes the last one. Tags are plain strings — never status tones.\n */\nexport const TagsInput = forwardRef<HTMLInputElement, TagsInputProps>(function TagsInput(\n {\n value,\n defaultValue = [],\n onValueChange,\n placeholder = \"Add a tag\",\n size = \"md\",\n max,\n isDisabled = false,\n isInvalid = false,\n required,\n \"aria-invalid\": ariaInvalid,\n className,\n ...rest\n },\n ref,\n) {\n const [internal, setInternal] = useState<string[]>(defaultValue);\n const current = value ?? internal;\n useReportedLimit(rest, max === undefined ? undefined : { count: current.length, max });\n const [draft, setDraft] = useState(\"\");\n const inputRef = useRef<HTMLInputElement | null>(null);\n\n const commit = (next: string[]) => {\n if (value === undefined) {\n setInternal(next);\n }\n onValueChange?.(next);\n };\n\n const add = (raw: string) => {\n const tag = raw.trim();\n if (!tag || current.includes(tag)) {\n return;\n }\n if (max !== undefined && current.length >= max) {\n return;\n }\n commit([...current, tag]);\n };\n\n const onKeyDown = (event: KeyboardEvent<HTMLInputElement>) => {\n if (event.key === \"Enter\" || event.key === \",\") {\n event.preventDefault();\n add(draft);\n setDraft(\"\");\n } else if (event.key === \"Backspace\" && draft === \"\" && current.length > 0) {\n commit(current.slice(0, -1));\n }\n };\n\n return (\n <div\n className={cx(\"ds-field-skin\", \"ds-tags\", className)}\n data-size={size}\n data-disabled={isDisabled || undefined}\n aria-invalid={isInvalid || ariaInvalid || undefined}\n onClick={() => inputRef.current?.focus()}\n >\n {current.map((tag) => (\n <span\n key={tag}\n className=\"ds-tags__tag\"\n >\n {tag}\n <Button\n variant=\"simple\"\n size=\"xs\"\n isIconOnly\n iconStart=\"x\"\n aria-label={`Remove ${tag}`}\n isDisabled={isDisabled}\n onClick={(event) => {\n event.stopPropagation();\n commit(current.filter((item) => item !== tag));\n }}\n />\n </span>\n ))}\n <input\n ref={(node) => {\n inputRef.current = node;\n if (typeof ref === \"function\") {\n ref(node);\n } else if (ref) {\n ref.current = node;\n }\n }}\n type=\"text\"\n className=\"ds-tags__input\"\n value={draft}\n placeholder={current.length === 0 ? placeholder : \"\"}\n disabled={isDisabled}\n aria-invalid={isInvalid || ariaInvalid || undefined}\n aria-required={required || undefined}\n onChange={(event) => setDraft(event.target.value)}\n onKeyDown={onKeyDown}\n onBlur={() => {\n add(draft);\n setDraft(\"\");\n }}\n {...rest}\n />\n </div>\n );\n});\n"],"mappings":";;;;;;AAOA,SAASA,EAAG,GAAGC,GAAuC;CACpD,OAAOA,EAAM,OAAO,OAAO,CAAC,CAAC,KAAK,GAAG;AACvC;AAmBA,IAAaC,IAAYC,EAA6C,SACpE,EACE,UACA,kBAAe,CAAC,GAChB,kBACA,iBAAc,aACd,UAAO,MACP,QACA,gBAAa,IACb,eAAY,IACZ,aACA,gBAAgBC,GAChB,cACA,GAAGC,KAEL,GACA;CACA,IAAM,CAACC,GAAUC,KAAeC,EAAmBC,CAAY,GACzDC,IAAUC,KAAS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MAAUnB,EAASc,EAAM,OAAO,KAAK;GACrC,YAvDE,MAA2C;IAC5D,AAAIA,EAAM,QAAQ,WAAWA,EAAM,QAAQ,OACzCA,EAAM,eAAe,GACrBR,EAAIP,CAAK,GACTC,EAAS,EAAE,KACFc,EAAM,QAAQ,eAAef,MAAU,MAAMH,EAAQ,SAAS,KACvEO,EAAOP,EAAQ,MAAM,GAAG,EAAE,CAAC;GAE/B;GAgDM,cAAc;IAEZ,AADAU,EAAIP,CAAK,GACTC,EAAS,EAAE;GACb;GACA,GAAIT;EACL,CAAA,CACE;;AAET,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","names":["cx","parts","TagsInput","forwardRef","ariaInvalid","rest","internal","setInternal","useState","defaultValue","current","value","max","draft","setDraft","inputRef","useRef","commit","next","onValueChange","add","tag","raw","className","size","isDisabled","isInvalid","Button","event","item","node","ref","placeholder","required"],"sources":["../../../src/components/TagsInput/index.tsx"],"sourcesContent":["import { forwardRef, useRef, useState, type KeyboardEvent } from \"react\";\nimport { Button } from \"../Button\";\nimport type { FieldBinding, FieldSize } from \"../Field\";\nimport { useReportedLimit } from \"../Field/useLimit\";\nimport \"../Field/style.css\";\nimport \"./style.css\";\n\nfunction cx(...parts: (string | undefined | false)[]) {\n return parts.filter(Boolean).join(\" \");\n}\n\nexport interface TagsInputProps extends FieldBinding {\n value?: string[];\n defaultValue?: string[];\n onValueChange?: (value: string[]) => void;\n placeholder?: string;\n size?: FieldSize;\n /** Stop accepting new tags past this count. */\n max?: number;\n isDisabled?: boolean;\n isInvalid?: boolean;\n className?: string;\n}\n\n/**\n * Free-text keywords. Enter or comma commits a tag, Backspace on an empty\n * input removes the last one. Tags are plain strings — never status tones.\n */\nexport const TagsInput = forwardRef<HTMLInputElement, TagsInputProps>(function TagsInput(\n {\n value,\n defaultValue = [],\n onValueChange,\n placeholder = \"Add a tag\",\n size = \"md\",\n max,\n isDisabled = false,\n isInvalid = false,\n required,\n \"aria-invalid\": ariaInvalid,\n className,\n ...rest\n },\n ref,\n) {\n const [internal, setInternal] = useState<string[]>(defaultValue);\n const current = value ?? internal;\n useReportedLimit(rest, max === undefined ? undefined : { count: current.length, max });\n const [draft, setDraft] = useState(\"\");\n const inputRef = useRef<HTMLInputElement | null>(null);\n\n const commit = (next: string[]) => {\n if (value === undefined) {\n setInternal(next);\n }\n onValueChange?.(next);\n };\n\n const add = (raw: string) => {\n const tag = raw.trim();\n if (!tag || current.includes(tag)) {\n return;\n }\n if (max !== undefined && current.length >= max) {\n return;\n }\n commit([...current, tag]);\n };\n\n const onKeyDown = (event: KeyboardEvent<HTMLInputElement>) => {\n if (event.key === \"Enter\" || event.key === \",\") {\n event.preventDefault();\n add(draft);\n setDraft(\"\");\n } else if (event.key === \"Backspace\" && draft === \"\" && current.length > 0) {\n commit(current.slice(0, -1));\n }\n };\n\n return (\n <div\n className={cx(\"ds-field-skin\", \"ds-tags\", className)}\n data-size={size}\n data-disabled={isDisabled || undefined}\n aria-invalid={isInvalid || ariaInvalid || undefined}\n onClick={() => inputRef.current?.focus()}\n >\n {current.map((tag) => (\n <span\n key={tag}\n className=\"ds-tags__tag ds-field-surface\"\n >\n {tag}\n <Button\n variant=\"simple\"\n size=\"xs\"\n isIconOnly\n iconStart=\"x\"\n aria-label={`Remove ${tag}`}\n isDisabled={isDisabled}\n onClick={(event) => {\n event.stopPropagation();\n commit(current.filter((item) => item !== tag));\n }}\n />\n </span>\n ))}\n <input\n ref={(node) => {\n inputRef.current = node;\n if (typeof ref === \"function\") {\n ref(node);\n } else if (ref) {\n ref.current = node;\n }\n }}\n type=\"text\"\n className=\"ds-tags__input\"\n value={draft}\n placeholder={current.length === 0 ? placeholder : \"\"}\n disabled={isDisabled}\n aria-invalid={isInvalid || ariaInvalid || undefined}\n aria-required={required || undefined}\n onChange={(event) => setDraft(event.target.value)}\n onKeyDown={onKeyDown}\n onBlur={() => {\n add(draft);\n setDraft(\"\");\n }}\n {...rest}\n />\n </div>\n );\n});\n"],"mappings":";;;;;;AA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ACG;EAhBC,GAAAA,CAgBD,CACP,GACD,kBAAC,SAAD;GACE,MAAM,MAAS;IAEb,AADA,EAAS,UAAUS,GACf,OAAOC,KAAQ,aACjBA,EAAID,CAAI,IACCC,MACT,EAAI,UAAUD;GAElB;GACA,MAAK;GACL,WAAU;GACV,OAAOjB;GACP,aAAaH,EAAQ,WAAW,IAAIsB,IAAc;GAClD,UAAUP;GACV,gBAAcC,KAAatB,KAAe,KAAA;GAC1C,iBAAe6B,KAAY,KAAA;GAC3B,WAAW,MAAUnB,EAASc,EAAM,OAAO,KAAK;GACrC,YAvDE,MAA2C;IAC5D,AAAIA,EAAM,QAAQ,WAAWA,EAAM,QAAQ,OACzCA,EAAM,eAAe,GACrBR,EAAIP,CAAK,GACTC,EAAS,EAAE,KACFc,EAAM,QAAQ,eAAef,MAAU,MAAMH,EAAQ,SAAS,KACvEO,EAAOP,EAAQ,MAAM,GAAG,EAAE,CAAC;GAE/B;GAgDM,cAAc;IAEZ,AADAU,EAAIP,CAAK,GACTC,EAAS,EAAE;GACb;GACA,GAAIT;EACL,CAAA,CACE;;AAET,CAAC"}
|
|
@@ -19,10 +19,14 @@
|
|
|
19
19
|
|
|
20
20
|
.ds-tags:focus-within {
|
|
21
21
|
background: var(--field-focus);
|
|
22
|
-
outline: var(--
|
|
22
|
+
outline: var(--focus-width) solid var(--color-focus);
|
|
23
23
|
outline-offset: 2px;
|
|
24
24
|
}
|
|
25
25
|
|
|
26
|
+
.ds-tags[aria-invalid="true"]:focus-within {
|
|
27
|
+
background: var(--field-invalid-focus);
|
|
28
|
+
}
|
|
29
|
+
|
|
26
30
|
.ds-tags[data-disabled] {
|
|
27
31
|
opacity: 0.45;
|
|
28
32
|
cursor: not-allowed;
|
|
@@ -34,18 +38,21 @@
|
|
|
34
38
|
gap: var(--space-1);
|
|
35
39
|
|
|
36
40
|
/* The xs remove Button sets the chip height, so the md field never grows. */
|
|
37
|
-
padding:
|
|
38
|
-
border:
|
|
41
|
+
padding: 2px var(--space-1) 2px var(--space-2);
|
|
42
|
+
border: 0;
|
|
39
43
|
border-radius: var(--radius-pill);
|
|
40
|
-
background: var(--
|
|
44
|
+
background: var(--field-bg);
|
|
41
45
|
font-size: var(--font-size-xs);
|
|
42
46
|
font-weight: var(--font-weight-semibold);
|
|
47
|
+
|
|
48
|
+
/* A chip is a surface of its own, so its remove Button steps from it. */
|
|
49
|
+
--field-bg: var(--color-canvas);
|
|
43
50
|
}
|
|
44
51
|
|
|
45
52
|
.ds-tags__input {
|
|
46
53
|
flex: 1;
|
|
47
54
|
min-inline-size: 6rem;
|
|
48
|
-
border:
|
|
55
|
+
border: 0;
|
|
49
56
|
background: transparent;
|
|
50
57
|
color: var(--color-text);
|
|
51
58
|
font-family: var(--font-sans);
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../../chunks/mergeRefs-CZ-SArlE.cjs"),t=require("../../chunks/useTooltip-
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../../chunks/mergeRefs-CZ-SArlE.cjs"),t=require("../../chunks/useTooltip-C7ON4nkV.cjs");let n=require("react"),r=require("react/jsx-runtime");function i(...e){return e.filter(Boolean).join(` `)}var a=[`Jan`,`Feb`,`Mar`,`Apr`,`May`,`Jun`,`Jul`,`Aug`,`Sep`,`Oct`,`Nov`,`Dec`],o=6e4,s=60*o,c=24*s,l=7*c;function u(e){return String(e).padStart(2,`0`)}function d(e,t={}){let{hasYear:n=!0}=t,r=`${e.getDate()} ${a[e.getMonth()]}`;return n?`${r} ${e.getFullYear()}`:r}function f(e,t={}){let{hasTimeZone:n=!0}=t,r=`${d(e)}, ${u(e.getHours())}:${u(e.getMinutes())}`;if(!n)return r;let i=new Intl.DateTimeFormat(void 0,{timeZoneName:`short`}).formatToParts(e).find(e=>e.type===`timeZoneName`)?.value;return i?`${r} ${i}`:r}function p(e,t=new Date){let n=t.getTime()-e.getTime();if(n<0)return d(e,{hasYear:e.getFullYear()!==t.getFullYear()});if(n<o)return`Just now`;if(n<s)return`${Math.floor(n/o)}m ago`;if(n<c)return`${Math.floor(n/s)}h ago`;if(n<l){let e=Math.floor(n/c);return`${e} ${e===1?`day`:`days`} ago`}return d(e,{hasYear:e.getFullYear()!==t.getFullYear()})}var m=(0,n.forwardRef)(function({value:a,format:o=`auto`,hasTooltip:s=!0,hasTimeZone:c=!0,now:l,refreshInterval:u=3e4,className:m,tabIndex:h,title:g,onMouseEnter:_,onMouseLeave:v,onFocus:y,onBlur:b,"aria-describedby":x,...S},C){let w=a instanceof Date?a:new Date(a),T=!Number.isNaN(w.getTime()),[,E]=(0,n.useState)(0);(0,n.useEffect)(()=>{if(o===`absolute`||l)return;let e=window.setInterval(()=>E(e=>e+1),u);return()=>window.clearInterval(e)},[o,l,u]);let D=T?o===`absolute`?d(w):p(w,l??new Date):``,O=T?f(w,{hasTimeZone:c}):``,k=T&&s&&D!==O,{anchorRef:A,description:j,triggerProps:M,panel:N}=t.t(k&&O,{className:`ds-time-tooltip`}),P=(0,n.useMemo)(()=>e.t(A,C),[A,C]);return T?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(`time`,{ref:P,dateTime:w.toISOString(),suppressHydrationWarning:!0,className:i(`ds-time`,!k&&`ds-time--plain`,m),tabIndex:h??(k?0:void 0),"aria-describedby":[x,j].filter(Boolean).join(` `)||void 0,title:g??(k?void 0:O),...M({onMouseEnter:_,onMouseLeave:v,onFocus:y,onBlur:b}),...S,children:D}),N]}):null});exports.Time=m,exports.formatAbsoluteDate=d,exports.formatAbsoluteTime=f,exports.formatRelativeTime=p;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as e } from "../../chunks/mergeRefs-C6_5pADN.js";
|
|
2
|
-
import { t } from "../../chunks/useTooltip-
|
|
2
|
+
import { t } from "../../chunks/useTooltip-DnJEFBLg.js";
|
|
3
3
|
import { forwardRef as n, useEffect as r, useMemo as i, useState as a } from "react";
|
|
4
4
|
import { Fragment as o, jsx as s, jsxs as c } from "react/jsx-runtime";
|
|
5
5
|
//#region src/components/Time/index.tsx
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../../chunks/Message-
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../../chunks/Message-CIKSTXp8.cjs");let t=require("react"),n=require("react/jsx-runtime");var r=(0,t.forwardRef)(function({tone:t=`neutral`,title:r,description:i,onDismiss:a,role:o=`status`,className:s,...c},l){return(0,n.jsx)(e.t,{...c,ref:l,role:o,tone:t,title:r,appearance:`floating`,icon:`auto`,onDismiss:a,classPrefix:`ds-toast`,dismissLabel:`Dismiss notification`,className:[`ds-toast`,s].filter(Boolean).join(` `),children:i})}),i=(0,t.createContext)(null);function a({children:e}){let[r,a]=(0,t.useState)([]),s=(0,t.useRef)(0),c=(0,t.useCallback)(e=>{a(t=>t.filter(t=>t.id!==e))},[]),l=(0,t.useCallback)(e=>{a(t=>[...t,{...e,id:s.current++}])},[]),u=(0,t.useMemo)(()=>({toast:l,dismiss:c}),[l,c]);return(0,n.jsxs)(i.Provider,{value:u,children:[e,(0,n.jsx)(o,{items:r,onDismiss:c})]})}function o({items:e,onDismiss:t}){return e.length===0?null:(0,n.jsx)(`div`,{className:`ds-toast-region`,role:`region`,"aria-label":`Notifications`,children:e.map(e=>(0,n.jsx)(s,{item:e,onDismiss:t},e.id))})}function s({item:e,onDismiss:i}){return(0,t.useEffect)(()=>{let t=window.setTimeout(()=>i(e.id),e.duration??5e3);return()=>window.clearTimeout(t)},[e,i]),(0,n.jsx)(r,{tone:e.tone,title:e.title,description:e.description,onDismiss:()=>i(e.id)})}function c(){let e=(0,t.useContext)(i);if(!e)throw Error(`useToast must be used inside a <ToastProvider>.`);return e}exports.Toast=r,exports.ToastProvider=a,exports.useToast=c;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as e } from "../../chunks/Message-
|
|
1
|
+
import { t as e } from "../../chunks/Message-C73sJfdo.js";
|
|
2
2
|
import { createContext as t, forwardRef as n, useCallback as r, useContext as i, useEffect as a, useMemo as o, useRef as s, useState as c } from "react";
|
|
3
3
|
import { jsx as l, jsxs as u } from "react/jsx-runtime";
|
|
4
4
|
//#region src/components/Toast/index.tsx
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
inline-size: min(var(--toast-width), calc(100vw - var(--space-8)));
|
|
11
11
|
}
|
|
12
12
|
|
|
13
|
-
/* --toast-tone stays the public recolouring hook for the
|
|
13
|
+
/* --toast-tone stays the public recolouring hook for the icon. The
|
|
14
14
|
* shared floating styles read it through --message-accent, which they never
|
|
15
15
|
* declare, so the result does not depend on stylesheet order. */
|
|
16
16
|
.ds-toast {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../../chunks/Icon-CD3oeiNA.cjs");let t=require("react"),n=require("react/jsx-runtime");var r=(0,t.forwardRef)(function({brand:e,actions:t,label:r=`Product`,className:i,children:a,...o},s){return(0,n.jsxs)(`header`,{ref:s,className:[`ds-topnav`,i].filter(Boolean).join(` `),...o,children:[e&&(0,n.jsx)(`div`,{className:`ds-topnav__brand`,children:e}),a&&(0,n.jsx)(`nav`,{className:`ds-topnav__nav`,"aria-label":r,children:(0,n.jsx)(`ul`,{className:`ds-topnav__list`,children:a})}),t&&(0,n.jsx)(`div`,{className:`ds-topnav__actions`,children:t})]})}),i=(0,t.forwardRef)(function({label:t,icon:r,isActive:i,className:a,...o},s){return(0,n.jsx)(`li`,{className:`ds-topnav__row`,children:(0,n.jsxs)(`a`,{ref:s,className:[`ds-topnav__item`,a].filter(Boolean).join(` `),"data-active":i||void 0,"aria-current":i?`page`:void 0,...o,children:[r&&(0,n.jsx)(e.t,{name:r}),t]})})});exports.TopNav=r,exports.TopNavItem=i;
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../../chunks/Icon-CD3oeiNA.cjs");let t=require("react"),n=require("react/jsx-runtime");var r=(0,t.forwardRef)(function({brand:e,actions:t,label:r=`Product`,className:i,children:a,...o},s){return(0,n.jsxs)(`header`,{ref:s,className:[`ds-topnav`,`ds-field-surface`,i].filter(Boolean).join(` `),...o,children:[e&&(0,n.jsx)(`div`,{className:`ds-topnav__brand`,children:e}),a&&(0,n.jsx)(`nav`,{className:`ds-topnav__nav`,"aria-label":r,children:(0,n.jsx)(`ul`,{className:`ds-topnav__list`,children:a})}),t&&(0,n.jsx)(`div`,{className:`ds-topnav__actions`,children:t})]})}),i=(0,t.forwardRef)(function({label:t,icon:r,isActive:i,className:a,...o},s){return(0,n.jsx)(`li`,{className:`ds-topnav__row`,children:(0,n.jsxs)(`a`,{ref:s,className:[`ds-topnav__item`,a].filter(Boolean).join(` `),"data-active":i||void 0,"aria-current":i?`page`:void 0,...o,children:[r&&(0,n.jsx)(e.t,{name:r}),t]})})});exports.TopNav=r,exports.TopNavItem=i;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs","names":["forwardRef","Icon","require_Icon","react","react_jsx_runtime","TopNav","rest","className","brand","children","label","actions","TopNavItem","isActive","icon"],"sources":["../../../src/components/TopNav/index.tsx"],"sourcesContent":["import { forwardRef, type AnchorHTMLAttributes, type HTMLAttributes, type ReactNode } from \"react\";\nimport { Icon } from \"../Icon\";\nimport type { IconName } from \"../Icon/icons\";\nimport \"./style.css\";\n\nexport interface TopNavProps extends HTMLAttributes<HTMLElement> {\n /** Brand block or product mark, first in the bar. */\n brand?: ReactNode;\n /** Controls at the end: search, notifications, the account avatar. */\n actions?: ReactNode;\n /** Accessible name for the landmark. */\n label?: string;\n children?: ReactNode;\n}\n\n/**\n * The product bar: brand at the start, destinations in the middle, account\n * work at the end,
|
|
1
|
+
{"version":3,"file":"index.cjs","names":["forwardRef","Icon","require_Icon","react","react_jsx_runtime","TopNav","rest","className","brand","children","label","actions","TopNavItem","isActive","icon"],"sources":["../../../src/components/TopNav/index.tsx"],"sourcesContent":["import { forwardRef, type AnchorHTMLAttributes, type HTMLAttributes, type ReactNode } from \"react\";\nimport { Icon } from \"../Icon\";\nimport type { IconName } from \"../Icon/icons\";\nimport \"./style.css\";\n\nexport interface TopNavProps extends HTMLAttributes<HTMLElement> {\n /** Brand block or product mark, first in the bar. */\n brand?: ReactNode;\n /** Controls at the end: search, notifications, the account avatar. */\n actions?: ReactNode;\n /** Accessible name for the landmark. */\n label?: string;\n children?: ReactNode;\n}\n\n/**\n * The product bar: brand at the start, destinations in the middle, account\n * work at the end, on a fill slightly darker than the side navigation. It sits\n * above the side rail, never inside it.\n */\nexport const TopNav = forwardRef<HTMLElement, TopNavProps>(function TopNav(\n { brand, actions, label = \"Product\", className, children, ...rest },\n ref,\n) {\n return (\n <header\n ref={ref}\n className={[\"ds-topnav\", \"ds-field-surface\", className].filter(Boolean).join(\" \")}\n {...rest}\n >\n {brand && <div className=\"ds-topnav__brand\">{brand}</div>}\n {children && (\n <nav\n className=\"ds-topnav__nav\"\n aria-label={label}\n >\n <ul className=\"ds-topnav__list\">{children}</ul>\n </nav>\n )}\n {actions && <div className=\"ds-topnav__actions\">{actions}</div>}\n </header>\n );\n});\n\nexport interface TopNavItemProps extends AnchorHTMLAttributes<HTMLAnchorElement> {\n label: string;\n icon?: IconName;\n isActive?: boolean;\n}\n\n/**\n * One destination in the bar. Active destinations use primary text and bold\n * weight, with aria-current naming the current page.\n */\nexport const TopNavItem = forwardRef<HTMLAnchorElement, TopNavItemProps>(function TopNavItem(\n { label, icon, isActive, className, ...rest },\n ref,\n) {\n return (\n <li className=\"ds-topnav__row\">\n <a\n ref={ref}\n className={[\"ds-topnav__item\", className].filter(Boolean).join(\" \")}\n data-active={isActive || undefined}\n aria-current={isActive ? \"page\" : undefined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Element> {
|
|
|
11
11
|
}
|
|
12
12
|
/**
|
|
13
13
|
* The product bar: brand at the start, destinations in the middle, account
|
|
14
|
-
* work at the end,
|
|
15
|
-
* side rail, never inside it.
|
|
14
|
+
* work at the end, on a fill slightly darker than the side navigation. It sits
|
|
15
|
+
* above the side rail, never inside it.
|
|
16
16
|
*/
|
|
17
17
|
export declare const TopNav: import("react").ForwardRefExoticComponent<TopNavProps & import("react").RefAttributes<HTMLElement>>;
|
|
18
18
|
export interface TopNavItemProps extends AnchorHTMLAttributes<HTMLAnchorElement> {
|
|
@@ -21,8 +21,8 @@ export interface TopNavItemProps extends AnchorHTMLAttributes<HTMLAnchorElement>
|
|
|
21
21
|
isActive?: boolean;
|
|
22
22
|
}
|
|
23
23
|
/**
|
|
24
|
-
* One destination in the bar.
|
|
25
|
-
*
|
|
24
|
+
* One destination in the bar. Active destinations use primary text and bold
|
|
25
|
+
* weight, with aria-current naming the current page.
|
|
26
26
|
*/
|
|
27
27
|
export declare const TopNavItem: import("react").ForwardRefExoticComponent<TopNavItemProps & import("react").RefAttributes<HTMLAnchorElement>>;
|
|
28
28
|
//# sourceMappingURL=index.d.cts.map
|
|
@@ -11,8 +11,8 @@ export interface TopNavProps extends HTMLAttributes<HTMLElement> {
|
|
|
11
11
|
}
|
|
12
12
|
/**
|
|
13
13
|
* The product bar: brand at the start, destinations in the middle, account
|
|
14
|
-
* work at the end,
|
|
15
|
-
* side rail, never inside it.
|
|
14
|
+
* work at the end, on a fill slightly darker than the side navigation. It sits
|
|
15
|
+
* above the side rail, never inside it.
|
|
16
16
|
*/
|
|
17
17
|
export declare const TopNav: import("react").ForwardRefExoticComponent<TopNavProps & import("react").RefAttributes<HTMLElement>>;
|
|
18
18
|
export interface TopNavItemProps extends AnchorHTMLAttributes<HTMLAnchorElement> {
|
|
@@ -21,8 +21,8 @@ export interface TopNavItemProps extends AnchorHTMLAttributes<HTMLAnchorElement>
|
|
|
21
21
|
isActive?: boolean;
|
|
22
22
|
}
|
|
23
23
|
/**
|
|
24
|
-
* One destination in the bar.
|
|
25
|
-
*
|
|
24
|
+
* One destination in the bar. Active destinations use primary text and bold
|
|
25
|
+
* weight, with aria-current naming the current page.
|
|
26
26
|
*/
|
|
27
27
|
export declare const TopNavItem: import("react").ForwardRefExoticComponent<TopNavItemProps & import("react").RefAttributes<HTMLAnchorElement>>;
|
|
28
28
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -5,7 +5,11 @@ import { jsx as n, jsxs as r } from "react/jsx-runtime";
|
|
|
5
5
|
var i = t(function({ brand: e, actions: t, label: i = "Product", className: a, children: o, ...s }, c) {
|
|
6
6
|
return /* @__PURE__ */ r("header", {
|
|
7
7
|
ref: c,
|
|
8
|
-
className: [
|
|
8
|
+
className: [
|
|
9
|
+
"ds-topnav",
|
|
10
|
+
"ds-field-surface",
|
|
11
|
+
a
|
|
12
|
+
].filter(Boolean).join(" "),
|
|
9
13
|
...s,
|
|
10
14
|
children: [
|
|
11
15
|
e && /* @__PURE__ */ n("div", {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["Icon","TopNav","forwardRef","rest","className","brand","children","label","actions","TopNavItem","isActive","icon"],"sources":["../../../src/components/TopNav/index.tsx"],"sourcesContent":["import { forwardRef, type AnchorHTMLAttributes, type HTMLAttributes, type ReactNode } from \"react\";\nimport { Icon } from \"../Icon\";\nimport type { IconName } from \"../Icon/icons\";\nimport \"./style.css\";\n\nexport interface TopNavProps extends HTMLAttributes<HTMLElement> {\n /** Brand block or product mark, first in the bar. */\n brand?: ReactNode;\n /** Controls at the end: search, notifications, the account avatar. */\n actions?: ReactNode;\n /** Accessible name for the landmark. */\n label?: string;\n children?: ReactNode;\n}\n\n/**\n * The product bar: brand at the start, destinations in the middle, account\n * work at the end,
|
|
1
|
+
{"version":3,"file":"index.js","names":["Icon","TopNav","forwardRef","rest","className","brand","children","label","actions","TopNavItem","isActive","icon"],"sources":["../../../src/components/TopNav/index.tsx"],"sourcesContent":["import { forwardRef, type AnchorHTMLAttributes, type HTMLAttributes, type ReactNode } from \"react\";\nimport { Icon } from \"../Icon\";\nimport type { IconName } from \"../Icon/icons\";\nimport \"./style.css\";\n\nexport interface TopNavProps extends HTMLAttributes<HTMLElement> {\n /** Brand block or product mark, first in the bar. */\n brand?: ReactNode;\n /** Controls at the end: search, notifications, the account avatar. */\n actions?: ReactNode;\n /** Accessible name for the landmark. */\n label?: string;\n children?: ReactNode;\n}\n\n/**\n * The product bar: brand at the start, destinations in the middle, account\n * work at the end, on a fill slightly darker than the side navigation. It sits\n * above the side rail, never inside it.\n */\nexport const TopNav = forwardRef<HTMLElement, TopNavProps>(function TopNav(\n { brand, actions, label = \"Product\", className, children, ...rest },\n ref,\n) {\n return (\n <header\n ref={ref}\n className={[\"ds-topnav\", \"ds-field-surface\", className].filter(Boolean).join(\" \")}\n {...rest}\n >\n {brand && <div className=\"ds-topnav__brand\">{brand}</div>}\n {children && (\n <nav\n className=\"ds-topnav__nav\"\n aria-label={label}\n >\n <ul className=\"ds-topnav__list\">{children}</ul>\n </nav>\n )}\n {actions && <div className=\"ds-topnav__actions\">{actions}</div>}\n </header>\n );\n});\n\nexport interface TopNavItemProps extends AnchorHTMLAttributes<HTMLAnchorElement> {\n label: string;\n icon?: IconName;\n isActive?: boolean;\n}\n\n/**\n * One destination in the bar. Active destinations use primary text and bold\n * weight, with aria-current naming the current page.\n */\nexport const TopNavItem = forwardRef<HTMLAnchorElement, TopNavItemProps>(function TopNavItem(\n { label, icon, isActive, className, ...rest },\n ref,\n) {\n return (\n <li className=\"ds-topnav__row\">\n <a\n ref={ref}\n className={[\"ds-topnav__item\", className].filter(Boolean).join(\" \")}\n data-active={isActive || undefined}\n aria-current={isActive ? \"page\" : undefined}\n {...rest}\n >\n {icon && <Icon name={icon} />}\n {label}\n </a>\n </li>\n );\n});\n"],"mappings":";;;;AAoBA,IAAaC,IAASC,EAAqC,SACzD,EAAE,UAAO,YAAS,WAAQ,WAAW,cAAW,aAAU,GAAGC,KAC7D,GACA;CACA,OACE,kBAAC,UAAD;EACO;EACL,WAAW;GAAC;GAAa;GAAoBC;EAAS,CAAC,CAAC,OAAO,OAAO,CAAC,CAAC,KAAK,GAAG;EAChF,GAAID;EAHN,UAAA;GAKGE,KAAS,kBAAC,OAAD;IAAK,WAAU;IAAoB,UAAAA;GAAW,CAAA;GACvDC,KACC,kBAAC,OAAD;IACE,WAAU;IACV,cAAYC;IAEZ,UAAA,kBAAC,MAAD;KAAI,WAAU;KAAmB;IAAa,CAAA;GAC3C,CAAA;GAENC,KAAW,kBAAC,OAAD;IAAK,WAAU;IAAsB,UAAAA;GAAa,CAAA;EACxD;;AAEZ,CAAC,GAYYC,IAAaP,EAA+C,SACvE,EAAE,UAAO,SAAM,aAAU,cAAW,GAAGC,KACvC,GACA;CACA,OACE,kBAAC,MAAD;EAAI,WAAU;EACZ,UAAA,kBAAC,KAAD;GACO;GACL,WAAW,CAAC,mBAAmBC,CAAS,CAAC,CAAC,OAAO,OAAO,CAAC,CAAC,KAAK,GAAG;GAClE,eAAaM,KAAY,KAAA;GACzB,gBAAcA,IAAW,SAAS,KAAA;GAClC,GAAIP;GALN,UAAA,CAOGQ,KAAQ,kBAACX,GAAD,EAAM,MAAMW,EAAO,CAAA,GAC3BJ,CACA;;CACD,CAAA;AAER,CAAC"}
|
|
@@ -5,8 +5,9 @@
|
|
|
5
5
|
gap: var(--space-6);
|
|
6
6
|
min-block-size: var(--topnav-height);
|
|
7
7
|
padding-inline: var(--space-5);
|
|
8
|
-
background: var(--
|
|
9
|
-
|
|
8
|
+
background: var(--field-bg);
|
|
9
|
+
|
|
10
|
+
--field-bg: var(--color-header);
|
|
10
11
|
}
|
|
11
12
|
|
|
12
13
|
.ds-topnav__brand {
|
|
@@ -31,7 +32,7 @@
|
|
|
31
32
|
padding: 0;
|
|
32
33
|
}
|
|
33
34
|
|
|
34
|
-
/*
|
|
35
|
+
/* Active destinations read through their text colour and weight. */
|
|
35
36
|
.ds-topnav__item {
|
|
36
37
|
display: flex;
|
|
37
38
|
align-items: center;
|
|
@@ -44,10 +45,7 @@
|
|
|
44
45
|
text-decoration: none;
|
|
45
46
|
white-space: nowrap;
|
|
46
47
|
cursor: pointer;
|
|
47
|
-
|
|
48
|
-
transition:
|
|
49
|
-
background-color var(--duration-fast) var(--ease-standard),
|
|
50
|
-
box-shadow var(--duration-fast) var(--ease-standard);
|
|
48
|
+
transition: background-color var(--duration-fast) var(--ease-standard);
|
|
51
49
|
}
|
|
52
50
|
|
|
53
51
|
.ds-topnav__item:hover {
|
|
@@ -55,14 +53,13 @@
|
|
|
55
53
|
}
|
|
56
54
|
|
|
57
55
|
.ds-topnav__item:focus-visible {
|
|
58
|
-
outline: var(--
|
|
56
|
+
outline: var(--focus-width) solid var(--color-focus);
|
|
59
57
|
outline-offset: -2px;
|
|
60
58
|
}
|
|
61
59
|
|
|
62
60
|
.ds-topnav__item[data-active] {
|
|
63
61
|
font-weight: var(--font-weight-bold);
|
|
64
62
|
color: var(--color-primary-text);
|
|
65
|
-
box-shadow: inset 0 calc(-1 * var(--rail-width)) 0 0 var(--rail-color);
|
|
66
63
|
}
|
|
67
64
|
|
|
68
65
|
.ds-topnav__actions {
|
package/dist/elements.css
CHANGED
package/dist/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./chunks/Icon-CD3oeiNA.cjs"),t=require("./components/Button/index.cjs"),n=require("./chunks/Drawer-
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./chunks/Icon-CD3oeiNA.cjs"),t=require("./components/Button/index.cjs"),n=require("./chunks/Drawer-DdIH9jpe.cjs"),r=require("./chunks/overlayLayer-iGhuAByk.cjs"),i=require("./components/SideNav/index.cjs"),a=require("./components/TopNav/index.cjs"),o=require("./components/AppShell/index.cjs"),s=require("./components/ButtonGroup/index.cjs"),c=require("./components/Badge/index.cjs"),l=require("./components/LimitReading/index.cjs"),u=require("./components/Field/index.cjs"),d=require("./components/Modal/index.cjs"),f=require("./components/TextField/index.cjs"),p=require("./chunks/RichTextEditor--kMao88d.cjs"),m=require("./components/Popover/index.cjs"),h=require("./components/Menu/index.cjs"),g=require("./components/Skeleton/index.cjs"),_=require("./components/Banner/index.cjs"),v=require("./chunks/LoadState-BXLG-SkQ.cjs"),y=require("./components/FieldAffix/index.cjs"),b=require("./components/SearchField/index.cjs"),x=require("./components/Grid/index.cjs"),S=require("./components/Choice/index.cjs"),C=require("./components/Container/index.cjs"),w=require("./components/SortableList/index.cjs"),T=require("./chunks/EntryPicker-CCCoJxbd.cjs"),E=require("./chunks/NumberField-BrWFmPkW.cjs"),D=require("./components/Select/index.cjs"),O=require("./components/Switch/index.cjs"),k=require("./chunks/Slider-BfvNPjRJ.cjs"),A=require("./chunks/ColourField-DuoVeXjG.cjs"),j=require("./chunks/DatePicker-BYpGsfL4.cjs"),M=require("./components/TagsInput/index.cjs"),N=require("./components/SelectionCard/index.cjs"),P=require("./chunks/FormEditor-ArvjKtJJ.cjs"),F=require("./chunks/Board-CNVy8gHI.cjs"),I=require("./chunks/Avatar-BY0dAItT.cjs"),L=require("./components/Table/index.cjs"),R=require("./components/Toast/index.cjs"),z=require("./components/SubNav/index.cjs"),B=require("./components/Stepper/index.cjs"),V=require("./components/AssetCard/index.cjs"),H=require("./components/AssetGrid/index.cjs"),U=require("./components/ImageCropper/index.cjs"),W=require("./components/Time/index.cjs"),G=require("./components/Pagination/index.cjs"),K=require("./components/EditLayout/index.cjs"),q=require("./chunks/CollectionView-CIJdNwcq.cjs"),J=require("./components/EditSection/index.cjs"),Y=require("./components/PageHeader/index.cjs"),X=require("./components/MetaList/index.cjs"),Z=require("./chunks/Wizard-B_CPW1V6.cjs");exports.AppShell=o.AppShell,exports.AssetCard=V.AssetCard,exports.AssetCardSkeleton=V.AssetCardSkeleton,exports.AssetGrid=H.AssetGrid,exports.AssetGridEmpty=H.AssetGridEmpty,exports.Avatar=I.t,exports.AvatarGroup=I.n,exports.Badge=c.Badge,exports.Banner=_.Banner,exports.Board=F.t,exports.BoardCard=F.n,exports.BoardColumn=F.r,exports.Button=t.Button,exports.ButtonGroup=s.ButtonGroup,exports.Calendar=j.t,exports.Checkbox=S.Checkbox,exports.CheckboxCard=N.CheckboxCard,exports.ChoiceGroup=S.ChoiceGroup,exports.CollectionEmpty=q.n,exports.CollectionView=q.t,exports.ColourField=A.t,exports.ColourPanel=A.n,exports.Container=C.Container,exports.DateField=j.n,exports.DateRangeField=j.r,exports.Drawer=n.t,exports.EditLayout=K.EditLayout,exports.EditSection=J.EditSection,exports.EntryPicker=T.t,exports.Field=u.Field,exports.FieldAffix=y.FieldAffix,exports.FormEditor=P.t,exports.Grid=x.Grid,exports.GridItem=x.GridItem,exports.Icon=e.t,exports.ImageCropper=U.ImageCropper,exports.LimitReading=l.LimitReading,exports.LoadError=v.r,exports.LoadState=v.t,exports.Menu=h.Menu,exports.MenuItem=h.MenuItem,exports.MenuLabel=h.MenuLabel,exports.MenuSeparator=h.MenuSeparator,exports.MetaList=X.MetaList,exports.Modal=d.Modal,exports.NumberField=E.t,exports.NumberRangeField=E.n,exports.OverlayLayer=r.n,exports.PageHeader=Y.PageHeader,exports.Pagination=G.Pagination,exports.Popover=m.Popover,exports.Radio=S.Radio,exports.RadioCard=N.RadioCard,exports.RangeSlider=k.t,exports.ReviewTable=Z.n,exports.RichTextEditor=p.t,exports.SearchField=b.SearchField,exports.Select=D.Select,exports.SelectionCardGroup=N.SelectionCardGroup,exports.SideNav=i.SideNav,exports.SideNavFooter=i.SideNavFooter,exports.SideNavHeader=i.SideNavHeader,exports.SideNavItem=i.SideNavItem,exports.SideNavSection=i.SideNavSection,exports.Skeleton=g.Skeleton,exports.SkeletonText=g.SkeletonText,exports.Slider=k.n,exports.SortableList=w.SortableList,exports.SortableListItem=w.SortableListItem,exports.Stack=x.Stack,exports.Stepper=B.Stepper,exports.SubNav=z.SubNav,exports.SubNavButton=z.SubNavButton,exports.SubNavItem=z.SubNavItem,exports.Switch=O.Switch,exports.Table=L.Table,exports.TableBody=L.TableBody,exports.TableCell=L.TableCell,exports.TableEmpty=L.TableEmpty,exports.TableFrame=L.TableFrame,exports.TableHead=L.TableHead,exports.TableHeaderCell=L.TableHeaderCell,exports.TableRow=L.TableRow,exports.TableToolbar=L.TableToolbar,exports.TagsInput=M.TagsInput,exports.TextArea=f.TextArea,exports.TextField=f.TextField,exports.Time=W.Time,exports.Toast=R.Toast,exports.ToastProvider=R.ToastProvider,exports.TopNav=a.TopNav,exports.TopNavItem=a.TopNavItem,exports.Wizard=Z.t,exports.cropToBlob=U.cropToBlob,exports.formatAbsoluteDate=W.formatAbsoluteDate,exports.formatAbsoluteTime=W.formatAbsoluteTime,exports.formatIsoDate=j.i,exports.formatRelativeTime=W.formatRelativeTime,exports.iconNames=e.n,exports.icons=e.r,exports.useSideNavCollapsed=i.useSideNavCollapsed,exports.useToast=R.useToast,exports.validateFormValues=P.n;
|
package/dist/index.d.cts
CHANGED
|
@@ -54,8 +54,8 @@ export { Stepper } from "./components/Stepper/index.cjs";
|
|
|
54
54
|
export type { StepperProps, StepperSize, StepperOrientation, Step, StepStatus, } from "./components/Stepper/index.cjs";
|
|
55
55
|
export { AssetCard, AssetCardSkeleton } from "./components/AssetCard/index.cjs";
|
|
56
56
|
export type { AssetCardProps, AssetCardSkeletonProps } from "./components/AssetCard/index.cjs";
|
|
57
|
-
export { AssetGrid,
|
|
58
|
-
export type { AssetGridProps,
|
|
57
|
+
export { AssetGrid, AssetGridEmpty } from "./components/AssetGrid/index.cjs";
|
|
58
|
+
export type { AssetGridProps, AssetGridEmptyProps } from "./components/AssetGrid/index.cjs";
|
|
59
59
|
export { ImageCropper, cropToBlob } from "./components/ImageCropper/index.cjs";
|
|
60
60
|
export type { ImageCropperProps, ImageCropperDefaultState, CropRect, CropState, CropToBlobOptions, } from "./components/ImageCropper/index.cjs";
|
|
61
61
|
export { Grid, GridItem, Stack } from "./components/Grid/index.cjs";
|
package/dist/index.d.cts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.cts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjD,YAAY,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAE3D,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAC7C,YAAY,EAAE,WAAW,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAElF,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AACvD,YAAY,EAAE,gBAAgB,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAEzF,OAAO,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAC7D,YAAY,EACV,iBAAiB,EACjB,mBAAmB,EACnB,oBAAoB,EACpB,mBAAmB,EACnB,mBAAmB,EACnB,kBAAkB,EAClB,oBAAoB,EACpB,mBAAmB,EACnB,kBAAkB,EAClB,2BAA2B,EAC3B,gBAAgB,GACjB,MAAM,6BAA6B,CAAC;AAErC,OAAO,EAAE,UAAU,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AACzE,YAAY,EACV,eAAe,EACf,UAAU,EACV,UAAU,EACV,SAAS,EACT,WAAW,EACX,QAAQ,EACR,UAAU,EACV,UAAU,EACV,cAAc,EACd,UAAU,EACV,cAAc,GACf,MAAM,yBAAyB,CAAC;AAEjC,OAAO,EAAE,KAAK,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AACnE,YAAY,EACV,UAAU,EACV,gBAAgB,EAChB,cAAc,EACd,SAAS,EACT,eAAe,GAChB,MAAM,oBAAoB,CAAC;AAE5B,OAAO,EAAE,YAAY,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAC3E,YAAY,EAAE,iBAAiB,EAAE,qBAAqB,EAAE,M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U,EAAE,MAAM,yBAAyB,CAAC;AACrD,YAAY,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAE/D,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AACrD,YAAY,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAE9E,OAAO,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AAC9E,YAAY,EACV,mBAAmB,EACnB,oBAAoB,EACpB,mBAAmB,GACpB,MAAM,6BAA6B,CAAC;AAErC,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAC9D,YAAY,EACV,cAAc,EACd,cAAc,EACd,UAAU,EACV,UAAU,GACX,MAAM,wBAAwB,CAAC;AAEhC,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AACvD,YAAY,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAEjE,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AACrD,YAAY,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAE/D,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjD,YAAY,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAE3D,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAC1D,YAAY,EAAE,WAAW,EAAE,UAAU,EAAE,gBAAgB,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -54,8 +54,8 @@ export { Stepper } from "./components/Stepper/index.js";
|
|
|
54
54
|
export type { StepperProps, StepperSize, StepperOrientation, Step, StepStatus, } from "./components/Stepper/index.js";
|
|
55
55
|
export { AssetCard, AssetCardSkeleton } from "./components/AssetCard/index.js";
|
|
56
56
|
export type { AssetCardProps, AssetCardSkeletonProps } from "./components/AssetCard/index.js";
|
|
57
|
-
export { AssetGrid,
|
|
58
|
-
export type { AssetGridProps,
|
|
57
|
+
export { AssetGrid, AssetGridEmpty } from "./components/AssetGrid/index.js";
|
|
58
|
+
export type { AssetGridProps, AssetGridEmptyProps } from "./components/AssetGrid/index.js";
|
|
59
59
|
export { ImageCropper, cropToBlob } from "./components/ImageCropper/index.js";
|
|
60
60
|
export type { ImageCropperProps, ImageCropperDefaultState, CropRect, CropState, CropToBlobOptions, } from "./components/ImageCropper/index.js";
|
|
61
61
|
export { Grid, GridItem, Stack } from "./components/Grid/index.js";
|