@starci/grammar 0.11.0 → 0.12.1
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 +143 -12
- package/dist/.build-stamp.json +4 -4
- package/dist/common/components-avatar-group.css +65 -0
- package/dist/common/components-forms.css +58 -73
- package/dist/common/components-list-panel.css +13 -0
- package/dist/common/components-navigation.css +39 -38
- package/dist/common/components-overlays.css +16 -1
- package/dist/common/components-surface-controls.css +15 -0
- package/dist/common/registry.d.ts +21 -20
- package/dist/common/registry.d.ts.map +1 -1
- package/dist/common/registry.js +2 -2
- package/dist/common/registry.js.map +1 -1
- package/dist/common/renderers-forms.d.ts +12 -12
- package/dist/common/renderers-navigation.d.ts +7 -7
- package/dist/common/renderers-navigation.d.ts.map +1 -1
- package/dist/common/renderers-navigation.js.map +1 -1
- package/dist/common/renderers.d.ts +2 -1
- package/dist/common/renderers.d.ts.map +1 -1
- package/dist/common/renderers.js +1 -0
- package/dist/common/renderers.js.map +1 -1
- package/dist/common/rule-catalog.generated.d.ts +2 -1
- package/dist/common/rule-catalog.generated.d.ts.map +1 -1
- package/dist/common/rule-catalog.generated.js +12 -2
- package/dist/common/rule-catalog.generated.js.map +1 -1
- package/dist/common/styles.css +163 -50
- package/dist/core/OtpInput.d.ts +3 -0
- package/dist/core/OtpInput.d.ts.map +1 -1
- package/dist/core/OtpInput.js +4 -2
- package/dist/core/OtpInput.js.map +1 -1
- package/dist/core/branch/AlertDialog/index.d.ts.map +1 -1
- package/dist/core/branch/AlertDialog/index.js +25 -20
- package/dist/core/branch/AlertDialog/index.js.map +1 -1
- package/dist/core/branch/ComboBox/index.d.ts +2 -2
- package/dist/core/branch/ComboBox/index.d.ts.map +1 -1
- package/dist/core/branch/ComboBox/index.js +3 -1
- package/dist/core/branch/ComboBox/index.js.map +1 -1
- package/dist/core/branch/DatePicker/index.d.ts +2 -2
- package/dist/core/branch/DatePicker/index.d.ts.map +1 -1
- package/dist/core/branch/DatePicker/index.js +3 -1
- package/dist/core/branch/DatePicker/index.js.map +1 -1
- package/dist/core/branch/DateRangePicker/index.d.ts +2 -2
- package/dist/core/branch/DateRangePicker/index.d.ts.map +1 -1
- package/dist/core/branch/DateRangePicker/index.js +3 -1
- package/dist/core/branch/DateRangePicker/index.js.map +1 -1
- package/dist/core/branch/Dialog/index.d.ts.map +1 -1
- package/dist/core/branch/Dialog/index.js +6 -2
- package/dist/core/branch/Dialog/index.js.map +1 -1
- package/dist/core/branch/Drawer/index.d.ts.map +1 -1
- package/dist/core/branch/Drawer/index.js +6 -2
- package/dist/core/branch/Drawer/index.js.map +1 -1
- package/dist/core/branch/DropdownMenu/index.d.ts +12 -5
- package/dist/core/branch/DropdownMenu/index.d.ts.map +1 -1
- package/dist/core/branch/DropdownMenu/index.js +13 -6
- package/dist/core/branch/DropdownMenu/index.js.map +1 -1
- package/dist/core/branch/ListBox/index.d.ts +20 -5
- package/dist/core/branch/ListBox/index.d.ts.map +1 -1
- package/dist/core/branch/ListBox/index.js +19 -9
- package/dist/core/branch/ListBox/index.js.map +1 -1
- package/dist/core/branch/Popover/index.d.ts.map +1 -1
- package/dist/core/branch/Popover/index.js +2 -1
- package/dist/core/branch/Popover/index.js.map +1 -1
- package/dist/core/branch/Rail/index.d.ts.map +1 -1
- package/dist/core/branch/Rail/index.js +4 -2
- package/dist/core/branch/Rail/index.js.map +1 -1
- package/dist/core/branch/Select/index.d.ts +6 -3
- package/dist/core/branch/Select/index.d.ts.map +1 -1
- package/dist/core/branch/Select/index.js +14 -21
- package/dist/core/branch/Select/index.js.map +1 -1
- package/dist/core/branch/SurfaceAccordionCard/index.d.ts.map +1 -1
- package/dist/core/branch/SurfaceAccordionCard/index.js +3 -1
- package/dist/core/branch/SurfaceAccordionCard/index.js.map +1 -1
- package/dist/core/branch/SurfaceCard/index.d.ts.map +1 -1
- package/dist/core/branch/SurfaceCard/index.js +3 -1
- package/dist/core/branch/SurfaceCard/index.js.map +1 -1
- package/dist/core/branch/SurfaceListCard/index.d.ts.map +1 -1
- package/dist/core/branch/SurfaceListCard/index.js +3 -1
- package/dist/core/branch/SurfaceListCard/index.js.map +1 -1
- package/dist/core/branch/Tooltip/index.d.ts +13 -0
- package/dist/core/branch/Tooltip/index.d.ts.map +1 -1
- package/dist/core/branch/Tooltip/index.js +40 -1
- package/dist/core/branch/Tooltip/index.js.map +1 -1
- package/dist/core/composite/AvatarButton/index.d.ts +3 -1
- package/dist/core/composite/AvatarButton/index.d.ts.map +1 -1
- package/dist/core/composite/AvatarButton/index.js +1 -1
- package/dist/core/composite/AvatarButton/index.js.map +1 -1
- package/dist/core/composite/AvatarGroup/index.d.ts +11 -3
- package/dist/core/composite/AvatarGroup/index.d.ts.map +1 -1
- package/dist/core/composite/AvatarGroup/index.js +9 -5
- package/dist/core/composite/AvatarGroup/index.js.map +1 -1
- package/dist/core/composite/CheckboxGroup/index.d.ts +2 -2
- package/dist/core/composite/CheckboxGroup/index.d.ts.map +1 -1
- package/dist/core/composite/CheckboxGroup/index.js +5 -1
- package/dist/core/composite/CheckboxGroup/index.js.map +1 -1
- package/dist/core/composite/IdentityLockup/index.d.ts +4 -2
- package/dist/core/composite/IdentityLockup/index.d.ts.map +1 -1
- package/dist/core/composite/IdentityLockup/index.js +1 -1
- package/dist/core/composite/IdentityLockup/index.js.map +1 -1
- package/dist/core/composite/RadioGroup/index.d.ts +2 -2
- package/dist/core/composite/RadioGroup/index.d.ts.map +1 -1
- package/dist/core/composite/RadioGroup/index.js +5 -1
- package/dist/core/composite/RadioGroup/index.js.map +1 -1
- package/dist/core/composite/Timeline/index.js +1 -1
- package/dist/core/composite/Timeline/index.js.map +1 -1
- package/dist/core/composition/ChatWorkspace/index.d.ts.map +1 -1
- package/dist/core/composition/ChatWorkspace/index.js +2 -1
- package/dist/core/composition/ChatWorkspace/index.js.map +1 -1
- package/dist/core/composition/Sidebar/index.d.ts +9 -2
- package/dist/core/composition/Sidebar/index.d.ts.map +1 -1
- package/dist/core/composition/Sidebar/index.js +49 -25
- package/dist/core/composition/Sidebar/index.js.map +1 -1
- package/dist/core/composition/WorkspaceShell/classNames.d.ts +1 -0
- package/dist/core/composition/WorkspaceShell/classNames.d.ts.map +1 -1
- package/dist/core/composition/WorkspaceShell/classNames.js +1 -0
- package/dist/core/composition/WorkspaceShell/classNames.js.map +1 -1
- package/dist/core/composition/WorkspaceShell/index.d.ts +30 -0
- package/dist/core/composition/WorkspaceShell/index.d.ts.map +1 -1
- package/dist/core/composition/WorkspaceShell/index.js +10 -4
- package/dist/core/composition/WorkspaceShell/index.js.map +1 -1
- package/dist/core/dna.d.ts +5 -0
- package/dist/core/dna.d.ts.map +1 -1
- package/dist/core/dna.js +5 -0
- package/dist/core/dna.js.map +1 -1
- package/dist/core/overlayScope.d.ts +16 -0
- package/dist/core/overlayScope.d.ts.map +1 -1
- package/dist/core/overlayScope.js +12 -0
- package/dist/core/overlayScope.js.map +1 -1
- package/dist/core/primitive/Avatar/index.d.ts +11 -6
- package/dist/core/primitive/Avatar/index.d.ts.map +1 -1
- package/dist/core/primitive/Avatar/index.js +21 -4
- package/dist/core/primitive/Avatar/index.js.map +1 -1
- package/dist/core/primitive/Button/index.d.ts +1 -1
- package/dist/core/primitive/Button/index.d.ts.map +1 -1
- package/dist/core/primitive/Button/index.js +3 -3
- package/dist/core/primitive/Button/index.js.map +1 -1
- package/dist/core/primitive/Checkbox/index.d.ts +2 -2
- package/dist/core/primitive/Checkbox/index.d.ts.map +1 -1
- package/dist/core/primitive/Checkbox/index.js +5 -1
- package/dist/core/primitive/Checkbox/index.js.map +1 -1
- package/dist/core/primitive/DateField/index.d.ts +2 -2
- package/dist/core/primitive/DateField/index.d.ts.map +1 -1
- package/dist/core/primitive/DateField/index.js +5 -1
- package/dist/core/primitive/DateField/index.js.map +1 -1
- package/dist/core/primitive/Field/index.d.ts +3 -2
- package/dist/core/primitive/Field/index.d.ts.map +1 -1
- package/dist/core/primitive/Field/index.js.map +1 -1
- package/dist/core/primitive/IconButton/index.d.ts +2 -2
- package/dist/core/primitive/IconButton/index.d.ts.map +1 -1
- package/dist/core/primitive/IconButton/index.js +1 -1
- package/dist/core/primitive/IconButton/index.js.map +1 -1
- package/dist/core/primitive/Input/index.d.ts +4 -1
- package/dist/core/primitive/Input/index.d.ts.map +1 -1
- package/dist/core/primitive/Input/index.js +5 -3
- package/dist/core/primitive/Input/index.js.map +1 -1
- package/dist/core/primitive/NumberField/index.d.ts +2 -2
- package/dist/core/primitive/NumberField/index.d.ts.map +1 -1
- package/dist/core/primitive/NumberField/index.js +5 -1
- package/dist/core/primitive/NumberField/index.js.map +1 -1
- package/dist/core/primitive/PlainPressable/index.d.ts +3 -1
- package/dist/core/primitive/PlainPressable/index.d.ts.map +1 -1
- package/dist/core/primitive/PlainPressable/index.js +1 -1
- package/dist/core/primitive/PlainPressable/index.js.map +1 -1
- package/dist/core/primitive/PressableField/index.d.ts +4 -1
- package/dist/core/primitive/PressableField/index.d.ts.map +1 -1
- package/dist/core/primitive/PressableField/index.js +5 -1
- package/dist/core/primitive/PressableField/index.js.map +1 -1
- package/dist/core/primitive/RelativeTime/clock.d.ts +5 -0
- package/dist/core/primitive/RelativeTime/clock.d.ts.map +1 -0
- package/dist/core/primitive/RelativeTime/clock.js +28 -0
- package/dist/core/primitive/RelativeTime/clock.js.map +1 -0
- package/dist/core/primitive/RelativeTime/index.d.ts +18 -0
- package/dist/core/primitive/RelativeTime/index.d.ts.map +1 -0
- package/dist/core/primitive/RelativeTime/index.js +45 -0
- package/dist/core/primitive/RelativeTime/index.js.map +1 -0
- package/dist/core/primitive/SearchField/index.d.ts +4 -2
- package/dist/core/primitive/SearchField/index.d.ts.map +1 -1
- package/dist/core/primitive/SearchField/index.js +5 -1
- package/dist/core/primitive/SearchField/index.js.map +1 -1
- package/dist/core/primitive/Switch/index.d.ts +9 -4
- package/dist/core/primitive/Switch/index.d.ts.map +1 -1
- package/dist/core/primitive/Switch/index.js +1 -1
- package/dist/core/primitive/Switch/index.js.map +1 -1
- package/dist/core/primitive/TextAction/index.d.ts.map +1 -1
- package/dist/core/primitive/TextAction/index.js +3 -1
- package/dist/core/primitive/TextAction/index.js.map +1 -1
- package/dist/core/primitive/Textarea/index.d.ts +2 -2
- package/dist/core/primitive/Textarea/index.d.ts.map +1 -1
- package/dist/core/primitive/Textarea/index.js +3 -1
- package/dist/core/primitive/Textarea/index.js.map +1 -1
- package/dist/core/primitive/TimeField/index.d.ts +2 -2
- package/dist/core/primitive/TimeField/index.d.ts.map +1 -1
- package/dist/core/primitive/TimeField/index.js +5 -1
- package/dist/core/primitive/TimeField/index.js.map +1 -1
- package/dist/core/primitive/actionStyles.d.ts +1 -1
- package/dist/core/primitive/actionStyles.d.ts.map +1 -1
- package/dist/core/surfaceContext.d.ts +11 -0
- package/dist/core/surfaceContext.d.ts.map +1 -0
- package/dist/core/surfaceContext.js +14 -0
- package/dist/core/surfaceContext.js.map +1 -0
- package/dist/offset-pop/components-overlays.css +1 -1
- package/package.json +8 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rule-catalog.generated.js","sourceRoot":"","sources":["../../src/common/rule-catalog.generated.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,qFAAqF;AACrF,MAAM,CAAC,MAAM,kBAAkB,GAAG,MAAM,CAAC,MAAM,CAAC;IAC5C,MAAM,EAAE,CAAC,EAAE,8BAA8B;IACzC,QAAQ,EAAE,CAAC,EAAE,6BAA6B;IAC1C,QAAQ,EAAE,CAAC,EAAE,6BAA6B;IAC1C,SAAS,EAAE,CAAC,EAAE,+BAA+B;IAC7C,UAAU,EAAE,CAAC,EAAE,gCAAgC;IAC/C,OAAO,EAAE,CAAC,EAAE,sBAAsB;IAClC,YAAY,EAAE,CAAC,EAAE,iCAAiC;IAClD,OAAO,EAAE,CAAC,EAAE,yBAAyB;IACrC,UAAU,EAAE,CAAC,EAAE,yBAAyB;IACxC,UAAU,EAAE,CAAC,EAAE,+BAA+B;IAC9C,KAAK,EAAE,CAAC,EA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X,WAAW;IACX,SAAS;IACT,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,aAAa;IACb,cAAc;IACd,cAAc;IACd,cAAc;IACd,cAAc;IACd,QAAQ;IACR,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,UAAU;IACV,WAAW;IACX,WAAW;IACX,WAAW;IACX,WAAW;IACX,WAAW;IACX,WAAW;IACX,QAAQ;IACR,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,OAAO;IACP,QAAQ;IACR,QAAQ;IACR,QAAQ;IACR,QAAQ;IACR,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,KAAK;IACL,MAAM;IACN,MAAM;IACN,MAAM;IACN,MAAM;IACN,MAAM;IACN,MAAM;IACN,MAAM;IACN,MAAM;IACN,MAAM;IACN,OAAO;IACP,OAAO;IACP,OAAO;CACV,CAAC,CAAA"}
|
|
1
|
+
{"version":3,"file":"rule-catalog.generated.js","sourceRoot":"","sources":["../../src/common/rule-catalog.generated.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,qFAAqF;AACrF,MAAM,CAAC,MAAM,kBAAkB,GAAG,MAAM,CAAC,MAAM,CAAC;IAC5C,MAAM,EAAE,CAAC,EAAE,8BAA8B;IACzC,QAAQ,EAAE,CAAC,EAAE,6BAA6B;IAC1C,QAAQ,EAAE,CAAC,EAAE,6BAA6B;IAC1C,SAAS,EAAE,CAAC,EAAE,+BAA+B;IAC7C,UAAU,EAAE,CAAC,EAAE,gCAAgC;IAC/C,OAAO,EAAE,CAAC,EAAE,sBAAsB;IAClC,YAAY,EAAE,CAAC,EAAE,iCAAiC;IAClD,OAAO,EAAE,CAAC,EAAE,yBAAyB;I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,WAAW;IACX,WAAW;IACX,SAAS;IACT,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,WAAW;IACX,YAAY;IACZ,YAAY;IACZ,YAAY;IACZ,YAAY;IACZ,YAAY;IACZ,UAAU;IACV,WAAW;IACX,WAAW;IACX,WAAW;IACX,WAAW;IACX,WAAW;IACX,WAAW;IACX,WAAW;IACX,WAAW;IACX,WAAW;IACX,WAAW;IACX,SAAS;IACT,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,aAAa;IACb,cAAc;IACd,cAAc;IACd,cAAc;IACd,cAAc;IACd,QAAQ;IACR,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,UAAU;IACV,WAAW;IACX,WAAW;IACX,WAAW;IACX,WAAW;IACX,WAAW;IACX,WAAW;IACX,QAAQ;IACR,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,OAAO;IACP,QAAQ;IACR,QAAQ;IACR,QAAQ;IACR,QAAQ;IACR,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,KAAK;IACL,MAAM;IACN,MAAM;IACN,MAAM;IACN,MAAM;IACN,MAAM;IACN,MAAM;IACN,MAAM;IACN,MAAM;IACN,MAAM;IACN,OAAO;IACP,OAAO;IACP,OAAO;CACV,CAAC,CAAA"}
|
package/dist/common/styles.css
CHANGED
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
/* Common owns only universal structure/scales. Families supply material DNA. */
|
|
2
2
|
@layer starci-grammar-common, starci-grammar-core, starci-grammar-heritage, starci-grammar-offset-pop;
|
|
3
3
|
@import "./components-forms.css";
|
|
4
|
+
@import "./components-surface-controls.css";
|
|
4
5
|
@import "./components-overlays.css";
|
|
5
6
|
@import "./components-navigation.css";
|
|
7
|
+
@import "./components-list-panel.css";
|
|
8
|
+
@import "./components-avatar-group.css";
|
|
6
9
|
|
|
7
10
|
@layer starci-grammar-common {
|
|
8
11
|
.grammar-common-root {
|
|
@@ -749,6 +752,20 @@
|
|
|
749
752
|
visibility: hidden;
|
|
750
753
|
}
|
|
751
754
|
|
|
755
|
+
/* Collection annotations use the native top layer to escape scroll clipping without leaving Grammar scope. */
|
|
756
|
+
.starci-core-tooltip-content[data-grammar-tooltip-annotation="true"] {
|
|
757
|
+
position: fixed;
|
|
758
|
+
inset: auto;
|
|
759
|
+
box-sizing: border-box;
|
|
760
|
+
max-inline-size: calc(100dvw - 1rem);
|
|
761
|
+
margin: 0;
|
|
762
|
+
border: 0;
|
|
763
|
+
white-space: normal;
|
|
764
|
+
overflow-wrap: anywhere;
|
|
765
|
+
opacity: 1;
|
|
766
|
+
visibility: visible;
|
|
767
|
+
}
|
|
768
|
+
|
|
752
769
|
.starci-core-tooltip:hover > .starci-core-tooltip-content,
|
|
753
770
|
.starci-core-tooltip:focus-within > .starci-core-tooltip-content {
|
|
754
771
|
opacity: 1;
|
|
@@ -1820,9 +1837,10 @@
|
|
|
1820
1837
|
}
|
|
1821
1838
|
|
|
1822
1839
|
.starci-core-navigation-feature-nav {
|
|
1840
|
+
box-sizing: border-box;
|
|
1823
1841
|
width: 100%;
|
|
1824
1842
|
border-bottom: 1px solid var(--separator, var(--starci-core-separator, GrayText));
|
|
1825
|
-
background: var(--
|
|
1843
|
+
background: var(--surface, Canvas);
|
|
1826
1844
|
color: var(--foreground, var(--starci-core-foreground, CanvasText));
|
|
1827
1845
|
}
|
|
1828
1846
|
|
|
@@ -1832,33 +1850,18 @@
|
|
|
1832
1850
|
top: 0;
|
|
1833
1851
|
}
|
|
1834
1852
|
|
|
1835
|
-
/*
|
|
1836
|
-
* THE BAND PUBLISHES ITS OWN HEIGHT.
|
|
1837
|
-
*
|
|
1838
|
-
* A page under a sticky band needs exactly one number - where the band stops - to pin a rail
|
|
1839
|
-
* beneath it, and until now every consumer RESTATED that number: `calc(4rem + 1px)` for the
|
|
1840
|
-
* primary row and its separator, `calc(4rem + 2rem + 1px)` once a feature layer is stacked.
|
|
1841
|
-
* Restated geometry is wrong the moment the band changes, so the band publishes it instead.
|
|
1842
|
-
*
|
|
1843
|
-
* It is published with `:has()` on the Grammar root, not measured in JS, because presence and
|
|
1844
|
-
* stacking are already spelled by the data attributes these compositions emit, and a custom
|
|
1845
|
-
* property set on the root inherits to every page inside it. The root - not `:root` - keeps the
|
|
1846
|
-
* package inside its own boundary, which is the same reason no rule here touches the document.
|
|
1847
|
-
*
|
|
1848
|
-
* NOTHING is defined when no sticky band is present, so `var(--starci-core-band-offset, X)`
|
|
1849
|
-
* still resolves to a consumer's own X exactly as it did before this property existed.
|
|
1850
|
-
*/
|
|
1853
|
+
/* The Grammar root publishes the sticky band offset, including its separator and optional feature layer. */
|
|
1851
1854
|
.grammar-common-root:has(.starci-core-navigation-feature-nav[data-grammar-navigation-feature-nav-position="sticky"]),
|
|
1852
1855
|
.grammar-common-root:has(.starci-core-subnav[data-grammar-subnav-position="sticky"]) {
|
|
1853
1856
|
--starci-core-band-offset: calc(var(--starci-core-band-height, 0rem) + var(--starci-core-band-subnav-height, 0rem));
|
|
1854
1857
|
}
|
|
1855
1858
|
|
|
1856
1859
|
.grammar-common-root:has(.starci-core-navigation-feature-nav[data-grammar-navigation-feature-nav-position="sticky"]) {
|
|
1857
|
-
--starci-core-band-height:
|
|
1860
|
+
--starci-core-band-height: 4rem;
|
|
1858
1861
|
}
|
|
1859
1862
|
|
|
1860
1863
|
.grammar-common-root:has(.starci-core-navigation-feature-nav[data-grammar-navigation-feature-nav-position="sticky"][data-grammar-navigation-feature-nav-layers="two"]) {
|
|
1861
|
-
--starci-core-band-height:
|
|
1864
|
+
--starci-core-band-height: 6rem;
|
|
1862
1865
|
}
|
|
1863
1866
|
|
|
1864
1867
|
/* A sticky Subnav stacks under the band, so it adds its own height and separator to the offset. */
|
|
@@ -1868,7 +1871,9 @@
|
|
|
1868
1871
|
|
|
1869
1872
|
.starci-core-navigation-feature-nav-primary {
|
|
1870
1873
|
display: grid !important;
|
|
1871
|
-
|
|
1874
|
+
box-sizing: border-box;
|
|
1875
|
+
block-size: calc(4rem - 1px);
|
|
1876
|
+
min-height: calc(4rem - 1px);
|
|
1872
1877
|
grid-template-columns: minmax(0, 1fr) auto auto !important;
|
|
1873
1878
|
align-items: center;
|
|
1874
1879
|
gap: var(--grammar-row-gap, 0.75rem);
|
|
@@ -1879,6 +1884,15 @@
|
|
|
1879
1884
|
padding-inline: 0.75rem;
|
|
1880
1885
|
}
|
|
1881
1886
|
|
|
1887
|
+
.starci-core-navigation-feature-nav[data-grammar-navigation-feature-nav-layers="one"] {
|
|
1888
|
+
block-size: 4rem;
|
|
1889
|
+
}
|
|
1890
|
+
|
|
1891
|
+
.starci-core-navigation-feature-nav[data-grammar-navigation-feature-nav-layers="one"] .starci-core-navigation-feature-nav-primary {
|
|
1892
|
+
block-size: 100%;
|
|
1893
|
+
min-height: 0;
|
|
1894
|
+
}
|
|
1895
|
+
|
|
1882
1896
|
.starci-core-navigation-feature-nav-identity,
|
|
1883
1897
|
.starci-core-navigation-feature-nav-navigation,
|
|
1884
1898
|
.starci-core-navigation-feature-nav-compact-navigation,
|
|
@@ -1910,34 +1924,12 @@
|
|
|
1910
1924
|
gap: var(--grammar-inline-gap, 0.5rem);
|
|
1911
1925
|
}
|
|
1912
1926
|
|
|
1913
|
-
/*
|
|
1914
|
-
* THE BAND'S OWN CONTROLS MEET THE 44px TOUCH FLOOR.
|
|
1915
|
-
*
|
|
1916
|
-
* Every pressable in the two action slots was the vendor button's own height - 2.25rem on
|
|
1917
|
-
* desktop and 2.5rem compact - so the language menu, the cart, the account button, the compact
|
|
1918
|
-
* drawer trigger and the field-shaped search trigger all sat under the floor, on the surface a
|
|
1919
|
-
* reader is most likely to touch. It is a MINIMUM, not a size: `min-inline-size` and
|
|
1920
|
-
* `min-block-size` are properties the vendor's rules never set, so the glyph, the label, the
|
|
1921
|
-
* paint and the corner are all untouched and no `!important` is owed to the components layer.
|
|
1922
|
-
*
|
|
1923
|
-
* The band does NOT grow. The primary row is 4rem with a 0.5rem block inset on each side, so
|
|
1924
|
-
* 44px is 4px short of the 3rem it already offers a control, and `--starci-core-band-height`
|
|
1925
|
-
* stays `calc(4rem + 1px)`. The floor is spelled on the pressable, never on the slot: a slot
|
|
1926
|
-
* with a min-height would pad a row that has nothing in it.
|
|
1927
|
-
*
|
|
1928
|
-
* The feature layer is deliberately out of scope - its tabs are a Tabs branch, and a tab's
|
|
1929
|
-
* target is that branch's to answer.
|
|
1930
|
-
*
|
|
1931
|
-
* The primary destinations in the `navigation` slot carry the identical selector: a
|
|
1932
|
-
* `route`-appearance TextAction already meets the floor on its own (below), but the slot rule
|
|
1933
|
-
* is the family's general-purpose net for ANY pressable a consumer puts there, the same way the
|
|
1934
|
-
* action slots protect a control regardless of which leaf renders it.
|
|
1935
|
-
*/
|
|
1927
|
+
/* Navbar controls share one exact height; the feature layer keeps its own tab geometry. */
|
|
1936
1928
|
.starci-core-navigation-feature-nav-actions :where(button, [role="button"], a[href]),
|
|
1937
1929
|
.starci-core-navigation-feature-nav-navigation :where(button, [role="button"], a[href]),
|
|
1938
1930
|
.starci-core-navigation-feature-nav-compact-navigation :where(button, [role="button"], a[href]) {
|
|
1939
|
-
min-inline-size:
|
|
1940
|
-
min-block-size:
|
|
1931
|
+
min-inline-size: var(--starci-core-control-min-size, 2.75rem);
|
|
1932
|
+
min-block-size: var(--starci-core-control-min-size, 2.75rem);
|
|
1941
1933
|
}
|
|
1942
1934
|
|
|
1943
1935
|
/*
|
|
@@ -2258,6 +2250,93 @@
|
|
|
2258
2250
|
outline: none;
|
|
2259
2251
|
}
|
|
2260
2252
|
|
|
2253
|
+
/*
|
|
2254
|
+
* viewport="fixed": the shell is one viewport tall and its regions scroll on their own. A flex column keeps the rows honest
|
|
2255
|
+
* whichever optional ones render (header, compact row, compact bottom navigation): the layout takes what is left, and inside
|
|
2256
|
+
* it the navigation, primary and rail regions each own their overflow, so the Sidebar list and the content never scroll together.
|
|
2257
|
+
*/
|
|
2258
|
+
.starci-core-workspace-shell[data-grammar-workspace-viewport="fixed"] {
|
|
2259
|
+
display: flex;
|
|
2260
|
+
block-size: 100dvh;
|
|
2261
|
+
flex-direction: column;
|
|
2262
|
+
overflow: hidden;
|
|
2263
|
+
}
|
|
2264
|
+
|
|
2265
|
+
.starci-core-workspace-shell[data-grammar-workspace-viewport="fixed"] > :is(.starci-core-workspace-shell-header, .starci-core-workspace-shell-compact-header, .starci-core-workspace-shell-compact-navigation) {
|
|
2266
|
+
flex: none;
|
|
2267
|
+
}
|
|
2268
|
+
|
|
2269
|
+
.starci-core-workspace-shell[data-grammar-workspace-viewport="fixed"] > .starci-core-workspace-shell-header {
|
|
2270
|
+
position: sticky;
|
|
2271
|
+
z-index: var(--starci-core-top-bar-z, 40);
|
|
2272
|
+
top: 0;
|
|
2273
|
+
margin-block-end: 0;
|
|
2274
|
+
}
|
|
2275
|
+
|
|
2276
|
+
.starci-core-workspace-shell-header[data-grammar-workspace-header-landmark="shell"] {
|
|
2277
|
+
box-sizing: border-box;
|
|
2278
|
+
display: flex;
|
|
2279
|
+
block-size: 4rem;
|
|
2280
|
+
align-items: center;
|
|
2281
|
+
padding-block: 0.5rem;
|
|
2282
|
+
padding-inline: var(--grammar-page-inset, 1rem);
|
|
2283
|
+
border-block-end: 1px solid var(--separator, GrayText);
|
|
2284
|
+
background: var(--surface, Canvas);
|
|
2285
|
+
}
|
|
2286
|
+
|
|
2287
|
+
.starci-core-workspace-shell[data-grammar-workspace-viewport="fixed"] > .starci-core-workspace-shell-layout {
|
|
2288
|
+
min-block-size: 0;
|
|
2289
|
+
flex: 1 1 0%;
|
|
2290
|
+
grid-template-rows: minmax(0, 1fr);
|
|
2291
|
+
grid-auto-rows: minmax(0, auto);
|
|
2292
|
+
gap: 0;
|
|
2293
|
+
overflow: hidden;
|
|
2294
|
+
align-items: stretch;
|
|
2295
|
+
}
|
|
2296
|
+
|
|
2297
|
+
.starci-core-workspace-shell[data-grammar-workspace-viewport="fixed"] :is(.starci-core-workspace-shell-navigation, .starci-core-workspace-shell-primary, .starci-core-workspace-shell-rail) {
|
|
2298
|
+
min-block-size: 0;
|
|
2299
|
+
overflow-y: auto;
|
|
2300
|
+
overscroll-behavior: contain;
|
|
2301
|
+
}
|
|
2302
|
+
|
|
2303
|
+
@media (min-width: 48rem) and (max-width: 56rem) {
|
|
2304
|
+
.starci-core-workspace-shell[data-grammar-workspace-viewport="fixed"] > .starci-core-workspace-shell-layout[data-grammar-workspace-navigation="present"] {
|
|
2305
|
+
grid-template-areas: "navigation primary" "navigation rail";
|
|
2306
|
+
grid-template-columns: var(--starci-core-workspace-navigation-track) minmax(0, 1fr);
|
|
2307
|
+
}
|
|
2308
|
+
|
|
2309
|
+
.starci-core-workspace-shell[data-grammar-workspace-viewport="fixed"] > .starci-core-workspace-shell-layout[data-grammar-workspace-navigation="present"][data-grammar-workspace-rail="absent"] {
|
|
2310
|
+
grid-template-areas: "navigation primary";
|
|
2311
|
+
}
|
|
2312
|
+
}
|
|
2313
|
+
|
|
2314
|
+
/* The compact opener row: the bar's height, an edge-to-edge divider, the opener at the inline start. */
|
|
2315
|
+
.starci-core-workspace-shell-opener {
|
|
2316
|
+
box-sizing: border-box;
|
|
2317
|
+
display: flex;
|
|
2318
|
+
block-size: 4rem;
|
|
2319
|
+
min-block-size: 4rem;
|
|
2320
|
+
align-items: center;
|
|
2321
|
+
gap: var(--grammar-inline-gap, 0.5rem);
|
|
2322
|
+
padding-inline: var(--grammar-page-inset, 1rem);
|
|
2323
|
+
padding-block: 0.5rem;
|
|
2324
|
+
border-block-end: 1px solid var(--separator, var(--starci-core-separator, GrayText));
|
|
2325
|
+
background: var(--surface, Canvas);
|
|
2326
|
+
}
|
|
2327
|
+
|
|
2328
|
+
.starci-core-workspace-shell-compact-header.starci-core-workspace-shell-opener {
|
|
2329
|
+
display: none;
|
|
2330
|
+
}
|
|
2331
|
+
|
|
2332
|
+
.starci-core-workspace-shell-opener-title {
|
|
2333
|
+
min-width: 0;
|
|
2334
|
+
overflow: hidden;
|
|
2335
|
+
font-weight: 600;
|
|
2336
|
+
text-overflow: ellipsis;
|
|
2337
|
+
white-space: nowrap;
|
|
2338
|
+
}
|
|
2339
|
+
|
|
2261
2340
|
.starci-core-workspace-shell-floating-layer {
|
|
2262
2341
|
position: fixed;
|
|
2263
2342
|
z-index: var(--starci-core-workspace-floating-z, 40);
|
|
@@ -2288,7 +2367,7 @@
|
|
|
2288
2367
|
min-width: 0;
|
|
2289
2368
|
flex-direction: column;
|
|
2290
2369
|
overflow: hidden;
|
|
2291
|
-
background: var(--
|
|
2370
|
+
background: var(--surface, Canvas);
|
|
2292
2371
|
color: var(--foreground, var(--starci-core-foreground, CanvasText));
|
|
2293
2372
|
}
|
|
2294
2373
|
|
|
@@ -2336,6 +2415,7 @@
|
|
|
2336
2415
|
|
|
2337
2416
|
.starci-core-sidebar[data-collapsed="true"] .starci-core-sidebar-list {
|
|
2338
2417
|
align-items: center;
|
|
2418
|
+
gap: 1rem;
|
|
2339
2419
|
padding: 0.5rem !important;
|
|
2340
2420
|
}
|
|
2341
2421
|
|
|
@@ -2346,6 +2426,10 @@
|
|
|
2346
2426
|
gap: 0.25rem !important;
|
|
2347
2427
|
}
|
|
2348
2428
|
|
|
2429
|
+
.starci-core-sidebar-section[data-grammar-sidebar-end-start="true"] {
|
|
2430
|
+
margin-block-start: auto;
|
|
2431
|
+
}
|
|
2432
|
+
|
|
2349
2433
|
.starci-core-sidebar[data-collapsed="true"] .starci-core-sidebar-section {
|
|
2350
2434
|
align-items: center !important;
|
|
2351
2435
|
}
|
|
@@ -2372,12 +2456,12 @@
|
|
|
2372
2456
|
}
|
|
2373
2457
|
|
|
2374
2458
|
.starci-core-sidebar-item {
|
|
2459
|
+
position: relative;
|
|
2375
2460
|
display: flex;
|
|
2376
2461
|
min-width: 0;
|
|
2377
2462
|
align-items: center;
|
|
2378
2463
|
gap: 0.75rem;
|
|
2379
2464
|
border-radius: var(--radius-xl, calc(var(--radius, 0.5rem) * 1.5)) !important;
|
|
2380
|
-
padding: 0.5rem 0.75rem !important;
|
|
2381
2465
|
color: var(--foreground, var(--starci-core-foreground, CanvasText));
|
|
2382
2466
|
cursor: pointer;
|
|
2383
2467
|
outline: none;
|
|
@@ -2389,14 +2473,14 @@
|
|
|
2389
2473
|
justify-content: center !important;
|
|
2390
2474
|
gap: 0 !important;
|
|
2391
2475
|
border-radius: var(--starci-core-pill-radius, 999px) !important;
|
|
2392
|
-
padding: 0 !important;
|
|
2393
2476
|
}
|
|
2394
2477
|
|
|
2395
2478
|
.starci-core-sidebar-item[data-hovered="true"] {
|
|
2396
2479
|
background: var(--default, var(--starci-core-surface-secondary, Canvas));
|
|
2397
2480
|
}
|
|
2398
2481
|
|
|
2399
|
-
.starci-core-sidebar-item[data-selected="true"]
|
|
2482
|
+
.starci-core-sidebar-item[data-selected="true"],
|
|
2483
|
+
.starci-core-sidebar-item[data-grammar-current="true"] {
|
|
2400
2484
|
background: var(--accent-soft, var(--starci-core-accent, Highlight)) !important;
|
|
2401
2485
|
color: var(--accent-soft-foreground, var(--starci-core-accent, HighlightText));
|
|
2402
2486
|
}
|
|
@@ -2424,6 +2508,12 @@
|
|
|
2424
2508
|
flex-shrink: 0;
|
|
2425
2509
|
}
|
|
2426
2510
|
|
|
2511
|
+
.starci-core-sidebar:not([data-collapsed="true"]) .starci-core-sidebar-item-badge {
|
|
2512
|
+
position: static;
|
|
2513
|
+
flex: none;
|
|
2514
|
+
box-shadow: none;
|
|
2515
|
+
}
|
|
2516
|
+
|
|
2427
2517
|
.starci-core-sidebar-footer {
|
|
2428
2518
|
min-width: 0;
|
|
2429
2519
|
padding: 0.75rem;
|
|
@@ -2579,7 +2669,7 @@
|
|
|
2579
2669
|
}
|
|
2580
2670
|
}
|
|
2581
2671
|
|
|
2582
|
-
@media (max-width:
|
|
2672
|
+
@media (max-width: 47.999rem) {
|
|
2583
2673
|
.starci-core-workspace-shell-layout[data-grammar-workspace-navigation-visibility="wide"] .starci-core-workspace-shell-navigation {
|
|
2584
2674
|
display: none;
|
|
2585
2675
|
}
|
|
@@ -2610,6 +2700,10 @@
|
|
|
2610
2700
|
display: block;
|
|
2611
2701
|
}
|
|
2612
2702
|
|
|
2703
|
+
.starci-core-workspace-shell-compact-header.starci-core-workspace-shell-opener {
|
|
2704
|
+
display: flex;
|
|
2705
|
+
}
|
|
2706
|
+
|
|
2613
2707
|
.starci-core-workspace-shell-compact-navigation {
|
|
2614
2708
|
position: sticky;
|
|
2615
2709
|
z-index: 40;
|
|
@@ -2847,6 +2941,25 @@
|
|
|
2847
2941
|
}
|
|
2848
2942
|
|
|
2849
2943
|
/* --- Icon button: a HeroUI `Button` worn as a circle. --- */
|
|
2944
|
+
[data-grammar-control-size="control"],
|
|
2945
|
+
.starci-core-control-size .starci-core-field-skeleton-control {
|
|
2946
|
+
box-sizing: border-box;
|
|
2947
|
+
block-size: var(--starci-core-control-min-size, 2.75rem) !important;
|
|
2948
|
+
min-block-size: var(--starci-core-control-min-size, 2.75rem) !important;
|
|
2949
|
+
max-block-size: var(--starci-core-control-min-size, 2.75rem) !important;
|
|
2950
|
+
}
|
|
2951
|
+
|
|
2952
|
+
.starci-core-icon-button[data-grammar-control-size="control"] {
|
|
2953
|
+
inline-size: var(--starci-core-control-min-size, 2.75rem) !important;
|
|
2954
|
+
min-inline-size: var(--starci-core-control-min-size, 2.75rem) !important;
|
|
2955
|
+
max-inline-size: var(--starci-core-control-min-size, 2.75rem) !important;
|
|
2956
|
+
}
|
|
2957
|
+
|
|
2958
|
+
.starci-core-text-action[data-size="control"] {
|
|
2959
|
+
font-size: 0.875rem;
|
|
2960
|
+
line-height: 1.25rem;
|
|
2961
|
+
}
|
|
2962
|
+
|
|
2850
2963
|
.starci-core-icon-button {
|
|
2851
2964
|
border-radius: var(--starci-core-pill-radius, 999px) !important;
|
|
2852
2965
|
}
|
package/dist/core/OtpInput.d.ts
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
|
+
import type { FieldVariant } from "./primitive/Field/index.js";
|
|
1
2
|
export type OtpInputProps = {
|
|
2
3
|
readonly id: string;
|
|
3
4
|
readonly name: string;
|
|
5
|
+
/** Defaults to secondary inside a Grammar surface and primary outside (ANATOMY-2). */
|
|
6
|
+
readonly variant?: FieldVariant;
|
|
4
7
|
/**
|
|
5
8
|
* Visible name of the code, e.g. "Verification code". It is drawn above the slots as a
|
|
6
9
|
* `<label for={id}>` and names both the slot group (`role="group"`) and the one real input.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OtpInput.d.ts","sourceRoot":"","sources":["../../src/core/OtpInput.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"OtpInput.d.ts","sourceRoot":"","sources":["../../src/core/OtpInput.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAA;AAG9D,MAAM,MAAM,aAAa,GAAG;IACxB,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAA;IACnB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;IACrB,sFAAsF;IACtF,QAAQ,CAAC,OAAO,CAAC,EAAE,YAAY,CAAA;IAC/B;;;OAGG;IACH,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAA;IACvB,mEAAmE;IACnE,QAAQ,CAAC,aAAa,CAAC,EAAE,OAAO,CAAA;IAChC,oGAAoG;IACpG,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,CAAA;IAC5B,QAAQ,CAAC,YAAY,CAAC,EAAE,MAAM,CAAA;IAC9B,QAAQ,CAAC,QAAQ,CAAC,EAAE,OAAO,CAAA;IAC3B,QAAQ,CAAC,OAAO,CAAC,EAAE,OAAO,CAAA;IAC1B,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,CAAA;IAC7B,QAAQ,CAAC,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;CAC9C,CAAA;AAED;;;;;;;GAOG;AACH,eAAO,MAAM,QAAQ,GAAI,OAAO,aAAa,gCA+D5C,CAAA"}
|
package/dist/core/OtpInput.js
CHANGED
|
@@ -4,6 +4,7 @@ import { useCallback, useId, useRef } from "react";
|
|
|
4
4
|
import { InputOTP, Label as HeroLabel, REGEXP_ONLY_DIGITS } from "@heroui/react";
|
|
5
5
|
import { horizontalScrollRegionClassName } from "./classNames.js";
|
|
6
6
|
import { HorizontalScrollRegion } from "./composite/HorizontalScrollRegion/index.js";
|
|
7
|
+
import { useFieldVariant } from "./surfaceContext.js";
|
|
7
8
|
/**
|
|
8
9
|
* Own the conventional six-digit OTP control and its intrinsic-width overflow treatment.
|
|
9
10
|
*
|
|
@@ -13,6 +14,7 @@ import { HorizontalScrollRegion } from "./composite/HorizontalScrollRegion/index
|
|
|
13
14
|
* which the focused input already reaches, so the region adds no extra Tab stop.
|
|
14
15
|
*/
|
|
15
16
|
export const OtpInput = (props) => {
|
|
17
|
+
const variant = useFieldVariant(props.variant);
|
|
16
18
|
const regionRef = useRef(null);
|
|
17
19
|
const generatedLabelId = useId();
|
|
18
20
|
const onChange = useCallback((nextValue) => {
|
|
@@ -26,9 +28,9 @@ export const OtpInput = (props) => {
|
|
|
26
28
|
});
|
|
27
29
|
}, [props.onChange]);
|
|
28
30
|
const labelId = props.label === undefined ? props.labelledBy : generatedLabelId;
|
|
29
|
-
const control = (_jsx(HorizontalScrollRegion, { ref: regionRef, className: horizontalScrollRegionClassName, "data-contract": "PADDING-1 OVERFLOW-3 OVERFLOW-5", isFocusable: false, ...(props.label === undefined ? { "data-component": "OtpInput", "data-tier": "atom" } : {}), ...(labelId === undefined ? {} : { role: "group", "aria-labelledby": labelId }), children: _jsx(InputOTP, { id: props.id, name: props.name, maxLength: 6, pattern: REGEXP_ONLY_DIGITS, autoComplete: "one-time-code", inputMode: "numeric", defaultValue: props.defaultValue, isDisabled: props.disabled === true, isInvalid: props.invalid === true, "aria-invalid": props.invalid === true ? true : undefined, "aria-describedby": props.describedBy, ...(labelId === undefined ? {} : { "aria-labelledby": labelId }), variant:
|
|
31
|
+
const control = (_jsx(HorizontalScrollRegion, { ref: regionRef, className: horizontalScrollRegionClassName, "data-contract": "PADDING-1 OVERFLOW-3 OVERFLOW-5", "data-grammar-variant": variant, isFocusable: false, ...(props.label === undefined ? { "data-component": "OtpInput", "data-tier": "atom" } : {}), ...(labelId === undefined ? {} : { role: "group", "aria-labelledby": labelId }), children: _jsx(InputOTP, { id: props.id, name: props.name, maxLength: 6, pattern: REGEXP_ONLY_DIGITS, autoComplete: "one-time-code", inputMode: "numeric", defaultValue: props.defaultValue, isDisabled: props.disabled === true, isInvalid: props.invalid === true, "aria-invalid": props.invalid === true ? true : undefined, "aria-describedby": props.describedBy, ...(labelId === undefined ? {} : { "aria-labelledby": labelId }), variant: variant, onChange: onChange, children: _jsx(InputOTP.Group, { children: Array.from({ length: 6 }, (_, index) => (_jsx(InputOTP.Slot, { index: index }, index))) }) }) }));
|
|
30
32
|
if (props.label === undefined)
|
|
31
33
|
return control;
|
|
32
|
-
return (_jsxs("div", { className: "starci-core-otp-field", "data-grammar-otp-field": "true", "data-component": "OtpInput", "data-tier": "atom", children: [_jsx(HeroLabel, { className: props.isLabelHidden === true ? "starci-core-visually-hidden" : "starci-core-otp-label", htmlFor: props.id, id: labelId, children: props.label }), control] }));
|
|
34
|
+
return (_jsxs("div", { className: "starci-core-otp-field", "data-grammar-otp-field": "true", "data-component": "OtpInput", "data-tier": "atom", "data-grammar-variant": variant, children: [_jsx(HeroLabel, { className: props.isLabelHidden === true ? "starci-core-visually-hidden" : "starci-core-otp-label", htmlFor: props.id, id: labelId, children: props.label }), control] }));
|
|
33
35
|
};
|
|
34
36
|
//# sourceMappingURL=OtpInput.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OtpInput.js","sourceRoot":"","sources":["../../src/core/OtpInput.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAA;;AAEZ,OAAO,EAAE,WAAW,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,OAAO,CAAA;AAClD,OAAO,EAAE,QAAQ,EAAE,KAAK,IAAI,SAAS,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAA;AAChF,OAAO,EAAE,+BAA+B,EAAE,MAAM,iBAAiB,CAAA;AACjE,OAAO,EAAE,sBAAsB,EAAE,MAAM,6CAA6C,CAAA;
|
|
1
|
+
{"version":3,"file":"OtpInput.js","sourceRoot":"","sources":["../../src/core/OtpInput.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAA;;AAEZ,OAAO,EAAE,WAAW,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,OAAO,CAAA;AAClD,OAAO,EAAE,QAAQ,EAAE,KAAK,IAAI,SAAS,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAA;AAChF,OAAO,EAAE,+BAA+B,EAAE,MAAM,iBAAiB,CAAA;AACjE,OAAO,EAAE,sBAAsB,EAAE,MAAM,6CAA6C,CAAA;AAEpF,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAA;AAuBrD;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,QAAQ,GAAG,CAAC,KAAoB,EAAE,EAAE;IAC7C,MAAM,OAAO,GAAG,eAAe,CAAC,KAAK,CAAC,OAAO,CAAC,CAAA;IAC9C,MAAM,SAAS,GAAG,MAAM,CAAiB,IAAI,CAAC,CAAA;IAC9C,MAAM,gBAAgB,GAAG,KAAK,EAAE,CAAA;IAChC,MAAM,QAAQ,GAAG,WAAW,CAAC,CAAC,SAAiB,EAAE,EAAE;QAC/C,KAAK,CAAC,QAAQ,EAAE,CAAC,SAAS,CAAC,CAAA;QAC3B,MAAM,CAAC,qBAAqB,CAAC,GAAG,EAAE;YAC9B,MAAM,KAAK,GAAG,SAAS,CAAC,O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0BAA0B,CAAA;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/core/branch/AlertDialog/index.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAsC,KAAK,SAAS,EAAE,MAAM,OAAO,CAAA;AAC1E,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAA;AAEjE,OAAO,EAAuF,KAAK,gBAAgB,EAAE,MAAM,uBAAuB,CAAA;AAGlJ,MAAM,MAAM,gBAAgB,GAAG,gBAAgB,GAAG;IAC9C,kEAAkE;IAClE,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;IACtB,oDAAoD;IACpD,QAAQ,CAAC,WAAW,CAAC,EAAE,SAAS,CAAA;IAChC,QAAQ,CAAC,QAAQ,CAAC,EAAE,SAAS,CAAA;IAC7B;;;OAGG;IACH,QAAQ,CAAC,IAAI,CAAC,EAAE,iBAAiB,CAAA;IACjC,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAA;IAC7B,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAA;IAC5B;;;OAGG;IACH,QAAQ,CAAC,SAAS,EAAE,MAAM,IAAI,GAAG,OAAO,CAAC,OAAO,CAAC,CAAA;IACjD,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAA;IAC9B,6EAA6E;IAC7E,QAAQ,CAAC,gBAAgB,CAAC,EAAE,OAAO,CAAA;IACnC,gFAAgF;IAChF,QAAQ,CAAC,OAAO,CAAC,EAAE,SAAS,CAAA;IAC5B,sFAAsF;IACtF,QAAQ,CAAC,yBAAyB,CAAC,EAAE,OAAO,CAAA;CAC/C,CAAA;AAeD;;;;;;;;GAQG;AACH,eAAO,MAAM,WAAW,GAAI,4JAazB,gBAAgB,gCAkGlB,CAAA"}
|
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
3
3
|
import { AlertDialog as HeroAlertDialog } from "@heroui/react";
|
|
4
4
|
import { useEffect, useId, useRef, useState } from "react";
|
|
5
|
-
import {
|
|
5
|
+
import { SurfaceNesting } from "../../surfaceContext.js";
|
|
6
|
+
import { overlayOpenProps, resolveTriggerlessOpenProps, useOverlayContainer, vendorStatusFor } from "../../overlayScope.js";
|
|
6
7
|
import { Button } from "../../primitive/Button/index.js";
|
|
7
8
|
/** Holds the safe (cancel) action and takes initial focus when the dialog opens (WAI-ARIA APG). */
|
|
8
9
|
const SafeAction = ({ children }) => {
|
|
@@ -37,24 +38,28 @@ export const AlertDialog = ({ title, description, children, tone = "negative", c
|
|
|
37
38
|
onCancel?.();
|
|
38
39
|
openState.onOpenChange?.(isOpen);
|
|
39
40
|
};
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
41
|
+
const openProps = overlayOpenProps({ ...openState, onOpenChange });
|
|
42
|
+
const surface = container === null ? null : (_jsx(HeroAlertDialog.Backdrop, { UNSTABLE_portalContainer: container, isDismissable: false, isKeyboardDismissDisabled: isKeyboardDismissDisabled || pending, "data-grammar-overlay-backdrop": "AlertDialog", className: "starci-core-overlay-backdrop", ...resolveTriggerlessOpenProps(trigger, { ...openState, onOpenChange }), children: _jsx(HeroAlertDialog.Container, { placement: "center", size: "sm", "data-size": "sm", "data-contract": "MOTION-2", className: "starci-core-dialog-container", children: _jsx(HeroAlertDialog.Dialog, { "data-tier": "branch", "data-component": "AlertDialog", "data-grammar-tone": tone, "data-grammar-overlay-surface": "dialog", "data-grammar-nesting": "surface", "data-contract": "FOCUS-3 LAYOUT-4 BOUNDARY-6", ...(description === undefined ? {} : { "aria-describedby": descriptionId }), className: "starci-core-dialog starci-core-alert-dialog", children: ({ close }) => {
|
|
43
|
+
const confirm = () => {
|
|
44
|
+
const result = onConfirm();
|
|
45
|
+
if (!isPromiseLike(result)) {
|
|
46
|
+
if (!isConfirmPending) {
|
|
47
|
+
confirmedRef.current = true;
|
|
48
|
+
close();
|
|
49
|
+
}
|
|
50
|
+
return;
|
|
51
|
+
}
|
|
52
|
+
setIsRunning(true);
|
|
53
|
+
result.then(() => {
|
|
54
|
+
setIsRunning(false);
|
|
55
|
+
confirmedRef.current = true;
|
|
56
|
+
close();
|
|
57
|
+
}, () => { setIsRunning(false); });
|
|
58
|
+
};
|
|
59
|
+
return (_jsxs(SurfaceNesting, { children: [_jsxs(HeroAlertDialog.Header, { className: "starci-core-overlay-header", children: [_jsx(HeroAlertDialog.Icon, { status: vendorStatusFor(tone), className: "starci-core-alert-dialog-icon" }), _jsxs("div", { className: "starci-core-overlay-heading-group", children: [_jsx(HeroAlertDialog.Heading, { className: "starci-core-overlay-title", children: title }), description === undefined ? null : (_jsx("p", { id: descriptionId, className: "starci-core-overlay-description", children: description }))] })] }), children === undefined ? null : (_jsx(HeroAlertDialog.Body, { className: "starci-core-overlay-body", children: children })), _jsxs(HeroAlertDialog.Footer, { className: "starci-core-overlay-footer", children: [_jsx(SafeAction, { children: _jsx(Button, { variant: "secondary", isDisabled: pending, onPress: close, children: cancelLabel }) }), _jsx("span", { "data-grammar-overlay-action": "confirm", "data-grammar-tone": tone, "data-contract": "CTA-4 ACTION-2 FEEDBACK-3", children: _jsx(Button, { variant: "primary", isPending: pending, onPress: confirm, children: confirmLabel }) })] })] }));
|
|
60
|
+
} }) }) }));
|
|
61
|
+
// With no trigger there is no `DialogTrigger` root (its PressResponder has no pressable child):
|
|
62
|
+
// the Backdrop, React Aria's `ModalOverlay`, owns the open state itself (see `resolveTriggerlessOpenProps`).
|
|
63
|
+
return trigger === undefined ? (_jsxs(_Fragment, { children: [anchor, surface] })) : (_jsxs(HeroAlertDialog, { ...openProps, children: [trigger, anchor, surface] }));
|
|
59
64
|
};
|
|
60
65
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/core/branch/AlertDialog/index.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAA;;AAEZ,OAAO,EAAE,WAAW,IAAI,eAAe,EAAE,MAAM,eAAe,CAAA;AAC9D,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAkB,MAAM,OAAO,CAAA;AAE1E,OAAO,EAAE,gBAAgB,EAAE,mBAAmB,EAAE,eAAe,EAAyB,MAAM,uBAAuB,CAAA;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/core/branch/AlertDialog/index.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAA;;AAEZ,OAAO,EAAE,WAAW,IAAI,eAAe,EAAE,MAAM,eAAe,CAAA;AAC9D,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAkB,MAAM,OAAO,CAAA;AAE1E,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAA;AACxD,OAAO,EAAE,gBAAgB,EAAE,2BAA2B,EAAE,mBAAmB,EAAE,eAAe,EAAyB,MAAM,uBAAuB,CAAA;AAClJ,OAAO,EAAE,MAAM,EAAE,MAAM,iCAAiC,CAAA;AA6BxD,mGAAmG;AACnG,MAAM,UAAU,GAAG,CAAC,EAAE,QAAQ,EAAoC,EAAE,EAAE;IAClE,MAAM,GAAG,GAAG,MAAM,CAAkB,IAAI,CAAC,CAAA;IACzC,SAAS,CAAC,GAAG,EAAE;QACX,GAAG,CAAC,OAAO,EAAE,aAAa,CAAc,iBAAiB,CAAC,EAAE,KAAK,EAAE,CAAA;IACvE,CAAC,EAAE,EAAE,CAAC,CAAA;IACN,OAAO,eAAM,GAAG,EAAE,GAAG,iCAA8B,QAAQ,YAAE,QAAQ,GAAQ,CAAA;AACjF,CAAC,CAAA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@ -21,7 +21,7 @@ export type ComboBoxProps = FieldControlProps & {
|
|
|
21
21
|
readonly isPending?: boolean;
|
|
22
22
|
/** When the list opens: while typing (default), on focus, or only from the trigger/arrow keys. */
|
|
23
23
|
readonly menuTrigger?: "input" | "focus" | "manual";
|
|
24
|
-
/**
|
|
24
|
+
/** Defaults to `secondary` inside a Grammar surface and `primary` outside (ANATOMY-2 case-1). */
|
|
25
25
|
readonly variant?: "primary" | "secondary";
|
|
26
26
|
};
|
|
27
27
|
/**
|
|
@@ -30,5 +30,5 @@ export type ComboBoxProps = FieldControlProps & {
|
|
|
30
30
|
* The vendor owns the combobox role, `aria-expanded`, `aria-activedescendant`, arrow/Enter/Escape
|
|
31
31
|
* handling and the "contains" filter. Pending keeps the input editable and marks the list busy.
|
|
32
32
|
*/
|
|
33
|
-
export declare const ComboBox: ({ id, options, placeholder, value, defaultValue, onValueChange, inputValue, defaultInputValue, onInputChange, allowsCustomValue, emptyState, isPending, menuTrigger, variant, ...field }: ComboBoxProps) => import("react").JSX.Element;
|
|
33
|
+
export declare const ComboBox: ({ id, options, placeholder, value, defaultValue, onValueChange, inputValue, defaultInputValue, onInputChange, allowsCustomValue, emptyState, isPending, menuTrigger, variant: requestedVariant, ...field }: ComboBoxProps) => import("react").JSX.Element;
|
|
34
34
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/core/branch/ComboBox/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/core/branch/ComboBox/index.tsx"],"names":[],"mappings":"AAUA,OAAO,EAAY,KAAK,SAAS,EAAE,MAAM,OAAO,CAAA;AAChD,OAAO,EAOH,KAAK,iBAAiB,EACzB,MAAM,gCAAgC,CAAA;AACvC,OAAO,EAAe,KAAK,UAAU,EAAE,MAAM,oBAAoB,CAAA;AAEjE,MAAM,MAAM,aAAa,GAAG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, Input as HeroInput, ListBox as HeroListBox, Spinner as HeroSpinner, } from "@heroui/react";
|
|
4
5
|
import { useState } from "react";
|
|
5
6
|
import { FieldDescription, FieldErrorText, FieldLabel, fieldVariantAttributes, useGrammarPortal, vendorFieldProps, } from "../../primitive/Field/index.js";
|
|
@@ -20,7 +21,8 @@ import { ListOptions } from "../Select/index.js";
|
|
|
20
21
|
* The vendor owns the combobox role, `aria-expanded`, `aria-activedescendant`, arrow/Enter/Escape
|
|
21
22
|
* handling and the "contains" filter. Pending keeps the input editable and marks the list busy.
|
|
22
23
|
*/
|
|
23
|
-
export const ComboBox = ({ id, options, placeholder, value, defaultValue, onValueChange, inputValue, defaultInputValue, onInputChange, allowsCustomValue = false, emptyState, isPending = false, menuTrigger = "input", variant
|
|
24
|
+
export const ComboBox = ({ id, options, placeholder, value, defaultValue, onValueChange, inputValue, defaultInputValue, onInputChange, allowsCustomValue = false, emptyState, isPending = false, menuTrigger = "input", variant: requestedVariant, ...field }) => {
|
|
25
|
+
const variant = useFieldVariant(requestedVariant);
|
|
24
26
|
const { anchor, portalProps } = useGrammarPortal();
|
|
25
27
|
const [chosen, setChosen] = useState(defaultValue ?? null);
|
|
26
28
|
const [typed, setTyped] = useState(null);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/core/branch/ComboBox/index.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAA;;AAEZ,OAAO,EACH,QAAQ,IAAI,YAAY,EACxB,KAAK,IAAI,SAAS,EAClB,OAAO,IAAI,WAAW,EACtB,OAAO,IAAI,WAAW,GAEzB,MAAM,eAAe,CAAA;AACtB,OAAO,EAAE,QAAQ,EAAkB,MAAM,OAAO,CAAA;AAChD,OAAO,EACH,gBAAgB,EAChB,cAAc,EACd,UAAU,EACV,sBAAsB,EACtB,gBAAgB,EAChB,gBAAgB,GAEnB,MAAM,gCAAgC,CAAA;AACvC,OAAO,EAAE,WAAW,EAAmB,MAAM,oBAAoB,CAAA;AA0BjE;;;;GAIG;AAEH;;;;GAIG;AAEH;;;;;GAKG;AACH,MAAM,CAAC,MAAM,QAAQ,GAAG,CAAC,EACrB,EAAE,EACF,OAAO,EACP,WAAW,EACX,KAAK,EACL,YAAY,EACZ,aAAa,EACb,UAAU,EACV,iBAAiB,EACjB,aAAa,EACb,iBAAiB,GAAG,KAAK,EACzB,UAAU,EACV,SAAS,GAAG,KAAK,EACjB,WAAW,GAAG,OAAO,EACrB,OAAO,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/core/branch/ComboBox/index.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAA;;AAEZ,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAA;AACzD,OAAO,EACH,QAAQ,IAAI,YAAY,EACxB,KAAK,IAAI,SAAS,EAClB,OAAO,IAAI,WAAW,EACtB,OAAO,IAAI,WAAW,GAEzB,MAAM,eAAe,CAAA;AACtB,OAAO,EAAE,QAAQ,EAAkB,MAAM,OAAO,CAAA;AAChD,OAAO,EACH,gBAAgB,EAChB,cAAc,EACd,UAAU,EACV,sBAAsB,EACtB,gBAAgB,EAChB,gBAAgB,GAEnB,MAAM,gCAAgC,CAAA;AACvC,OAAO,EAAE,WAAW,EAAmB,MAAM,oBAAoB,CAAA;AA0BjE;;;;GAIG;AAEH;;;;GAIG;AAEH;;;;;GAKG;AACH,MAAM,CAAC,MAAM,QAAQ,GAAG,CAAC,EACrB,EAAE,EACF,OAAO,EACP,WAAW,EACX,KAAK,EACL,YAAY,EACZ,aAAa,EACb,UAAU,EACV,iBAAiB,EACjB,aAAa,EACb,iBAAiB,GAAG,KAAK,EACzB,UAAU,EACV,SAAS,GAAG,KAAK,EACjB,WAAW,GAAG,OAAO,EACrB,OAAO,EAAE,gBAAgB,EACzB,GAAG,KAAK,EACI,EAAE,EAAE;IAChB,MAAM,OAAO,GAAG,eAAe,CAAC,gBAAgB,CAAC,CAAA;IACjD,MAAM,EAAE,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AAM,EAAC,SAAS,EAAC,2BAA2B,GAAG,CAAC,CAAC,CAAC,SAAS,GACxG,IACD,EAC1B,KAAC,gBAAgB,cAAE,KAAK,CAAC,WAAW,GAAoB,EACxD,KAAC,cAAc,cAAE,KAAK,CAAC,YAAY,GAAkB,EACrD,KAAC,YAAY,CAAC,OAAO,IAAC,SAAS,EAAC,0BAA0B,0BAAsB,UAAU,mBAAe,UAAU,KAAK,WAAW,YAC/H,KAAC,WAAW,IACR,SAAS,EAAC,kBAAkB,KACxB,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,WAAW,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,KACxC,CAAC,UAAU,IAAI,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;wBAC3B,gBAAgB,EAAE,GAAG,EAAE,CAAC,cAAK,SAAS,EAAC,wBAAwB,6BAAyB,MAAM,mBAAe,SAAS,YAAE,UAAU,GAAO;qBAC5I,CAAC,YAEF,KAAC,WAAW,IAAC,OAAO,EAAE,OAAO,GAAI,GACvB,GACK,IACZ,CAClB,CAAA;AACL,CAAC,CAAA"}
|
|
@@ -10,7 +10,7 @@ export type DatePickerProps = FieldControlProps & {
|
|
|
10
10
|
/** Days the reader may not pick; they stay visible and are announced unavailable. */
|
|
11
11
|
readonly isDateUnavailable?: (date: DateValue) => boolean;
|
|
12
12
|
readonly granularity?: DateGranularity;
|
|
13
|
-
/**
|
|
13
|
+
/** Defaults to `secondary` inside a Grammar surface and `primary` outside (ANATOMY-2 case-1). */
|
|
14
14
|
readonly variant?: "primary" | "secondary";
|
|
15
15
|
};
|
|
16
16
|
/** Month grid used by DatePicker: heading, previous/next, and the day grid (arrow-key navigable). */
|
|
@@ -21,5 +21,5 @@ export declare const PickerRangeCalendar: () => import("react").JSX.Element;
|
|
|
21
21
|
* A date typed in segments or picked from a month grid in a popover. The trigger is a named button,
|
|
22
22
|
* the popover is a dialog that traps and returns focus, and the grid is the vendor's.
|
|
23
23
|
*/
|
|
24
|
-
export declare const DatePicker: ({ value, defaultValue, onValueChange, minValue, maxValue, isDateUnavailable, granularity, variant, ...field }: DatePickerProps) => import("react").JSX.Element;
|
|
24
|
+
export declare const DatePicker: ({ value, defaultValue, onValueChange, minValue, maxValue, isDateUnavailable, granularity, variant: requestedVariant, ...field }: DatePickerProps) => import("react").JSX.Element;
|
|
25
25
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/core/branch/DatePicker/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/core/branch/DatePicker/index.tsx"],"names":[],"mappings":"AAGA,OAAO,EAKH,KAAK,SAAS,EACjB,MAAM,eAAe,CAAA;AACtB,OAAO,EAOH,KAAK,iBAAiB,EACzB,MAAM,gCAAgC,CAAA;AACvC,OAAO,EAAgB,KAAK,eAAe,EAAE,MAAM,oCAAoC,CAAA;AAEvF,MAAM,MAAM,eAAe,GAAG,iBAAiB,GAAG;IAC9C,QAAQ,CAAC,KAAK,CAAC,EAAE,SAAS,GAAG,IAAI,CAAA;IACjC,QAAQ,CAAC,YAAY,CAAC,EAAE,SAAS,GAAG,IAAI,CAAA;IACxC,QAAQ,CAAC,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,SAAS,GAAG,IAAI,KAAK,IAAI,CAAA;IAC1D,QAAQ,CAAC,QAAQ,CAAC,EAAE,SAAS,CAAA;IAC7B,QAAQ,CAAC,QAAQ,CAAC,EAAE,SAAS,CAAA;IAC7B,qFAAqF;IACrF,QAAQ,CAAC,iBAAiB,CAAC,EAAE,CAAC,IAAI,EAAE,SAAS,KAAK,OAAO,CAAA;IACzD,QAAQ,CAAC,WAAW,CAAC,EAAE,eAAe,CAAA;IACtC,iGAAiG;IACjG,QAAQ,CAAC,OAAO,CAAC,EAAE,SAAS,GAAG,WAAW,CAAA;CAC7C,CAAA;AAED,qGAAqG;AACrG,eAAO,MAAM,cAAc,mCAY1B,CAAA;AAED,0FAA0F;AAC1F,eAAO,MAAM,mBAAmB,mCAY/B,CAAA;AAeD;;;GAGG;AACH,eAAO,MAAM,UAAU,GAAI,iIAUxB,eAAe,gCAoCjB,CAAA"}
|