@starci/grammar 0.9.9 → 0.9.11
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/LICENSE +21 -21
- package/dist/.build-stamp.json +4 -4
- package/dist/common/components-navigation.css +17 -2
- package/dist/common/rule-catalog.generated.d.ts +25 -23
- package/dist/common/rule-catalog.generated.d.ts.map +1 -1
- package/dist/common/rule-catalog.generated.js +84 -102
- package/dist/common/rule-catalog.generated.js.map +1 -1
- package/dist/common/styles.css +19 -3
- package/dist/core/StateMark.d.ts +1 -1
- package/dist/core/StateMark.js +2 -2
- package/dist/core/branch/AlertDialog/index.js +1 -1
- package/dist/core/branch/AlertDialog/index.js.map +1 -1
- package/dist/core/branch/Calendar/index.d.ts +1 -1
- package/dist/core/branch/Calendar/index.js +2 -2
- package/dist/core/branch/Calendar/index.js.map +1 -1
- package/dist/core/branch/ComboBox/index.js +1 -1
- package/dist/core/branch/ComboBox/index.js.map +1 -1
- package/dist/core/branch/DataTable/index.d.ts +1 -1
- package/dist/core/branch/DataTable/index.js +2 -2
- package/dist/core/branch/DataTable/index.js.map +1 -1
- package/dist/core/branch/DatePicker/index.js +1 -1
- package/dist/core/branch/DatePicker/index.js.map +1 -1
- package/dist/core/branch/DateRangePicker/index.js +1 -1
- package/dist/core/branch/DateRangePicker/index.js.map +1 -1
- package/dist/core/branch/Dialog/index.d.ts +1 -1
- package/dist/core/branch/Dialog/index.js +2 -2
- package/dist/core/branch/Dialog/index.js.map +1 -1
- package/dist/core/branch/Drawer/index.d.ts +1 -1
- package/dist/core/branch/Drawer/index.js +2 -2
- package/dist/core/branch/Drawer/index.js.map +1 -1
- package/dist/core/branch/DropdownMenu/index.d.ts +2 -2
- package/dist/core/branch/DropdownMenu/index.js +5 -5
- package/dist/core/branch/DropdownMenu/index.js.map +1 -1
- package/dist/core/branch/FlowGraph/index.d.ts +1 -1
- package/dist/core/branch/FlowGraph/index.js +2 -2
- package/dist/core/branch/FlowGraph/index.js.map +1 -1
- package/dist/core/branch/ListBox/index.d.ts +1 -1
- package/dist/core/branch/ListBox/index.d.ts.map +1 -1
- package/dist/core/branch/ListBox/index.js +9 -6
- package/dist/core/branch/ListBox/index.js.map +1 -1
- package/dist/core/branch/Popover/index.d.ts +1 -1
- package/dist/core/branch/Popover/index.js +2 -2
- package/dist/core/branch/Popover/index.js.map +1 -1
- package/dist/core/branch/Select/index.js +1 -1
- package/dist/core/branch/Select/index.js.map +1 -1
- package/dist/core/branch/Tabs/index.d.ts +8 -1
- package/dist/core/branch/Tabs/index.d.ts.map +1 -1
- package/dist/core/branch/Tabs/index.js +3 -2
- package/dist/core/branch/Tabs/index.js.map +1 -1
- package/dist/core/branch/Toast/index.d.ts +1 -1
- package/dist/core/branch/Toast/index.js +2 -2
- package/dist/core/branch/Toast/index.js.map +1 -1
- package/dist/core/composite/AvatarGroup/index.d.ts +1 -1
- package/dist/core/composite/AvatarGroup/index.js +2 -2
- package/dist/core/composite/AvatarGroup/index.js.map +1 -1
- package/dist/core/composite/Breadcrumbs/index.d.ts +1 -1
- package/dist/core/composite/Breadcrumbs/index.d.ts.map +1 -1
- package/dist/core/composite/Breadcrumbs/index.js +5 -3
- package/dist/core/composite/Breadcrumbs/index.js.map +1 -1
- package/dist/core/composite/CheckboxGroup/index.js +1 -1
- package/dist/core/composite/CheckboxGroup/index.js.map +1 -1
- package/dist/core/composite/Fieldset/index.js +1 -1
- package/dist/core/composite/Fieldset/index.js.map +1 -1
- package/dist/core/composite/Pagination/index.d.ts +1 -1
- package/dist/core/composite/Pagination/index.js +2 -2
- package/dist/core/composite/Pagination/index.js.map +1 -1
- package/dist/core/composite/RadioGroup/index.js +1 -1
- package/dist/core/composite/RadioGroup/index.js.map +1 -1
- package/dist/core/composite/SegmentedControl/index.js +1 -1
- package/dist/core/composite/SegmentedControl/index.js.map +1 -1
- package/dist/core/composite/Stepper/index.d.ts +1 -1
- package/dist/core/composite/Stepper/index.js +2 -2
- package/dist/core/composite/TagGroup/index.d.ts +1 -1
- package/dist/core/composite/TagGroup/index.js +2 -2
- package/dist/core/composite/TagGroup/index.js.map +1 -1
- package/dist/core/composite/Timeline/index.d.ts +1 -1
- package/dist/core/composite/Timeline/index.js +2 -2
- package/dist/core/composition/BottomNav/index.d.ts +1 -1
- package/dist/core/composition/BottomNav/index.js +2 -2
- package/dist/core/composition/TopBar/index.d.ts +1 -1
- package/dist/core/composition/TopBar/index.js +2 -2
- package/dist/core/composition/TopBar/index.js.map +1 -1
- package/dist/core/dna.d.ts +2 -2
- package/dist/core/dna.js +2 -2
- package/dist/core/primitive/Avatar/index.d.ts +1 -1
- package/dist/core/primitive/Avatar/index.js +2 -2
- package/dist/core/primitive/Avatar/index.js.map +1 -1
- package/dist/core/primitive/Badge/index.d.ts +2 -2
- package/dist/core/primitive/Badge/index.js +3 -3
- package/dist/core/primitive/Badge/index.js.map +1 -1
- package/dist/core/primitive/Checkbox/index.js +1 -1
- package/dist/core/primitive/Checkbox/index.js.map +1 -1
- package/dist/core/primitive/CloseButton/index.js +1 -1
- package/dist/core/primitive/CloseButton/index.js.map +1 -1
- package/dist/core/primitive/DateField/index.js +1 -1
- package/dist/core/primitive/DateField/index.js.map +1 -1
- package/dist/core/primitive/Field/index.js +2 -2
- package/dist/core/primitive/Field/index.js.map +1 -1
- package/dist/core/primitive/FileDropzone/index.js +2 -2
- package/dist/core/primitive/FileDropzone/index.js.map +1 -1
- package/dist/core/primitive/Icon/index.d.ts +1 -1
- package/dist/core/primitive/Icon/index.js +2 -2
- package/dist/core/primitive/Icon/index.js.map +1 -1
- package/dist/core/primitive/IconButton/index.d.ts +5 -2
- package/dist/core/primitive/IconButton/index.d.ts.map +1 -1
- package/dist/core/primitive/IconButton/index.js +2 -2
- package/dist/core/primitive/IconButton/index.js.map +1 -1
- package/dist/core/primitive/Image/index.d.ts +1 -2
- package/dist/core/primitive/Image/index.d.ts.map +1 -1
- package/dist/core/primitive/Image/index.js +2 -3
- package/dist/core/primitive/Image/index.js.map +1 -1
- package/dist/core/primitive/IncludedMark/index.d.ts +1 -1
- package/dist/core/primitive/IncludedMark/index.js +2 -2
- package/dist/core/primitive/Kbd/index.d.ts +1 -1
- package/dist/core/primitive/Kbd/index.d.ts.map +1 -1
- package/dist/core/primitive/Kbd/index.js +2 -2
- package/dist/core/primitive/Kbd/index.js.map +1 -1
- package/dist/core/primitive/Link/index.d.ts +1 -1
- package/dist/core/primitive/Link/index.js +2 -2
- package/dist/core/primitive/NumberField/index.js +1 -1
- package/dist/core/primitive/NumberField/index.js.map +1 -1
- package/dist/core/primitive/RankArtwork/index.d.ts +1 -1
- package/dist/core/primitive/RankArtwork/index.js +2 -2
- package/dist/core/primitive/Rating/index.d.ts +1 -1
- package/dist/core/primitive/Rating/index.js +3 -3
- package/dist/core/primitive/Rating/index.js.map +1 -1
- package/dist/core/primitive/SearchField/index.js +1 -1
- package/dist/core/primitive/SearchField/index.js.map +1 -1
- package/dist/core/primitive/Skeleton/index.js +1 -1
- package/dist/core/primitive/Skeleton/index.js.map +1 -1
- package/dist/core/primitive/Slider/index.js +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/Textarea/index.js +1 -1
- package/dist/core/primitive/Textarea/index.js.map +1 -1
- package/dist/core/primitive/TimeField/index.js +1 -1
- package/dist/core/primitive/TimeField/index.js.map +1 -1
- package/dist/heritage/index.d.ts.map +1 -1
- package/dist/heritage/index.js +2 -4
- package/dist/heritage/index.js.map +1 -1
- package/dist/offset-pop/components-navigation.css +20 -0
- package/dist/offset-pop/conformance.d.ts +11 -10
- package/dist/offset-pop/conformance.d.ts.map +1 -1
- package/dist/offset-pop/conformance.js +11 -10
- package/dist/offset-pop/conformance.js.map +1 -1
- package/dist/offset-pop/dna.d.ts +1 -1
- package/dist/offset-pop/dna.js +1 -1
- package/dist/offset-pop/styles.css +11 -0
- package/package.json +4 -13
package/LICENSE
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2026 StarCi
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 StarCi
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/dist/.build-stamp.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schema": "starci/grammar-build-stamp@1",
|
|
3
3
|
"package": "@starci/grammar",
|
|
4
|
-
"version": "0.9.
|
|
4
|
+
"version": "0.9.11",
|
|
5
5
|
"algorithm": "starci/grammar-source-digest@1",
|
|
6
|
-
"sourceDigest": "sha256:
|
|
7
|
-
"distDigest": "sha256:
|
|
8
|
-
"builtAt": "2026-10-
|
|
6
|
+
"sourceDigest": "sha256:0ad0912088000a6bcbe85a8399b136345f15dc55293fc9e5087d20d3ce354781",
|
|
7
|
+
"distDigest": "sha256:7c5ec7990403c2859fd38bba5771f869ce30dd2f95b00a152dd9104adbf34528",
|
|
8
|
+
"builtAt": "2026-10-12T09:12:58.882Z"
|
|
9
9
|
}
|
|
@@ -1424,12 +1424,12 @@
|
|
|
1424
1424
|
.starci-core-flow-graph[data-grammar-flow-interactive="true"] .react-flow__pane.dragging { cursor: grabbing; }
|
|
1425
1425
|
.starci-core-flow-graph .react-flow__viewport { transform-origin: 0 0; z-index: 2; pointer-events: none; }
|
|
1426
1426
|
.starci-core-flow-graph .react-flow__renderer { z-index: 4; }
|
|
1427
|
-
.starci-core-flow-graph .
|
|
1427
|
+
.starci-core-flow-graph .react-flow__background { pointer-events: none; z-index: -1; }
|
|
1428
1428
|
/* The background layer fills the canvas behind the viewport (the vendor sheet is not shipped, so the fill is ours). */
|
|
1429
1429
|
.starci-core-flow-graph .starci-core-flow-graph-background { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; }
|
|
1430
1430
|
.starci-core-flow-graph .react-flow__edges { position: absolute; }
|
|
1431
1431
|
.starci-core-flow-graph .react-flow__edges svg { position: absolute; overflow: visible; pointer-events: none; }
|
|
1432
|
-
.starci-core-flow-graph
|
|
1432
|
+
.starci-core-flow-graph .react-flow__edge-path { fill: none; stroke: var(--xy-edge-stroke); stroke-width: var(--xy-edge-stroke-width); stroke-linecap: round; }
|
|
1433
1433
|
/* An edge is a decoration: never a pointer or focus target (it is neither selectable nor focusable), and its group draws no fill. */
|
|
1434
1434
|
.starci-core-flow-graph .starci-core-flow-graph-edge { fill: none; pointer-events: none; }
|
|
1435
1435
|
.starci-core-flow-graph .starci-core-flow-graph-edge-placeholder .react-flow__edge-path { stroke-dasharray: 4 5; }
|
|
@@ -1567,4 +1567,19 @@
|
|
|
1567
1567
|
@media (forced-colors: active) {
|
|
1568
1568
|
.starci-core-flow-graph-node[data-grammar-selected="true"] { outline-color: Highlight; forced-color-adjust: none; }
|
|
1569
1569
|
}
|
|
1570
|
+
|
|
1571
|
+
/*
|
|
1572
|
+
* Tabs variant="secondary" (0.9.11, owner ruling 2026-10-12): the vendor pill tabs as HeroUI paints them - a soft
|
|
1573
|
+
* --default track, the selected tab a --segment pill with the surface shadow and foreground text. Grammar adds no
|
|
1574
|
+
* paint of its own (0.9.9 re-painted it in the accent-soft chip family, which read as a row of buttons next to real
|
|
1575
|
+
* ButtonGroups). It only keeps the strip to its content width inside a sub-region.
|
|
1576
|
+
*/
|
|
1577
|
+
.starci-core-tabs-frame[data-grammar-tabs-variant="secondary"] {
|
|
1578
|
+
width: fit-content;
|
|
1579
|
+
max-width: 100%;
|
|
1580
|
+
}
|
|
1581
|
+
|
|
1582
|
+
.starci-core-tabs-frame[data-grammar-tabs-variant="secondary"] .starci-core-tabs {
|
|
1583
|
+
min-width: 0;
|
|
1584
|
+
}
|
|
1570
1585
|
}
|
|
@@ -1,38 +1,40 @@
|
|
|
1
|
-
/**
|
|
1
|
+
/** How many rule ids each family publishes. Reported for coverage summaries, never expanded. */
|
|
2
2
|
export declare const RULE_FAMILY_COUNTS: Readonly<{
|
|
3
|
-
readonly A11Y:
|
|
4
|
-
readonly ACCENT:
|
|
5
|
-
readonly ACTION:
|
|
6
|
-
readonly ANATOMY: 5;
|
|
3
|
+
readonly A11Y: 4;
|
|
4
|
+
readonly ACCENT: 5;
|
|
5
|
+
readonly ACTION: 4;
|
|
7
6
|
readonly BOUNDARY: 6;
|
|
8
|
-
readonly BRAND: 3;
|
|
9
|
-
readonly COLLECTION: 2;
|
|
10
7
|
readonly COLOR: 2;
|
|
11
|
-
readonly
|
|
12
|
-
readonly
|
|
8
|
+
readonly "CONTROL-STATE": 4;
|
|
9
|
+
readonly "CORE-BOUNDARY": 5;
|
|
10
|
+
readonly "CORE-SURFACE": 5;
|
|
13
11
|
readonly CTA: 5;
|
|
14
|
-
readonly
|
|
15
|
-
readonly
|
|
12
|
+
readonly FEEDBACK: 4;
|
|
13
|
+
readonly FIELD: 4;
|
|
16
14
|
readonly FLOW: 5;
|
|
17
|
-
readonly FOCUS:
|
|
15
|
+
readonly FOCUS: 5;
|
|
18
16
|
readonly FONT: 6;
|
|
19
17
|
readonly GAP: 7;
|
|
20
|
-
readonly HIERARCHY:
|
|
21
|
-
readonly
|
|
22
|
-
readonly
|
|
18
|
+
readonly HIERARCHY: 5;
|
|
19
|
+
readonly ICON: 6;
|
|
20
|
+
readonly LAYOUT: 5;
|
|
21
|
+
readonly MARGIN: 7;
|
|
23
22
|
readonly MEASURE: 7;
|
|
24
|
-
readonly
|
|
23
|
+
readonly MEDIA: 6;
|
|
24
|
+
readonly MOTION: 4;
|
|
25
25
|
readonly OVERFLOW: 5;
|
|
26
|
-
readonly PADDING:
|
|
27
|
-
readonly
|
|
28
|
-
readonly RESPONSIVE: 4;
|
|
26
|
+
readonly PADDING: 9;
|
|
27
|
+
readonly RESPONSIVE: 5;
|
|
29
28
|
readonly STATE: 7;
|
|
30
29
|
readonly SURFACE: 6;
|
|
31
|
-
readonly TASTE: 13;
|
|
32
30
|
readonly TONE: 3;
|
|
33
|
-
readonly TRUTH:
|
|
34
|
-
readonly UX: 12;
|
|
31
|
+
readonly TRUTH: 4;
|
|
35
32
|
}>;
|
|
36
|
-
/**
|
|
33
|
+
/**
|
|
34
|
+
* Every canonical rule id, exactly as the tree spells it.
|
|
35
|
+
*
|
|
36
|
+
* The ids are listed rather than expanded from the counts above: the spacing families start at
|
|
37
|
+
* `-0`, so a `1..count` expansion would both invent `PADDING-9` and lose `PADDING-0`.
|
|
38
|
+
*/
|
|
37
39
|
export declare const CANONICAL_RULE_IDS: ReadonlyArray<string>;
|
|
38
40
|
//# sourceMappingURL=rule-catalog.generated.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rule-catalog.generated.d.ts","sourceRoot":"","sources":["../../src/common/rule-catalog.generated.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"rule-catalog.generated.d.ts","sourceRoot":"","sources":["../../src/common/rule-catalog.generated.ts"],"names":[],"mappings":"AAWA,gGAAgG;AAChG,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA8BpB,CAAA;AAEX;;;;;GAKG;AACH,eAAO,MAAM,kBAAkB,EAAE,aAAa,CAAC,MAAM,CAoLnD,CAAA"}
|
|
@@ -1,70 +1,68 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* GENERATED FILE - do not edit by hand.
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
3
|
+
*
|
|
4
|
+
* Regenerate with `node packages/grammar/scripts/generate-rule-catalog.mjs [knowledgeDir]` from the package root.
|
|
5
|
+
* The source of truth is the knowledge tree's `ui/composition`, `ui/presentation`, `ui/proof`
|
|
6
|
+
* and `grammars/starci` topic files; a family that publishes no `PREFIX-n` heading contributes
|
|
7
|
+
* no rules and therefore does not appear here.
|
|
8
|
+
*
|
|
9
|
+
* 29 families, 150 rules.
|
|
7
10
|
*/
|
|
8
|
-
/**
|
|
11
|
+
/** How many rule ids each family publishes. Reported for coverage summaries, never expanded. */
|
|
9
12
|
export const RULE_FAMILY_COUNTS = Object.freeze({
|
|
10
|
-
"A11Y":
|
|
11
|
-
"ACCENT":
|
|
12
|
-
"ACTION":
|
|
13
|
-
"
|
|
14
|
-
"
|
|
15
|
-
"
|
|
16
|
-
"
|
|
17
|
-
"
|
|
18
|
-
"
|
|
19
|
-
"
|
|
20
|
-
"
|
|
21
|
-
"
|
|
22
|
-
"
|
|
23
|
-
"
|
|
24
|
-
"
|
|
25
|
-
"
|
|
26
|
-
"
|
|
27
|
-
"
|
|
28
|
-
"
|
|
29
|
-
"
|
|
30
|
-
"
|
|
31
|
-
"MOTION":
|
|
32
|
-
"OVERFLOW": 5, // ui/presentation/overflow.
|
|
33
|
-
"PADDING":
|
|
34
|
-
"
|
|
35
|
-
"
|
|
36
|
-
"
|
|
37
|
-
"
|
|
38
|
-
"
|
|
39
|
-
"TONE": 3, // ui/presentation/tone.yaml
|
|
40
|
-
"TRUTH": 5, // ui/proof/render-truth.yaml
|
|
41
|
-
"UX": 12, // ui/proof/ux.yaml
|
|
13
|
+
"A11Y": 4, // ui/proof/accessibility.md
|
|
14
|
+
"ACCENT": 5, // ui/composition/accent.md
|
|
15
|
+
"ACTION": 4, // ui/composition/action.md
|
|
16
|
+
"BOUNDARY": 6, // ui/presentation/boundary.md
|
|
17
|
+
"COLOR": 2, // ui/proof/contrast.md
|
|
18
|
+
"CONTROL-STATE": 4, // grammars/starci/control-state.md
|
|
19
|
+
"CORE-BOUNDARY": 5, // grammars/starci/boundary.md
|
|
20
|
+
"CORE-SURFACE": 5, // grammars/starci/surface.md
|
|
21
|
+
"CTA": 5, // ui/composition/cta.md
|
|
22
|
+
"FEEDBACK": 4, // ui/composition/feedback.md
|
|
23
|
+
"FIELD": 4, // grammars/starci/field.md
|
|
24
|
+
"FLOW": 5, // ui/presentation/text-flow.md
|
|
25
|
+
"FOCUS": 5, // ui/proof/focus.md
|
|
26
|
+
"FONT": 6, // ui/presentation/font.md
|
|
27
|
+
"GAP": 7, // ui/presentation/gap.md
|
|
28
|
+
"HIERARCHY": 5, // ui/composition/hierarchy.md
|
|
29
|
+
"ICON": 6, // grammars/starci/icon.md
|
|
30
|
+
"LAYOUT": 5, // ui/composition/layout.md
|
|
31
|
+
"MARGIN": 7, // ui/presentation/margin.md
|
|
32
|
+
"MEASURE": 7, // ui/presentation/measure.md
|
|
33
|
+
"MEDIA": 6, // grammars/starci/media.md
|
|
34
|
+
"MOTION": 4, // ui/proof/motion.md
|
|
35
|
+
"OVERFLOW": 5, // ui/presentation/overflow.md
|
|
36
|
+
"PADDING": 9, // ui/presentation/padding.md
|
|
37
|
+
"RESPONSIVE": 5, // ui/composition/responsive.md
|
|
38
|
+
"STATE": 7, // ui/composition/state.md
|
|
39
|
+
"SURFACE": 6, // ui/presentation/surface.md
|
|
40
|
+
"TONE": 3, // ui/presentation/tone.md
|
|
41
|
+
"TRUTH": 4, // ui/proof/render-truth.md
|
|
42
42
|
});
|
|
43
|
-
/**
|
|
43
|
+
/**
|
|
44
|
+
* Every canonical rule id, exactly as the tree spells it.
|
|
45
|
+
*
|
|
46
|
+
* The ids are listed rather than expanded from the counts above: the spacing families start at
|
|
47
|
+
* `-0`, so a `1..count` expansion would both invent `PADDING-9` and lose `PADDING-0`.
|
|
48
|
+
*/
|
|
44
49
|
export const CANONICAL_RULE_IDS = Object.freeze([
|
|
45
50
|
// A11Y
|
|
46
51
|
"A11Y-1",
|
|
47
52
|
"A11Y-2",
|
|
48
53
|
"A11Y-3",
|
|
49
54
|
"A11Y-4",
|
|
50
|
-
"A11Y-5",
|
|
51
55
|
// ACCENT
|
|
52
56
|
"ACCENT-1",
|
|
53
57
|
"ACCENT-2",
|
|
54
58
|
"ACCENT-3",
|
|
55
59
|
"ACCENT-4",
|
|
56
60
|
"ACCENT-5",
|
|
57
|
-
"ACCENT-6",
|
|
58
61
|
// ACTION
|
|
59
62
|
"ACTION-1",
|
|
60
63
|
"ACTION-2",
|
|
61
64
|
"ACTION-3",
|
|
62
|
-
|
|
63
|
-
"ANATOMY-1",
|
|
64
|
-
"ANATOMY-2",
|
|
65
|
-
"ANATOMY-3",
|
|
66
|
-
"ANATOMY-4",
|
|
67
|
-
"ANATOMY-5",
|
|
65
|
+
"ACTION-4",
|
|
68
66
|
// BOUNDARY
|
|
69
67
|
"BOUNDARY-1",
|
|
70
68
|
"BOUNDARY-2",
|
|
@@ -72,34 +70,42 @@ export const CANONICAL_RULE_IDS = Object.freeze([
|
|
|
72
70
|
"BOUNDARY-4",
|
|
73
71
|
"BOUNDARY-5",
|
|
74
72
|
"BOUNDARY-6",
|
|
75
|
-
// BRAND
|
|
76
|
-
"BRAND-1",
|
|
77
|
-
"BRAND-2",
|
|
78
|
-
"BRAND-3",
|
|
79
|
-
// COLLECTION
|
|
80
|
-
"COLLECTION-1",
|
|
81
|
-
"COLLECTION-2",
|
|
82
73
|
// COLOR
|
|
83
74
|
"COLOR-3",
|
|
84
75
|
"COLOR-5",
|
|
85
|
-
//
|
|
86
|
-
"
|
|
87
|
-
|
|
88
|
-
"
|
|
76
|
+
// CONTROL-STATE
|
|
77
|
+
"CONTROL-STATE-1",
|
|
78
|
+
"CONTROL-STATE-2",
|
|
79
|
+
"CONTROL-STATE-3",
|
|
80
|
+
"CONTROL-STATE-4",
|
|
81
|
+
// CORE-BOUNDARY
|
|
82
|
+
"CORE-BOUNDARY-1",
|
|
83
|
+
"CORE-BOUNDARY-2",
|
|
84
|
+
"CORE-BOUNDARY-3",
|
|
85
|
+
"CORE-BOUNDARY-4",
|
|
86
|
+
"CORE-BOUNDARY-5",
|
|
87
|
+
// CORE-SURFACE
|
|
88
|
+
"CORE-SURFACE-1",
|
|
89
|
+
"CORE-SURFACE-2",
|
|
90
|
+
"CORE-SURFACE-3",
|
|
91
|
+
"CORE-SURFACE-4",
|
|
92
|
+
"CORE-SURFACE-5",
|
|
89
93
|
// CTA
|
|
90
94
|
"CTA-1",
|
|
91
95
|
"CTA-2",
|
|
92
96
|
"CTA-3",
|
|
93
97
|
"CTA-4",
|
|
94
98
|
"CTA-5",
|
|
95
|
-
// DISCIPLINE
|
|
96
|
-
"DISCIPLINE-1",
|
|
97
|
-
"DISCIPLINE-2",
|
|
98
|
-
"DISCIPLINE-3",
|
|
99
99
|
// FEEDBACK
|
|
100
100
|
"FEEDBACK-1",
|
|
101
101
|
"FEEDBACK-2",
|
|
102
102
|
"FEEDBACK-3",
|
|
103
|
+
"FEEDBACK-4",
|
|
104
|
+
// FIELD
|
|
105
|
+
"FIELD-1",
|
|
106
|
+
"FIELD-2",
|
|
107
|
+
"FIELD-3",
|
|
108
|
+
"FIELD-4",
|
|
103
109
|
// FLOW
|
|
104
110
|
"FLOW-1",
|
|
105
111
|
"FLOW-2",
|
|
@@ -112,7 +118,6 @@ export const CANONICAL_RULE_IDS = Object.freeze([
|
|
|
112
118
|
"FOCUS-3",
|
|
113
119
|
"FOCUS-4",
|
|
114
120
|
"FOCUS-5",
|
|
115
|
-
"FOCUS-6",
|
|
116
121
|
// FONT
|
|
117
122
|
"FONT-1",
|
|
118
123
|
"FONT-2",
|
|
@@ -134,12 +139,19 @@ export const CANONICAL_RULE_IDS = Object.freeze([
|
|
|
134
139
|
"HIERARCHY-3",
|
|
135
140
|
"HIERARCHY-4",
|
|
136
141
|
"HIERARCHY-5",
|
|
137
|
-
|
|
142
|
+
// ICON
|
|
143
|
+
"ICON-1",
|
|
144
|
+
"ICON-2",
|
|
145
|
+
"ICON-3",
|
|
146
|
+
"ICON-4",
|
|
147
|
+
"ICON-5",
|
|
148
|
+
"ICON-6",
|
|
138
149
|
// LAYOUT
|
|
139
150
|
"LAYOUT-1",
|
|
140
151
|
"LAYOUT-2",
|
|
141
152
|
"LAYOUT-3",
|
|
142
153
|
"LAYOUT-4",
|
|
154
|
+
"LAYOUT-5",
|
|
143
155
|
// MARGIN
|
|
144
156
|
"MARGIN-0",
|
|
145
157
|
"MARGIN-1",
|
|
@@ -148,7 +160,6 @@ export const CANONICAL_RULE_IDS = Object.freeze([
|
|
|
148
160
|
"MARGIN-4",
|
|
149
161
|
"MARGIN-5",
|
|
150
162
|
"MARGIN-6",
|
|
151
|
-
"MARGIN-AUTO",
|
|
152
163
|
// MEASURE
|
|
153
164
|
"MEASURE-1",
|
|
154
165
|
"MEASURE-2",
|
|
@@ -157,12 +168,18 @@ export const CANONICAL_RULE_IDS = Object.freeze([
|
|
|
157
168
|
"MEASURE-5",
|
|
158
169
|
"MEASURE-6",
|
|
159
170
|
"MEASURE-7",
|
|
171
|
+
// MEDIA
|
|
172
|
+
"MEDIA-1",
|
|
173
|
+
"MEDIA-2",
|
|
174
|
+
"MEDIA-3",
|
|
175
|
+
"MEDIA-4",
|
|
176
|
+
"MEDIA-5",
|
|
177
|
+
"MEDIA-6",
|
|
160
178
|
// MOTION
|
|
161
179
|
"MOTION-1",
|
|
162
180
|
"MOTION-2",
|
|
163
181
|
"MOTION-3",
|
|
164
182
|
"MOTION-4",
|
|
165
|
-
"MOTION-5",
|
|
166
183
|
// OVERFLOW
|
|
167
184
|
"OVERFLOW-1",
|
|
168
185
|
"OVERFLOW-2",
|
|
@@ -179,27 +196,20 @@ export const CANONICAL_RULE_IDS = Object.freeze([
|
|
|
179
196
|
"PADDING-6",
|
|
180
197
|
"PADDING-7",
|
|
181
198
|
"PADDING-8",
|
|
182
|
-
"PADDING-9",
|
|
183
|
-
// RADIUS
|
|
184
|
-
"RADIUS-2",
|
|
185
|
-
"RADIUS-4",
|
|
186
|
-
"RADIUS-5",
|
|
187
|
-
"RADIUS-6",
|
|
188
|
-
"RADIUS-7",
|
|
189
|
-
"RADIUS-9",
|
|
190
199
|
// RESPONSIVE
|
|
191
200
|
"RESPONSIVE-1",
|
|
192
201
|
"RESPONSIVE-2",
|
|
193
202
|
"RESPONSIVE-3",
|
|
194
203
|
"RESPONSIVE-4",
|
|
204
|
+
"RESPONSIVE-5",
|
|
195
205
|
// STATE
|
|
196
206
|
"STATE-1",
|
|
197
207
|
"STATE-2",
|
|
198
208
|
"STATE-3",
|
|
209
|
+
"STATE-4",
|
|
199
210
|
"STATE-5",
|
|
200
211
|
"STATE-6",
|
|
201
212
|
"STATE-7",
|
|
202
|
-
"STATE-8",
|
|
203
213
|
// SURFACE
|
|
204
214
|
"SURFACE-1",
|
|
205
215
|
"SURFACE-2",
|
|
@@ -207,20 +217,6 @@ export const CANONICAL_RULE_IDS = Object.freeze([
|
|
|
207
217
|
"SURFACE-4",
|
|
208
218
|
"SURFACE-5",
|
|
209
219
|
"SURFACE-6",
|
|
210
|
-
// TASTE
|
|
211
|
-
"TASTE-1",
|
|
212
|
-
"TASTE-2",
|
|
213
|
-
"TASTE-3",
|
|
214
|
-
"TASTE-4",
|
|
215
|
-
"TASTE-5",
|
|
216
|
-
"TASTE-6",
|
|
217
|
-
"TASTE-7",
|
|
218
|
-
"TASTE-8",
|
|
219
|
-
"TASTE-9",
|
|
220
|
-
"TASTE-10",
|
|
221
|
-
"TASTE-11",
|
|
222
|
-
"TASTE-12",
|
|
223
|
-
"TASTE-13",
|
|
224
220
|
// TONE
|
|
225
221
|
"TONE-1",
|
|
226
222
|
"TONE-2",
|
|
@@ -230,19 +226,5 @@ export const CANONICAL_RULE_IDS = Object.freeze([
|
|
|
230
226
|
"TRUTH-2",
|
|
231
227
|
"TRUTH-3",
|
|
232
228
|
"TRUTH-4",
|
|
233
|
-
"TRUTH-5",
|
|
234
|
-
// UX
|
|
235
|
-
"UX-1",
|
|
236
|
-
"UX-2",
|
|
237
|
-
"UX-3",
|
|
238
|
-
"UX-4",
|
|
239
|
-
"UX-5",
|
|
240
|
-
"UX-6",
|
|
241
|
-
"UX-7",
|
|
242
|
-
"UX-8",
|
|
243
|
-
"UX-9",
|
|
244
|
-
"UX-10",
|
|
245
|
-
"UX-11",
|
|
246
|
-
"UX-12",
|
|
247
229
|
]);
|
|
248
230
|
//# sourceMappingURL=rule-catalog.generated.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rule-catalog.generated.js","sourceRoot":"","sources":["../../src/common/rule-catalog.generated.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"rule-catalog.generated.js","sourceRoot":"","sources":["../../src/common/rule-catalog.generated.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,gGAAgG;AAChG,MAAM,CAAC,MAAM,kBAAkB,GAAG,MAAM,CAAC,MAAM,CAAC;IAC5C,MAAM,EAAE,CAAC,EAAE,4BAA4B;IACvC,QAAQ,EAAE,CAAC,EAAE,2BAA2B;IACxC,QAAQ,EAAE,CAAC,EAAE,2BAA2B;IACxC,UAAU,EAAE,CAAC,EAAE,8BAA8B;IAC7C,OAAO,EAAE,CAAC,EAAE,uBAAuB;IACnC,eAAe,EAAE,CAAC,EAAE,mCAAmC;IACvD,eAAe,EAAE,CAAC,EAAE,8BAA8B;IAClD,cAAc,EAAE,CAAC,EAAE,6BAA6B;IAChD,KAAK,EAAE,CAAC,EAAE,wBAAwB;IAClC,UAAU,EAAE,CAAC,EAAE,6BAA6B;IAC5C,OAAO,EAAE,CAAC,EAAE,2BAA2B;IACvC,MAAM,EAAE,CAAC,EAAE,+BAA+B;IAC1C,OAAO,EAAE,CAAC,EAAE,oBAAoB;IAChC,MAAM,EAAE,CAAC,EAAE,0BAA0B;IACrC,KAAK,EAAE,CAAC,EAAE,yBAAyB;IACnC,WAAW,EAAE,CAAC,EAAE,8BAA8B;IAC9C,MAAM,EAAE,CAAC,EAAE,0BAA0B;IACrC,QAAQ,EAAE,CAAC,EAAE,2BAA2B;IACx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IACX,WAAW;IACX,OAAO;IACP,QAAQ;IACR,QAAQ;IACR,QAAQ;IACR,QAAQ;IACR,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;CACZ,CAAC,CAAA"}
|
package/dist/common/styles.css
CHANGED
|
@@ -1202,7 +1202,8 @@
|
|
|
1202
1202
|
border-bottom-width: 0 !important;
|
|
1203
1203
|
}
|
|
1204
1204
|
|
|
1205
|
-
|
|
1205
|
+
/* The underline geometry belongs to the primary bar only; the secondary pill strip keeps HeroUI's own (0.9.11). */
|
|
1206
|
+
.starci-core-tabs-frame[data-grammar-tabs-variant="primary"] .starci-core-tabs .tabs__list {
|
|
1206
1207
|
align-items: flex-end;
|
|
1207
1208
|
}
|
|
1208
1209
|
|
|
@@ -1224,11 +1225,14 @@
|
|
|
1224
1225
|
position: relative;
|
|
1225
1226
|
width: auto !important;
|
|
1226
1227
|
flex: 0 0 auto !important;
|
|
1228
|
+
}
|
|
1229
|
+
|
|
1230
|
+
.starci-core-tabs-frame[data-grammar-tabs-variant="primary"] .starci-core-tabs .tabs__tab {
|
|
1227
1231
|
padding-inline: 0.75rem !important;
|
|
1228
1232
|
padding-block-end: 0 !important;
|
|
1229
1233
|
}
|
|
1230
1234
|
|
|
1231
|
-
.starci-core-tabs .tabs__indicator {
|
|
1235
|
+
.starci-core-tabs-frame[data-grammar-tabs-variant="primary"] .starci-core-tabs .tabs__indicator {
|
|
1232
1236
|
bottom: 0 !important;
|
|
1233
1237
|
height: 2px !important;
|
|
1234
1238
|
margin-block-end: 0 !important;
|
|
@@ -2858,6 +2862,18 @@
|
|
|
2858
2862
|
height: 1.5rem;
|
|
2859
2863
|
}
|
|
2860
2864
|
|
|
2865
|
+
/*
|
|
2866
|
+
* `danger-soft` (0.9.9): the danger tone's soft tint plate - --danger-soft ground, --danger-soft-foreground glyph,
|
|
2867
|
+
* --danger-soft-hover (one step stronger) on hover and press - for a reversible or row-level destructive action.
|
|
2868
|
+
* Same sizes, focus ring and accessible label as every IconButton.
|
|
2869
|
+
*/
|
|
2870
|
+
.starci-core-icon-button[data-variant="danger-soft"] {
|
|
2871
|
+
--button-bg: var(--danger-soft, transparent);
|
|
2872
|
+
--button-bg-hover: var(--danger-soft-hover, var(--danger-soft, transparent));
|
|
2873
|
+
--button-bg-pressed: var(--danger-soft-hover, var(--danger-soft, transparent));
|
|
2874
|
+
--button-fg: var(--danger-soft-foreground, var(--danger, CanvasText));
|
|
2875
|
+
}
|
|
2876
|
+
|
|
2861
2877
|
.starci-core-icon-button[data-floating="true"] {
|
|
2862
2878
|
box-shadow: var(--overlay-shadow, 0 8px 24px rgb(0 0 0 / 0.16)) !important;
|
|
2863
2879
|
}
|
|
@@ -3092,7 +3108,7 @@
|
|
|
3092
3108
|
* through `--h4` from the vendor's own sheet. Until 0.4.12 the family answered that with the
|
|
3093
3109
|
* Tailwind utility classes on the component alone - and a utility class exists only where the
|
|
3094
3110
|
* CONSUMER's Tailwind build scanned this package's dist, which is the same debt
|
|
3095
|
-
*
|
|
3111
|
+
* the family already refuses for layout. A consumer whose scan stopped finding
|
|
3096
3112
|
* the package measured 36px under a `FONT-4` stamp and 30px under `FONT-3`: the vendor's sizes,
|
|
3097
3113
|
* under the family's promise. The scale is the family's, so the family's sheet draws it, the way
|
|
3098
3114
|
* `.starci-core-text` above already draws its own.
|
package/dist/core/StateMark.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ export type StateMarkProps = {
|
|
|
6
6
|
/**
|
|
7
7
|
* Draw the check mark used by successful neutral states.
|
|
8
8
|
*
|
|
9
|
-
* Contract: STATE-1 (the carrier is chosen from the named state through `treatmentFor`) and
|
|
9
|
+
* Contract: STATE-1 (the carrier is chosen from the named state through `treatmentFor`) and ICON-6
|
|
10
10
|
* (the mark is decorative, so it is always `aria-hidden`; the state's words carry the meaning).
|
|
11
11
|
*/
|
|
12
12
|
export declare const StateMark: (props: StateMarkProps) => import("react").JSX.Element | null;
|
package/dist/core/StateMark.js
CHANGED
|
@@ -3,13 +3,13 @@ import { treatmentFor } from "./state.js";
|
|
|
3
3
|
/**
|
|
4
4
|
* Draw the check mark used by successful neutral states.
|
|
5
5
|
*
|
|
6
|
-
* Contract: STATE-1 (the carrier is chosen from the named state through `treatmentFor`) and
|
|
6
|
+
* Contract: STATE-1 (the carrier is chosen from the named state through `treatmentFor`) and ICON-6
|
|
7
7
|
* (the mark is decorative, so it is always `aria-hidden`; the state's words carry the meaning).
|
|
8
8
|
*/
|
|
9
9
|
export const StateMark = (props) => {
|
|
10
10
|
const treatment = treatmentFor(props.state);
|
|
11
11
|
if (treatment.mark !== "check")
|
|
12
12
|
return null;
|
|
13
|
-
return (_jsx("svg", { "aria-hidden": "true", "data-contract": "STATE-1
|
|
13
|
+
return (_jsx("svg", { "aria-hidden": "true", "data-contract": "STATE-1 ICON-6", "data-grammar-state-mark": "check", "data-component": "StateMark", "data-tier": "atom", focusable: "false", viewBox: "0 0 20 20", children: _jsx("path", { d: "M5 10.5 8.25 14 15 6.5", fill: "none", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "2" }) }));
|
|
14
14
|
};
|
|
15
15
|
//# sourceMappingURL=StateMark.js.map
|
|
@@ -37,7 +37,7 @@ export const AlertDialog = ({ title, description, children, tone = "negative", c
|
|
|
37
37
|
onCancel?.();
|
|
38
38
|
openState.onOpenChange?.(isOpen);
|
|
39
39
|
};
|
|
40
|
-
return (_jsxs(HeroAlertDialog, { ...overlayOpenProps({ ...openState, onOpenChange }), children: [trigger, anchor, container === null ? null : (_jsx(HeroAlertDialog.Backdrop, { UNSTABLE_portalContainer: container, isDismissable: false, isKeyboardDismissDisabled: isKeyboardDismissDisabled || pending, "data-grammar-overlay-backdrop": "AlertDialog", className: "starci-core-overlay-backdrop", 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-contract": "FOCUS-3 LAYOUT-4 BOUNDARY-
|
|
40
|
+
return (_jsxs(HeroAlertDialog, { ...overlayOpenProps({ ...openState, onOpenChange }), children: [trigger, anchor, container === null ? null : (_jsx(HeroAlertDialog.Backdrop, { UNSTABLE_portalContainer: container, isDismissable: false, isKeyboardDismissDisabled: isKeyboardDismissDisabled || pending, "data-grammar-overlay-backdrop": "AlertDialog", className: "starci-core-overlay-backdrop", 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-contract": "FOCUS-3 LAYOUT-4 CORE-BOUNDARY-4", ...(description === undefined ? {} : { "aria-describedby": descriptionId }), className: "starci-core-dialog starci-core-alert-dialog", children: ({ close }) => {
|
|
41
41
|
const confirm = () => {
|
|
42
42
|
const result = onConfirm();
|
|
43
43
|
if (!isPromiseLike(result)) {
|
|
@@ -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;AACrH,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,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AAO,CACH,8BACI,MAAC,eAAe,CAAC,MAAM,IAAC,SAAS,EAAC,4BAA4B,aAC1D,KAAC,eAAe,CAAC,IAAI,IAAC,MAAM,EAAE,eAAe,CAAC,IAAI,CAAC,EAAE,SAAS,EAAC,+BAA+B,GAAG,EACjG,eAAK,SAAS,EAAC,mCAAmC,aAC9C,KAAC,eAAe,CAAC,OAAO,IAAC,SAAS,EAAC,2BAA2B,YAAE,KAAK,GAA2B,EAC/F,WAAW,KAAK,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAChC,YAAG,EAAE,EAAE,aAAa,EAAE,SAAS,EAAC,iCAAiC,YAAE,WAAW,GAAK,CACtF,IACC,IACe,EACxB,QAAQ,KAAK,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAC7B,KAAC,eAAe,CAAC,IAAI,IAAC,SAAS,EAAC,0BAA0B,YAAE,QAAQ,GAAwB,CAC/F,EACD,MAAC,eAAe,CAAC,MAAM,IAAC,SAAS,EAAC,4BAA4B,aAC1D,KAAC,UAAU,cACP,KAAC,MAAM,IAAC,OAAO,EAAC,WAAW,EAAC,UAAU,EAAE,OAAO,EAAE,OAAO,EAAE,KAAK,YAAG,WAAW,GAAU,GAC9E,EACb,8CAAkC,SAAS,uBAAoB,IAAI,mBAAgB,2BAA2B,YAC1G,KAAC,MAAM,IAAC,OAAO,EAAC,SAAS,EAAC,SAAS,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,YAAG,YAAY,GAAU,GACpF,IACc,IAC1B,CACN,CAAA;wBACL,CAAC,GACoB,GACD,GACL,CAC9B,IACa,CACrB,CAAA;AACL,CAAC,CAAA"}
|
|
@@ -20,7 +20,7 @@ export type CalendarProps = {
|
|
|
20
20
|
* A standalone month calendar (not a date field). Arrow keys move by day/week, Page Up/Down by
|
|
21
21
|
* month, Home/End to the week edges; today, the selected date and unavailable dates are exposed by
|
|
22
22
|
* the vendor as `data-*` states on each cell, with `aria-selected` on the chosen day.
|
|
23
|
-
* Contract: root STATE-
|
|
23
|
+
* Contract: root CONTROL-STATE-3 (app-owned date), grid FOCUS-2, nav A11Y-2 ICON-5, day TRUTH-2.
|
|
24
24
|
*/
|
|
25
25
|
export declare const Calendar: ({ label, value, defaultValue, onChange, minValue, maxValue, isDateUnavailable, isDisabled, isReadOnly, previousLabel, nextLabel, className, }: CalendarProps) => import("react").JSX.Element;
|
|
26
26
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -11,7 +11,7 @@ import { navigationClassName } from "../../navigationClassNames.js";
|
|
|
11
11
|
* A standalone month calendar (not a date field). Arrow keys move by day/week, Page Up/Down by
|
|
12
12
|
* month, Home/End to the week edges; today, the selected date and unavailable dates are exposed by
|
|
13
13
|
* the vendor as `data-*` states on each cell, with `aria-selected` on the chosen day.
|
|
14
|
-
* Contract: root STATE-
|
|
14
|
+
* Contract: root CONTROL-STATE-3 (app-owned date), grid FOCUS-2, nav A11Y-2 ICON-5, day TRUTH-2.
|
|
15
15
|
*/
|
|
16
|
-
export const Calendar = ({ label, value, defaultValue, onChange, minValue, maxValue, isDateUnavailable, isDisabled = false, isReadOnly = false, previousLabel, nextLabel, className, }) => (_jsxs(HeroCalendar, { "aria-label": label, className: navigationClassName("starci-core-calendar", className), "data-component": "Calendar", "data-contract": "STATE-
|
|
16
|
+
export const Calendar = ({ label, value, defaultValue, onChange, minValue, maxValue, isDateUnavailable, isDisabled = false, isReadOnly = false, previousLabel, nextLabel, className, }) => (_jsxs(HeroCalendar, { "aria-label": label, className: navigationClassName("starci-core-calendar", className), "data-component": "Calendar", "data-contract": "CONTROL-STATE-3", "data-tier": "branch", isDisabled: isDisabled, isReadOnly: isReadOnly, ...(value === undefined ? {} : { value }), ...(defaultValue === undefined ? {} : { defaultValue }), ...(onChange === undefined ? {} : { onChange }), ...(minValue === undefined ? {} : { minValue }), ...(maxValue === undefined ? {} : { maxValue }), ...(isDateUnavailable === undefined ? {} : { isDateUnavailable }), children: [_jsxs(HeroCalendar.Header, { className: "starci-core-calendar-header", children: [_jsx(HeroCalendar.NavButton, { "aria-label": previousLabel, className: "starci-core-calendar-nav", "data-contract": "A11Y-2 ICON-5", slot: "previous" }), _jsx(HeroCalendar.Heading, { className: "starci-core-calendar-heading" }), _jsx(HeroCalendar.NavButton, { "aria-label": nextLabel, className: "starci-core-calendar-nav", "data-contract": "A11Y-2 ICON-5", slot: "next" })] }), _jsxs(HeroCalendar.Grid, { className: "starci-core-calendar-month", "data-contract": "FOCUS-2", children: [_jsx(HeroCalendar.GridHeader, { children: (day) => _jsx(HeroCalendar.HeaderCell, { className: "starci-core-calendar-weekday", children: day }) }), _jsx(HeroCalendar.GridBody, { children: (date) => _jsx(HeroCalendar.Cell, { className: "starci-core-calendar-day", "data-contract": "TRUTH-2", "data-grammar-calendar-day": "true", date: date }) })] })] }));
|
|
17
17
|
//# sourceMappingURL=index.js.map
|