@serendie/ui 0.1.15 → 0.2.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/LICENSE +21 -0
- package/README.md +51 -9
- package/dist/components/{Accordion.d.ts → Accordion/Accordion.d.ts} +2 -2
- package/dist/components/{Accordion.js → Accordion/Accordion.js} +10 -10
- package/dist/components/Accordion/index.d.ts +1 -0
- package/dist/components/AccordionGroup.js +4 -4
- package/dist/components/Avatar.js +4 -4
- package/dist/components/Badge.js +4 -4
- package/dist/components/Banner.js +4 -4
- package/dist/components/BottomNavigation.js +3 -3
- package/dist/components/BottomNavigationItem.js +4 -4
- package/dist/components/Button.js +10 -9
- package/dist/components/CheckBox.js +4 -4
- package/dist/components/ChoiceBox.js +10 -10
- package/dist/components/DashboardWidget.js +4 -4
- package/dist/components/Divider.js +4 -4
- package/dist/components/Drawer.js +4 -4
- package/dist/components/DropdownMenu.js +7 -6
- package/dist/components/IconButton.js +4 -4
- package/dist/components/ListItem.js +4 -4
- package/dist/components/ModalDialog.js +4 -4
- package/dist/components/NotificationBadge.js +4 -4
- package/dist/components/PasswordField.js +44 -0
- package/dist/components/ProgressIndicator.js +4 -4
- package/dist/components/RadioButton.js +4 -4
- package/dist/components/Search.js +6 -6
- package/dist/components/Select.js +4 -4
- package/dist/components/Switch.js +4 -4
- package/dist/components/TabItem.js +4 -4
- package/dist/components/Tabs.js +4 -4
- package/dist/components/TextArea.js +4 -4
- package/dist/components/TextField.js +4 -4
- package/dist/components/Toast.js +3 -3
- package/dist/components/TopAppBar.js +4 -4
- package/dist/index.d.ts +2 -1
- package/dist/index.js +81 -79
- package/dist/node_modules/@ark-ui/react/dist/components/accordion/accordion-item-content.js +3 -4
- package/dist/node_modules/@ark-ui/react/dist/components/accordion/accordion-item-indicator.js +4 -5
- package/dist/node_modules/@ark-ui/react/dist/components/accordion/accordion-item-trigger.js +0 -1
- package/dist/node_modules/@ark-ui/react/dist/components/accordion/accordion-item.js +3 -4
- package/dist/node_modules/@ark-ui/react/dist/components/accordion/accordion-root.js +2 -3
- package/dist/node_modules/@ark-ui/react/dist/components/avatar/avatar-fallback.js +6 -7
- package/dist/node_modules/@ark-ui/react/dist/components/avatar/avatar-image.js +5 -6
- package/dist/node_modules/@ark-ui/react/dist/components/avatar/avatar-root.js +2 -3
- package/dist/node_modules/@ark-ui/react/dist/components/checkbox/checkbox-control.js +5 -6
- package/dist/node_modules/@ark-ui/react/dist/components/checkbox/checkbox-hidden-input.js +0 -1
- package/dist/node_modules/@ark-ui/react/dist/components/checkbox/checkbox-label.js +0 -1
- package/dist/node_modules/@ark-ui/react/dist/components/checkbox/checkbox-root.js +4 -5
- package/dist/node_modules/@ark-ui/react/dist/components/collapsible/collapsible-content.js +8 -9
- package/dist/node_modules/@ark-ui/react/dist/components/collapsible/collapsible-root.js +0 -1
- package/dist/node_modules/@ark-ui/react/dist/components/combobox/combobox-content.js +3 -4
- package/dist/node_modules/@ark-ui/react/dist/components/combobox/combobox-control.js +5 -6
- package/dist/node_modules/@ark-ui/react/dist/components/combobox/combobox-input.js +6 -7
- package/dist/node_modules/@ark-ui/react/dist/components/combobox/combobox-item-group.js +0 -1
- package/dist/node_modules/@ark-ui/react/dist/components/combobox/combobox-item-text.js +3 -4
- package/dist/node_modules/@ark-ui/react/dist/components/combobox/combobox-item.js +0 -1
- package/dist/node_modules/@ark-ui/react/dist/components/combobox/combobox-positioner.js +5 -6
- package/dist/node_modules/@ark-ui/react/dist/components/combobox/combobox-root.js +4 -5
- package/dist/node_modules/@ark-ui/react/dist/components/combobox/combobox-trigger.js +5 -6
- package/dist/node_modules/@ark-ui/react/dist/components/dialog/dialog-backdrop.js +4 -5
- package/dist/node_modules/@ark-ui/react/dist/components/dialog/dialog-close-trigger.js +5 -6
- package/dist/node_modules/@ark-ui/react/dist/components/dialog/dialog-content.js +0 -1
- package/dist/node_modules/@ark-ui/react/dist/components/dialog/dialog-description.js +0 -1
- package/dist/node_modules/@ark-ui/react/dist/components/dialog/dialog-positioner.js +5 -6
- package/dist/node_modules/@ark-ui/react/dist/components/dialog/dialog-root.js +4 -5
- package/dist/node_modules/@ark-ui/react/dist/components/dialog/dialog-title.js +0 -1
- package/dist/node_modules/@ark-ui/react/dist/components/menu/menu-content.js +3 -4
- package/dist/node_modules/@ark-ui/react/dist/components/menu/menu-item-group.js +0 -1
- package/dist/node_modules/@ark-ui/react/dist/components/menu/menu-item.js +2 -3
- package/dist/node_modules/@ark-ui/react/dist/components/menu/menu-positioner.js +3 -4
- package/dist/node_modules/@ark-ui/react/dist/components/menu/menu-root.js +2 -3
- package/dist/node_modules/@ark-ui/react/dist/components/menu/menu-trigger.js +3 -4
- package/dist/node_modules/@ark-ui/react/dist/components/radio-group/radio-group-item-control.js +3 -4
- package/dist/node_modules/@ark-ui/react/dist/components/radio-group/radio-group-item-hidden-input.js +0 -1
- package/dist/node_modules/@ark-ui/react/dist/components/radio-group/radio-group-item-text.js +4 -5
- package/dist/node_modules/@ark-ui/react/dist/components/radio-group/radio-group-item.js +3 -4
- package/dist/node_modules/@ark-ui/react/dist/components/radio-group/radio-group-root.js +3 -4
- package/dist/node_modules/@ark-ui/react/dist/components/select/select-content.js +3 -4
- package/dist/node_modules/@ark-ui/react/dist/components/select/select-control.js +6 -7
- package/dist/node_modules/@ark-ui/react/dist/components/select/select-item.js +0 -1
- package/dist/node_modules/@ark-ui/react/dist/components/select/select-label.js +4 -5
- package/dist/node_modules/@ark-ui/react/dist/components/select/select-positioner.js +4 -5
- package/dist/node_modules/@ark-ui/react/dist/components/select/select-root.js +7 -7
- package/dist/node_modules/@ark-ui/react/dist/components/select/select-trigger.js +5 -6
- package/dist/node_modules/@ark-ui/react/dist/components/select/select-value-text.js +5 -6
- package/dist/node_modules/@ark-ui/react/dist/components/select/use-select.js +35 -31
- package/dist/node_modules/@ark-ui/react/dist/components/switch/switch-control.js +4 -5
- package/dist/node_modules/@ark-ui/react/dist/components/switch/switch-hidden-input.js +4 -5
- package/dist/node_modules/@ark-ui/react/dist/components/switch/switch-label.js +4 -5
- package/dist/node_modules/@ark-ui/react/dist/components/switch/switch-root.js +8 -9
- package/dist/node_modules/@ark-ui/react/dist/components/switch/switch-thumb.js +4 -5
- package/dist/node_modules/@ark-ui/react/dist/components/tabs/tab-list.js +3 -4
- package/dist/node_modules/@ark-ui/react/dist/components/tabs/tab-trigger.js +3 -4
- package/dist/node_modules/@ark-ui/react/dist/components/tabs/tabs-root.js +10 -10
- package/dist/node_modules/@ark-ui/react/dist/components/toast/toast-root.js +0 -1
- package/dist/node_modules/@ark-ui/react/dist/components/toast/toast-title.js +0 -1
- package/dist/node_modules/@ark-ui/react/dist/components/toast/toaster.js +4 -4
- package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.js +361 -303
- package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +229 -216
- package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +19 -19
- package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +39 -38
- package/dist/node_modules/@serendie/design-token/dist/panda-tokens.js +823 -20
- package/dist/node_modules/@serendie/design-token/dist/tokens.js +346 -25
- package/dist/node_modules/@zag-js/accordion/dist/index.js +12 -12
- package/dist/node_modules/@zag-js/aria-hidden/dist/index.js +13 -62
- package/dist/node_modules/@zag-js/avatar/dist/index.js +12 -10
- package/dist/node_modules/@zag-js/checkbox/dist/index.js +99 -92
- package/dist/node_modules/@zag-js/collapsible/dist/index.js +5 -5
- package/dist/node_modules/@zag-js/collection/dist/index.js +21 -21
- package/dist/node_modules/@zag-js/combobox/dist/index.js +30 -31
- package/dist/node_modules/@zag-js/core/dist/index.js +285 -320
- package/dist/node_modules/@zag-js/dialog/dist/index.js +56 -62
- package/dist/node_modules/@zag-js/dismissable/dist/index.js +3 -3
- package/dist/node_modules/@zag-js/dom-event/dist/index.js +88 -115
- package/dist/node_modules/@zag-js/dom-query/dist/index.js +2 -2
- package/dist/node_modules/@zag-js/focus-visible/dist/index.js +73 -0
- package/dist/node_modules/@zag-js/interact-outside/dist/index.js +33 -33
- package/dist/node_modules/@zag-js/menu/dist/index.js +81 -77
- package/dist/node_modules/@zag-js/popper/dist/index.js +86 -79
- package/dist/node_modules/@zag-js/radio-group/dist/index.js +116 -109
- package/dist/node_modules/@zag-js/react/dist/index.js +44 -43
- package/dist/node_modules/@zag-js/select/dist/index.js +203 -231
- package/dist/node_modules/@zag-js/store/dist/index.js +110 -110
- package/dist/node_modules/@zag-js/switch/dist/index.js +62 -55
- package/dist/node_modules/@zag-js/tabs/dist/index.js +64 -61
- package/dist/node_modules/@zag-js/toast/dist/index.js +174 -173
- package/dist/node_modules/@zag-js/utils/dist/index.js +93 -71
- package/dist/node_modules/aria-hidden/dist/es2015/index.js +52 -0
- package/dist/node_modules/focus-trap/dist/focus-trap.esm.js +217 -219
- package/dist/preset.d.ts +807 -4
- package/dist/{ui/styled-system → styled-system}/css/css.js +5 -6
- package/dist/{ui/styled-system → styled-system}/css/cva.js +4 -4
- package/dist/{ui/styled-system → styled-system}/css/sva.js +3 -3
- package/dist/styled-system/jsx/is-valid-prop.js +6 -0
- package/dist/styles.css +1 -1
- package/dist/tokens/getToken.d.ts +324 -3
- package/dist/tokens/index.d.ts +806 -3
- package/package.json +31 -5
- package/styled-system/css/css.js +1 -1
- package/styled-system/jsx/is-valid-prop.js +1 -1
- package/styled-system/themes/theme-asagi.json +1 -1
- package/styled-system/themes/theme-kurikawa.json +1 -1
- package/styled-system/themes/theme-sumire.json +1 -1
- package/styled-system/themes/theme-tsutsuji.json +1 -1
- package/styled-system/tokens/index.js +1238 -54
- package/styled-system/tokens/tokens.d.ts +3 -3
- package/styled-system/types/conditions.d.ts +2 -2
- package/styled-system/types/prop-type.d.ts +1 -1
- package/dist/ui/styled-system/jsx/is-valid-prop.js +0 -6
- /package/dist/{ui/styled-system → styled-system}/css/conditions.js +0 -0
- /package/dist/{ui/styled-system → styled-system}/css/cx.js +0 -0
- /package/dist/{ui/styled-system → styled-system}/helpers.js +0 -0
- /package/dist/{ui/styled-system → styled-system}/jsx/box.js +0 -0
- /package/dist/{ui/styled-system → styled-system}/jsx/factory-helper.js +0 -0
- /package/dist/{ui/styled-system → styled-system}/jsx/factory.js +0 -0
- /package/dist/{ui/styled-system → styled-system}/patterns/box.js +0 -0
|
@@ -10,9 +10,10 @@ const e = {
|
|
|
10
10
|
1e3: "#000000"
|
|
11
11
|
},
|
|
12
12
|
transparency: {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
bl2: "#00000005",
|
|
14
|
+
bl5: "#0000000D",
|
|
15
|
+
bl20: "#00000033",
|
|
16
|
+
wh60: "#FFFFFF99"
|
|
16
17
|
},
|
|
17
18
|
gray: {
|
|
18
19
|
100: "#EFEEEB",
|
|
@@ -65,8 +66,8 @@ const e = {
|
|
|
65
66
|
yellow: {
|
|
66
67
|
100: "#FEEDBE",
|
|
67
68
|
200: "#FFE885",
|
|
68
|
-
300: "#
|
|
69
|
-
400: "#
|
|
69
|
+
300: "#EFD616",
|
|
70
|
+
400: "#D8BF00",
|
|
70
71
|
500: "#AC9301",
|
|
71
72
|
600: "#857100",
|
|
72
73
|
700: "#5F5100",
|
|
@@ -76,7 +77,7 @@ const e = {
|
|
|
76
77
|
},
|
|
77
78
|
green: {
|
|
78
79
|
100: "#CAF9E6",
|
|
79
|
-
200: "#
|
|
80
|
+
200: "#B1EAD7",
|
|
80
81
|
300: "#98E1C8",
|
|
81
82
|
400: "#6ED0AE",
|
|
82
83
|
500: "#40A683",
|
|
@@ -242,18 +243,24 @@ const e = {
|
|
|
242
243
|
onTertiary: "#000000",
|
|
243
244
|
tertiaryContainer: "#EFF2FC",
|
|
244
245
|
onTertiaryContainer: "#000000",
|
|
245
|
-
notice: "#
|
|
246
|
+
notice: "#EFD616",
|
|
246
247
|
onNotice: "#000000",
|
|
247
|
-
noticeContainer: "#
|
|
248
|
+
noticeContainer: "#EFD616",
|
|
248
249
|
onNoticeContainer: "#000000",
|
|
250
|
+
noticeContainerVariant: "#FEEDBE",
|
|
251
|
+
onNoticeContainerVariant: "#000000",
|
|
249
252
|
negative: "#CE0037",
|
|
250
253
|
onNegative: "#FFFFFF",
|
|
251
254
|
negativeContainer: "#FCD6D3",
|
|
252
255
|
onNegativeContainer: "#000000",
|
|
256
|
+
negativeContainerVariant: "#FCEBEA",
|
|
257
|
+
onNegativeContainerVariant: "#CE0037",
|
|
253
258
|
positive: "#40A683",
|
|
254
259
|
onPositive: "#FFFFFF",
|
|
255
260
|
positiveContainer: "#40A683",
|
|
256
|
-
onPositiveContainer: "#FFFFFF"
|
|
261
|
+
onPositiveContainer: "#FFFFFF",
|
|
262
|
+
positiveContainerVariant: "#CAF9E6",
|
|
263
|
+
onPositiveContainerVariant: "#000000"
|
|
257
264
|
},
|
|
258
265
|
component: {
|
|
259
266
|
surface: "#FFFFFF",
|
|
@@ -261,6 +268,7 @@ const e = {
|
|
|
261
268
|
onSurfaceVariant: "#696966",
|
|
262
269
|
inverseSurface: "#232322",
|
|
263
270
|
inverseOnSurface: "#FFFFFF",
|
|
271
|
+
inversePrimary: "#EFF2FC",
|
|
264
272
|
outline: "#C8C7C2",
|
|
265
273
|
outlineVariant: "#8C8B87",
|
|
266
274
|
scrim: "#00000033"
|
|
@@ -268,10 +276,67 @@ const e = {
|
|
|
268
276
|
interaction: {
|
|
269
277
|
disabled: "#EFEEEB",
|
|
270
278
|
disabledOnSurface: "#AFAEAA",
|
|
279
|
+
selected: "#00000005",
|
|
271
280
|
selectedSurface: "#BFCEFC",
|
|
272
281
|
hovered: "#00000033",
|
|
273
282
|
hoveredVariant: "#0000000D",
|
|
274
283
|
hoveredOnPrimary: "#FFFFFF99"
|
|
284
|
+
},
|
|
285
|
+
chart: {
|
|
286
|
+
mark: {
|
|
287
|
+
primary: {
|
|
288
|
+
"01": "#D7DEFB",
|
|
289
|
+
"02": "#BFCEFC",
|
|
290
|
+
"03": "#8FAEFE",
|
|
291
|
+
"04": "#428CFE",
|
|
292
|
+
"05": "#0A69CF",
|
|
293
|
+
"06": "#073165"
|
|
294
|
+
},
|
|
295
|
+
positive: {
|
|
296
|
+
"01": "#B1EAD7",
|
|
297
|
+
"02": "#98E1C8",
|
|
298
|
+
"03": "#6ED0AE",
|
|
299
|
+
"04": "#40A683",
|
|
300
|
+
"05": "#2C755C",
|
|
301
|
+
"06": "#12372B"
|
|
302
|
+
},
|
|
303
|
+
negative: {
|
|
304
|
+
"01": "#FCD6D3",
|
|
305
|
+
"02": "#FDB9B4",
|
|
306
|
+
"03": "#FF8F8F",
|
|
307
|
+
"04": "#F84258",
|
|
308
|
+
"05": "#CE0037",
|
|
309
|
+
"06": "#650417"
|
|
310
|
+
},
|
|
311
|
+
notice: {
|
|
312
|
+
"01": "#FFE885",
|
|
313
|
+
"02": "#EFD616",
|
|
314
|
+
"03": "#D8BF00",
|
|
315
|
+
"04": "#AC9301",
|
|
316
|
+
"05": "#857100",
|
|
317
|
+
"06": "#3A3000"
|
|
318
|
+
},
|
|
319
|
+
multi: {
|
|
320
|
+
10: "#AF8245",
|
|
321
|
+
"01": "#0A69CF",
|
|
322
|
+
"02": "#6ED0AE",
|
|
323
|
+
"03": "#FF8F8F",
|
|
324
|
+
"04": "#AA61C2",
|
|
325
|
+
"05": "#803510",
|
|
326
|
+
"06": "#64CCD3",
|
|
327
|
+
"07": "#FFE885",
|
|
328
|
+
"08": "#AB4919",
|
|
329
|
+
"09": "#932653"
|
|
330
|
+
}
|
|
331
|
+
},
|
|
332
|
+
component: {
|
|
333
|
+
onMarkLabel: "#000000",
|
|
334
|
+
inverseOnMarkLabel: "#FFFFFF",
|
|
335
|
+
scalemark: "#D9D8D3",
|
|
336
|
+
threshold: "#428CFE",
|
|
337
|
+
chartSurface: "#FFFFFF",
|
|
338
|
+
onChartSurface: "#696966"
|
|
339
|
+
}
|
|
275
340
|
}
|
|
276
341
|
},
|
|
277
342
|
dimension: {
|
|
@@ -572,26 +637,32 @@ const e = {
|
|
|
572
637
|
onPrimary: "#FFFFFF",
|
|
573
638
|
primaryContainer: "#00757E",
|
|
574
639
|
onPrimaryContainer: "#FFFFFF",
|
|
575
|
-
secondary: "#
|
|
640
|
+
secondary: "#B1EAD7",
|
|
576
641
|
onSecondary: "#000000",
|
|
577
|
-
secondaryContainer: "#
|
|
642
|
+
secondaryContainer: "#B1EAD7",
|
|
578
643
|
onSecondaryContainer: "#000000",
|
|
579
644
|
tertiary: "#EFEEEB",
|
|
580
645
|
onTertiary: "#000000",
|
|
581
646
|
tertiaryContainer: "#EFEEEB",
|
|
582
647
|
onTertiaryContainer: "#000000",
|
|
583
|
-
notice: "#
|
|
648
|
+
notice: "#EFD616",
|
|
584
649
|
onNotice: "#000000",
|
|
585
|
-
noticeContainer: "#
|
|
650
|
+
noticeContainer: "#EFD616",
|
|
586
651
|
onNoticeContainer: "#000000",
|
|
652
|
+
noticeContainerVariant: "#FEEDBE",
|
|
653
|
+
onNoticeContainerVariant: "#000000",
|
|
587
654
|
negative: "#CE0037",
|
|
588
655
|
onNegative: "#FFFFFF",
|
|
589
656
|
negativeContainer: "#FCD6D3",
|
|
590
657
|
onNegativeContainer: "#000000",
|
|
658
|
+
negativeContainerVariant: "#FCEBEA",
|
|
659
|
+
onNegativeContainerVariant: "#CE0037",
|
|
591
660
|
positive: "#40A683",
|
|
592
661
|
onPositive: "#FFFFFF",
|
|
593
662
|
positiveContainer: "#40A683",
|
|
594
|
-
onPositiveContainer: "#FFFFFF"
|
|
663
|
+
onPositiveContainer: "#FFFFFF",
|
|
664
|
+
positiveContainerVariant: "#CAF9E6",
|
|
665
|
+
onPositiveContainerVariant: "#000000"
|
|
595
666
|
},
|
|
596
667
|
component: {
|
|
597
668
|
surface: "#FFFFFF",
|
|
@@ -599,6 +670,7 @@ const e = {
|
|
|
599
670
|
onSurfaceVariant: "#696966",
|
|
600
671
|
inverseSurface: "#232322",
|
|
601
672
|
inverseOnSurface: "#FFFFFF",
|
|
673
|
+
inversePrimary: "#D9F6FC",
|
|
602
674
|
outline: "#C8C7C2",
|
|
603
675
|
outlineVariant: "#8C8B87",
|
|
604
676
|
scrim: "#00000033"
|
|
@@ -606,10 +678,67 @@ const e = {
|
|
|
606
678
|
interaction: {
|
|
607
679
|
disabled: "#EFEEEB",
|
|
608
680
|
disabledOnSurface: "#AFAEAA",
|
|
609
|
-
|
|
681
|
+
selected: "#00000005",
|
|
682
|
+
selectedSurface: "#B1EAD7",
|
|
610
683
|
hovered: "#00000033",
|
|
611
684
|
hoveredVariant: "#0000000D",
|
|
612
685
|
hoveredOnPrimary: "#FFFFFF99"
|
|
686
|
+
},
|
|
687
|
+
chart: {
|
|
688
|
+
mark: {
|
|
689
|
+
primary: {
|
|
690
|
+
"01": "#C3EFF4",
|
|
691
|
+
"02": "#9CE6EC",
|
|
692
|
+
"03": "#64CCD3",
|
|
693
|
+
"04": "#00A3AF",
|
|
694
|
+
"05": "#00757E",
|
|
695
|
+
"06": "#02373C"
|
|
696
|
+
},
|
|
697
|
+
positive: {
|
|
698
|
+
"01": "#B1EAD7",
|
|
699
|
+
"02": "#98E1C8",
|
|
700
|
+
"03": "#6ED0AE",
|
|
701
|
+
"04": "#40A683",
|
|
702
|
+
"05": "#2C755C",
|
|
703
|
+
"06": "#12372B"
|
|
704
|
+
},
|
|
705
|
+
negative: {
|
|
706
|
+
"01": "#FCD6D3",
|
|
707
|
+
"02": "#FDB9B4",
|
|
708
|
+
"03": "#FF8F8F",
|
|
709
|
+
"04": "#F84258",
|
|
710
|
+
"05": "#CE0037",
|
|
711
|
+
"06": "#650417"
|
|
712
|
+
},
|
|
713
|
+
notice: {
|
|
714
|
+
"01": "#FFE885",
|
|
715
|
+
"02": "#EFD616",
|
|
716
|
+
"03": "#D8BF00",
|
|
717
|
+
"04": "#AC9301",
|
|
718
|
+
"05": "#857100",
|
|
719
|
+
"06": "#3A3000"
|
|
720
|
+
},
|
|
721
|
+
multi: {
|
|
722
|
+
10: "#AF8245",
|
|
723
|
+
"01": "#0A69CF",
|
|
724
|
+
"02": "#6ED0AE",
|
|
725
|
+
"03": "#FF8F8F",
|
|
726
|
+
"04": "#AA61C2",
|
|
727
|
+
"05": "#803510",
|
|
728
|
+
"06": "#64CCD3",
|
|
729
|
+
"07": "#FFE885",
|
|
730
|
+
"08": "#AB4919",
|
|
731
|
+
"09": "#932653"
|
|
732
|
+
}
|
|
733
|
+
},
|
|
734
|
+
component: {
|
|
735
|
+
onMarkLabel: "#000000",
|
|
736
|
+
inverseOnMarkLabel: "#FFFFFF",
|
|
737
|
+
scalemark: "#D9D8D3",
|
|
738
|
+
threshold: "#00A3AF",
|
|
739
|
+
chartSurface: "#FFFFFF",
|
|
740
|
+
onChartSurface: "#696966"
|
|
741
|
+
}
|
|
613
742
|
}
|
|
614
743
|
}
|
|
615
744
|
}
|
|
@@ -636,18 +765,24 @@ const e = {
|
|
|
636
765
|
onTertiary: "#000000",
|
|
637
766
|
tertiaryContainer: "#F7EDE2",
|
|
638
767
|
onTertiaryContainer: "#000000",
|
|
639
|
-
notice: "#
|
|
768
|
+
notice: "#EFD616",
|
|
640
769
|
onNotice: "#000000",
|
|
641
|
-
noticeContainer: "#
|
|
770
|
+
noticeContainer: "#EFD616",
|
|
642
771
|
onNoticeContainer: "#000000",
|
|
772
|
+
noticeContainerVariant: "#FEEDBE",
|
|
773
|
+
onNoticeContainerVariant: "#000000",
|
|
643
774
|
negative: "#CE0037",
|
|
644
775
|
onNegative: "#FFFFFF",
|
|
645
776
|
negativeContainer: "#FCD6D3",
|
|
646
777
|
onNegativeContainer: "#000000",
|
|
778
|
+
negativeContainerVariant: "#FCEBEA",
|
|
779
|
+
onNegativeContainerVariant: "#CE0037",
|
|
647
780
|
positive: "#40A683",
|
|
648
781
|
onPositive: "#FFFFFF",
|
|
649
782
|
positiveContainer: "#40A683",
|
|
650
|
-
onPositiveContainer: "#FFFFFF"
|
|
783
|
+
onPositiveContainer: "#FFFFFF",
|
|
784
|
+
positiveContainerVariant: "#CAF9E6",
|
|
785
|
+
onPositiveContainerVariant: "#000000"
|
|
651
786
|
},
|
|
652
787
|
component: {
|
|
653
788
|
surface: "#FFFFFF",
|
|
@@ -655,6 +790,7 @@ const e = {
|
|
|
655
790
|
onSurfaceVariant: "#696966",
|
|
656
791
|
inverseSurface: "#232322",
|
|
657
792
|
inverseOnSurface: "#FFFFFF",
|
|
793
|
+
inversePrimary: "#FAECE6",
|
|
658
794
|
outline: "#C8C7C2",
|
|
659
795
|
outlineVariant: "#8C8B87",
|
|
660
796
|
scrim: "#00000033"
|
|
@@ -662,10 +798,67 @@ const e = {
|
|
|
662
798
|
interaction: {
|
|
663
799
|
disabled: "#EFEEEB",
|
|
664
800
|
disabledOnSurface: "#AFAEAA",
|
|
801
|
+
selected: "#00000005",
|
|
665
802
|
selectedSurface: "#F7C6B0",
|
|
666
803
|
hovered: "#00000033",
|
|
667
804
|
hoveredVariant: "#0000000D",
|
|
668
805
|
hoveredOnPrimary: "#FFFFFF99"
|
|
806
|
+
},
|
|
807
|
+
chart: {
|
|
808
|
+
mark: {
|
|
809
|
+
primary: {
|
|
810
|
+
"01": "#F7D8C9",
|
|
811
|
+
"02": "#F7C6B0",
|
|
812
|
+
"03": "#F49567",
|
|
813
|
+
"04": "#E26324",
|
|
814
|
+
"05": "#AB4919",
|
|
815
|
+
"06": "#50230D"
|
|
816
|
+
},
|
|
817
|
+
positive: {
|
|
818
|
+
"01": "#B1EAD7",
|
|
819
|
+
"02": "#98E1C8",
|
|
820
|
+
"03": "#6ED0AE",
|
|
821
|
+
"04": "#40A683",
|
|
822
|
+
"05": "#2C755C",
|
|
823
|
+
"06": "#12372B"
|
|
824
|
+
},
|
|
825
|
+
negative: {
|
|
826
|
+
"01": "#FCD6D3",
|
|
827
|
+
"02": "#FDB9B4",
|
|
828
|
+
"03": "#FF8F8F",
|
|
829
|
+
"04": "#F84258",
|
|
830
|
+
"05": "#CE0037",
|
|
831
|
+
"06": "#650417"
|
|
832
|
+
},
|
|
833
|
+
notice: {
|
|
834
|
+
"01": "#FFE885",
|
|
835
|
+
"02": "#EFD616",
|
|
836
|
+
"03": "#D8BF00",
|
|
837
|
+
"04": "#AC9301",
|
|
838
|
+
"05": "#857100",
|
|
839
|
+
"06": "#3A3000"
|
|
840
|
+
},
|
|
841
|
+
multi: {
|
|
842
|
+
10: "#AF8245",
|
|
843
|
+
"01": "#0A69CF",
|
|
844
|
+
"02": "#6ED0AE",
|
|
845
|
+
"03": "#FF8F8F",
|
|
846
|
+
"04": "#AA61C2",
|
|
847
|
+
"05": "#803510",
|
|
848
|
+
"06": "#64CCD3",
|
|
849
|
+
"07": "#FFE885",
|
|
850
|
+
"08": "#AB4919",
|
|
851
|
+
"09": "#932653"
|
|
852
|
+
}
|
|
853
|
+
},
|
|
854
|
+
component: {
|
|
855
|
+
onMarkLabel: "#000000",
|
|
856
|
+
inverseOnMarkLabel: "#FFFFFF",
|
|
857
|
+
scalemark: "#D9D8D3",
|
|
858
|
+
threshold: "#E26324",
|
|
859
|
+
chartSurface: "#FFFFFF",
|
|
860
|
+
onChartSurface: "#696966"
|
|
861
|
+
}
|
|
669
862
|
}
|
|
670
863
|
}
|
|
671
864
|
}
|
|
@@ -692,18 +885,24 @@ const e = {
|
|
|
692
885
|
onTertiary: "#FFFFFF",
|
|
693
886
|
tertiaryContainer: "#073165",
|
|
694
887
|
onTertiaryContainer: "#FFFFFF",
|
|
695
|
-
notice: "#
|
|
888
|
+
notice: "#EFD616",
|
|
696
889
|
onNotice: "#000000",
|
|
697
|
-
noticeContainer: "#
|
|
890
|
+
noticeContainer: "#EFD616",
|
|
698
891
|
onNoticeContainer: "#000000",
|
|
892
|
+
noticeContainerVariant: "#FEEDBE",
|
|
893
|
+
onNoticeContainerVariant: "#000000",
|
|
699
894
|
negative: "#CE0037",
|
|
700
895
|
onNegative: "#FFFFFF",
|
|
701
896
|
negativeContainer: "#FCD6D3",
|
|
702
897
|
onNegativeContainer: "#000000",
|
|
898
|
+
negativeContainerVariant: "#FCEBEA",
|
|
899
|
+
onNegativeContainerVariant: "#CE0037",
|
|
703
900
|
positive: "#40A683",
|
|
704
901
|
onPositive: "#FFFFFF",
|
|
705
902
|
positiveContainer: "#40A683",
|
|
706
|
-
onPositiveContainer: "#FFFFFF"
|
|
903
|
+
onPositiveContainer: "#FFFFFF",
|
|
904
|
+
positiveContainerVariant: "#CAF9E6",
|
|
905
|
+
onPositiveContainerVariant: "#000000"
|
|
707
906
|
},
|
|
708
907
|
component: {
|
|
709
908
|
surface: "#FFFFFF",
|
|
@@ -711,6 +910,7 @@ const e = {
|
|
|
711
910
|
onSurfaceVariant: "#696966",
|
|
712
911
|
inverseSurface: "#232322",
|
|
713
912
|
inverseOnSurface: "#FFFFFF",
|
|
913
|
+
inversePrimary: "#F4ECF6",
|
|
714
914
|
outline: "#C8C7C2",
|
|
715
915
|
outlineVariant: "#8C8B87",
|
|
716
916
|
scrim: "#00000033"
|
|
@@ -718,10 +918,67 @@ const e = {
|
|
|
718
918
|
interaction: {
|
|
719
919
|
disabled: "#EFEEEB",
|
|
720
920
|
disabledOnSurface: "#AFAEAA",
|
|
921
|
+
selected: "#00000005",
|
|
721
922
|
selectedSurface: "#DCBDE4",
|
|
722
923
|
hovered: "#00000033",
|
|
723
924
|
hoveredVariant: "#0000000D",
|
|
724
925
|
hoveredOnPrimary: "#FFFFFF99"
|
|
926
|
+
},
|
|
927
|
+
chart: {
|
|
928
|
+
mark: {
|
|
929
|
+
primary: {
|
|
930
|
+
"01": "#EADAEE",
|
|
931
|
+
"02": "#DCBDE4",
|
|
932
|
+
"03": "#CC9FD9",
|
|
933
|
+
"04": "#AA61C2",
|
|
934
|
+
"05": "#733B85",
|
|
935
|
+
"06": "#462352"
|
|
936
|
+
},
|
|
937
|
+
positive: {
|
|
938
|
+
"01": "#B1EAD7",
|
|
939
|
+
"02": "#98E1C8",
|
|
940
|
+
"03": "#6ED0AE",
|
|
941
|
+
"04": "#40A683",
|
|
942
|
+
"05": "#2C755C",
|
|
943
|
+
"06": "#12372B"
|
|
944
|
+
},
|
|
945
|
+
negative: {
|
|
946
|
+
"01": "#FCD6D3",
|
|
947
|
+
"02": "#FDB9B4",
|
|
948
|
+
"03": "#FF8F8F",
|
|
949
|
+
"04": "#F84258",
|
|
950
|
+
"05": "#CE0037",
|
|
951
|
+
"06": "#650417"
|
|
952
|
+
},
|
|
953
|
+
notice: {
|
|
954
|
+
"01": "#FFE885",
|
|
955
|
+
"02": "#EFD616",
|
|
956
|
+
"03": "#D8BF00",
|
|
957
|
+
"04": "#AC9301",
|
|
958
|
+
"05": "#857100",
|
|
959
|
+
"06": "#3A3000"
|
|
960
|
+
},
|
|
961
|
+
multi: {
|
|
962
|
+
10: "#AF8245",
|
|
963
|
+
"01": "#0A69CF",
|
|
964
|
+
"02": "#6ED0AE",
|
|
965
|
+
"03": "#FF8F8F",
|
|
966
|
+
"04": "#AA61C2",
|
|
967
|
+
"05": "#803510",
|
|
968
|
+
"06": "#64CCD3",
|
|
969
|
+
"07": "#FFE885",
|
|
970
|
+
"08": "#AB4919",
|
|
971
|
+
"09": "#932653"
|
|
972
|
+
}
|
|
973
|
+
},
|
|
974
|
+
component: {
|
|
975
|
+
onMarkLabel: "#000000",
|
|
976
|
+
inverseOnMarkLabel: "#FFFFFF",
|
|
977
|
+
scalemark: "#D9D8D3",
|
|
978
|
+
threshold: "#AA61C2",
|
|
979
|
+
chartSurface: "#FFFFFF",
|
|
980
|
+
onChartSurface: "#696966"
|
|
981
|
+
}
|
|
725
982
|
}
|
|
726
983
|
}
|
|
727
984
|
}
|
|
@@ -748,18 +1005,24 @@ const e = {
|
|
|
748
1005
|
onTertiary: "#FFFFFF",
|
|
749
1006
|
tertiaryContainer: "#401026",
|
|
750
1007
|
onTertiaryContainer: "#FFFFFF",
|
|
751
|
-
notice: "#
|
|
1008
|
+
notice: "#EFD616",
|
|
752
1009
|
onNotice: "#000000",
|
|
753
|
-
noticeContainer: "#
|
|
1010
|
+
noticeContainer: "#EFD616",
|
|
754
1011
|
onNoticeContainer: "#000000",
|
|
1012
|
+
noticeContainerVariant: "#FEEDBE",
|
|
1013
|
+
onNoticeContainerVariant: "#000000",
|
|
755
1014
|
negative: "#CE0037",
|
|
756
1015
|
onNegative: "#FFFFFF",
|
|
757
1016
|
negativeContainer: "#FCD6D3",
|
|
758
1017
|
onNegativeContainer: "#000000",
|
|
1018
|
+
negativeContainerVariant: "#FCEBEA",
|
|
1019
|
+
onNegativeContainerVariant: "#CE0037",
|
|
759
1020
|
positive: "#40A683",
|
|
760
1021
|
onPositive: "#FFFFFF",
|
|
761
1022
|
positiveContainer: "#40A683",
|
|
762
|
-
onPositiveContainer: "#FFFFFF"
|
|
1023
|
+
onPositiveContainer: "#FFFFFF",
|
|
1024
|
+
positiveContainerVariant: "#CAF9E6",
|
|
1025
|
+
onPositiveContainerVariant: "#000000"
|
|
763
1026
|
},
|
|
764
1027
|
component: {
|
|
765
1028
|
surface: "#FFFFFF",
|
|
@@ -767,6 +1030,7 @@ const e = {
|
|
|
767
1030
|
onSurfaceVariant: "#696966",
|
|
768
1031
|
inverseSurface: "#232322",
|
|
769
1032
|
inverseOnSurface: "#FFFFFF",
|
|
1033
|
+
inversePrimary: "#F9EBF0",
|
|
770
1034
|
outline: "#C8C7C2",
|
|
771
1035
|
outlineVariant: "#8C8B87",
|
|
772
1036
|
scrim: "#00000033"
|
|
@@ -774,10 +1038,67 @@ const e = {
|
|
|
774
1038
|
interaction: {
|
|
775
1039
|
disabled: "#EFEEEB",
|
|
776
1040
|
disabledOnSurface: "#AFAEAA",
|
|
777
|
-
|
|
1041
|
+
selected: "#00000005",
|
|
1042
|
+
selectedSurface: "#F9EBF0",
|
|
778
1043
|
hovered: "#00000033",
|
|
779
1044
|
hoveredVariant: "#0000000D",
|
|
780
1045
|
hoveredOnPrimary: "#FFFFFF99"
|
|
1046
|
+
},
|
|
1047
|
+
chart: {
|
|
1048
|
+
mark: {
|
|
1049
|
+
primary: {
|
|
1050
|
+
"01": "#F6D7E0",
|
|
1051
|
+
"02": "#F5C1D1",
|
|
1052
|
+
"03": "#F190B4",
|
|
1053
|
+
"04": "#EB4F8E",
|
|
1054
|
+
"05": "#932653",
|
|
1055
|
+
"06": "#591734"
|
|
1056
|
+
},
|
|
1057
|
+
positive: {
|
|
1058
|
+
"01": "#B1EAD7",
|
|
1059
|
+
"02": "#98E1C8",
|
|
1060
|
+
"03": "#6ED0AE",
|
|
1061
|
+
"04": "#40A683",
|
|
1062
|
+
"05": "#2C755C",
|
|
1063
|
+
"06": "#12372B"
|
|
1064
|
+
},
|
|
1065
|
+
negative: {
|
|
1066
|
+
"01": "#FCD6D3",
|
|
1067
|
+
"02": "#FDB9B4",
|
|
1068
|
+
"03": "#FF8F8F",
|
|
1069
|
+
"04": "#F84258",
|
|
1070
|
+
"05": "#CE0037",
|
|
1071
|
+
"06": "#650417"
|
|
1072
|
+
},
|
|
1073
|
+
notice: {
|
|
1074
|
+
"01": "#FFE885",
|
|
1075
|
+
"02": "#EFD616",
|
|
1076
|
+
"03": "#D8BF00",
|
|
1077
|
+
"04": "#AC9301",
|
|
1078
|
+
"05": "#857100",
|
|
1079
|
+
"06": "#3A3000"
|
|
1080
|
+
},
|
|
1081
|
+
multi: {
|
|
1082
|
+
10: "#AF8245",
|
|
1083
|
+
"01": "#0A69CF",
|
|
1084
|
+
"02": "#6ED0AE",
|
|
1085
|
+
"03": "#FF8F8F",
|
|
1086
|
+
"04": "#AA61C2",
|
|
1087
|
+
"05": "#803510",
|
|
1088
|
+
"06": "#64CCD3",
|
|
1089
|
+
"07": "#FFE885",
|
|
1090
|
+
"08": "#AB4919",
|
|
1091
|
+
"09": "#932653"
|
|
1092
|
+
}
|
|
1093
|
+
},
|
|
1094
|
+
component: {
|
|
1095
|
+
onMarkLabel: "#000000",
|
|
1096
|
+
inverseOnMarkLabel: "#FFFFFF",
|
|
1097
|
+
scalemark: "#D9D8D3",
|
|
1098
|
+
threshold: "#EB4F8E",
|
|
1099
|
+
chartSurface: "#FFFFFF",
|
|
1100
|
+
onChartSurface: "#696966"
|
|
1101
|
+
}
|
|
781
1102
|
}
|
|
782
1103
|
}
|
|
783
1104
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { createAnatomy as R } from "../../anatomy/dist/index.js";
|
|
2
2
|
import { getEventKey as y } from "../../dom-event/dist/index.js";
|
|
3
|
-
import { createScope as G,
|
|
4
|
-
import {
|
|
3
|
+
import { createScope as G, isSafari as O, dataAttr as s, prevById as C, nextById as h, queryAll as S } from "../../dom-query/dist/index.js";
|
|
4
|
+
import { compact as x, createSplitProps as P, last as F, first as w, warn as L, add as A, remove as N, isEqual as p } from "../../utils/dist/index.js";
|
|
5
5
|
import { createMachine as $, guards as B } from "../../core/dist/index.js";
|
|
6
6
|
import { createProps as v } from "../../types/dist/index.js";
|
|
7
7
|
var U = R("accordion").parts("root", "item", "itemTrigger", "itemContent", "itemIndicator"), g = U.build(), i = G({
|
|
@@ -24,12 +24,12 @@ var U = R("accordion").parts("root", "item", "itemTrigger", "itemContent", "item
|
|
|
24
24
|
getRootEl: (e) => i.getById(e, i.getRootId(e)),
|
|
25
25
|
getTriggerEls: (e) => {
|
|
26
26
|
const t = `[aria-controls][data-ownedby='${CSS.escape(i.getRootId(e))}']:not([disabled])`;
|
|
27
|
-
return
|
|
27
|
+
return S(i.getRootEl(e), t);
|
|
28
28
|
},
|
|
29
|
-
getFirstTriggerEl: (e) =>
|
|
30
|
-
getLastTriggerEl: (e) =>
|
|
31
|
-
getNextTriggerEl: (e, o) =>
|
|
32
|
-
getPrevTriggerEl: (e, o) =>
|
|
29
|
+
getFirstTriggerEl: (e) => w(i.getTriggerEls(e)),
|
|
30
|
+
getLastTriggerEl: (e) => F(i.getTriggerEls(e)),
|
|
31
|
+
getNextTriggerEl: (e, o) => h(i.getTriggerEls(e), i.getItemTriggerId(e, o)),
|
|
32
|
+
getPrevTriggerEl: (e, o) => C(i.getTriggerEls(e), i.getItemTriggerId(e, o))
|
|
33
33
|
});
|
|
34
34
|
function J(e, o, t) {
|
|
35
35
|
const a = e.context.focusedValue, d = e.context.value, I = e.context.multiple;
|
|
@@ -117,7 +117,7 @@ function J(e, o, t) {
|
|
|
117
117
|
l.disabled || o("TRIGGER.BLUR");
|
|
118
118
|
},
|
|
119
119
|
onClick(u) {
|
|
120
|
-
l.disabled || (
|
|
120
|
+
l.disabled || (O() && u.currentTarget.focus(), o({ type: "TRIGGER.CLICK", value: r }));
|
|
121
121
|
},
|
|
122
122
|
onKeyDown(u) {
|
|
123
123
|
if (u.defaultPrevented || l.disabled) return;
|
|
@@ -152,7 +152,7 @@ function J(e, o, t) {
|
|
|
152
152
|
}
|
|
153
153
|
var { and: H, not: k } = B;
|
|
154
154
|
function Q(e) {
|
|
155
|
-
const o =
|
|
155
|
+
const o = x(e);
|
|
156
156
|
return $(
|
|
157
157
|
{
|
|
158
158
|
id: "accordion",
|
|
@@ -226,7 +226,7 @@ function Q(e) {
|
|
|
226
226
|
},
|
|
227
227
|
actions: {
|
|
228
228
|
collapse(t, a) {
|
|
229
|
-
const d = t.multiple ?
|
|
229
|
+
const d = t.multiple ? N(t.value, a.value) : [];
|
|
230
230
|
f.value(t, t.multiple ? d : []);
|
|
231
231
|
},
|
|
232
232
|
expand(t, a) {
|
|
@@ -261,7 +261,7 @@ function Q(e) {
|
|
|
261
261
|
f.value(t, a.value);
|
|
262
262
|
},
|
|
263
263
|
coarseValue(t) {
|
|
264
|
-
!t.multiple && t.value.length > 1 && (
|
|
264
|
+
!t.multiple && t.value.length > 1 && (L("The value of accordion should be a single value when multiple is false."), t.value = [t.value[0]]);
|
|
265
265
|
}
|
|
266
266
|
}
|
|
267
267
|
}
|
|
@@ -297,7 +297,7 @@ v()([
|
|
|
297
297
|
"orientation",
|
|
298
298
|
"value"
|
|
299
299
|
]);
|
|
300
|
-
var K = v()(["value", "disabled"]), W =
|
|
300
|
+
var K = v()(["value", "disabled"]), W = P(K);
|
|
301
301
|
export {
|
|
302
302
|
U as anatomy,
|
|
303
303
|
J as connect,
|