@yamatozhen/design_system 1.0.1 → 1.2.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.
Files changed (156) hide show
  1. package/LICENSE +201 -201
  2. package/README.md +101 -101
  3. package/package.json +50 -50
  4. package/scripts/postinstall.js +91 -91
  5. package/template/app/ClientNav.tsx +258 -310
  6. package/template/app/globals.css +2 -167
  7. package/template/app/layout.tsx +94 -82
  8. package/template/app/themes/dark-mc.css +51 -51
  9. package/template/app/themes/dark.css +51 -51
  10. package/template/app/themes/light-mc.css +51 -51
  11. package/template/app/themes/light.css +51 -51
  12. package/template/app/themes/theme.css +272 -82
  13. package/template/components/{layout/button → (buttons)}/Button.module.css +351 -305
  14. package/template/components/{layout/button → (buttons)}/ButtonGroup.tsx +414 -503
  15. package/template/components/{layout/button → (buttons)}/FAB.tsx +119 -118
  16. package/template/components/(buttons)/button.tsx +164 -0
  17. package/template/components/(controls)/slider/Slider.module.css +250 -0
  18. package/template/components/(controls)/slider/Slider.tsx +386 -0
  19. package/template/components/{layout → (controls)}/switch/Switch.module.css +108 -102
  20. package/template/components/{layout → (controls)}/switch/Switch.tsx +69 -48
  21. package/template/components/(date & time)/calendar/Calendar.module.css +125 -0
  22. package/template/components/(date & time)/calendar/Calendar.tsx +206 -0
  23. package/template/components/(date & time)/dateField/DateField.module.css +25 -0
  24. package/template/components/(date & time)/dateField/DateField.tsx +193 -0
  25. package/template/components/(date & time)/datePicker/DatePicker.tsx +118 -0
  26. package/template/components/(date & time)/dateRangePicker/DateRangePicker.tsx +144 -0
  27. package/template/components/(date & time)/rangeCalendar/RangeCalendar.module.css +203 -0
  28. package/template/components/(date & time)/rangeCalendar/RangeCalendar.tsx +263 -0
  29. package/template/components/(date & time)/shared/dateUtils.ts +107 -0
  30. package/template/components/(date & time)/timeField/TimeField.module.css +39 -0
  31. package/template/components/(date & time)/timeField/TimeField.tsx +158 -0
  32. package/template/components/(feedback)/circularProgress/CircularProgress.tsx +646 -0
  33. package/template/components/(feedback)/linearProgress/LinearProgress.tsx +337 -0
  34. package/template/components/(feedback)/meter/Meter.tsx +111 -0
  35. package/template/components/(feedback)/skeleton/Skeleton.module.css +49 -0
  36. package/template/components/(feedback)/skeleton/Skeleton.tsx +32 -0
  37. package/template/components/(feedback)/spinner/Spinner.module.css +27 -0
  38. package/template/components/(feedback)/spinner/Spinner.tsx +60 -0
  39. package/template/components/(forms)/checkbox/Checkbox.tsx +121 -0
  40. package/template/components/(forms)/checkboxGroup/CheckboxGroup.tsx +83 -0
  41. package/template/components/(forms)/description/Description.tsx +34 -0
  42. package/template/components/(forms)/errorMessage/ErrorMessage.tsx +31 -0
  43. package/template/components/(forms)/fieldError/FieldError.tsx +39 -0
  44. package/template/components/(forms)/fieldset/Fieldset.tsx +51 -0
  45. package/template/components/(forms)/form/Form.tsx +54 -0
  46. package/template/components/(forms)/input/Input.tsx +50 -0
  47. package/template/components/(forms)/inputGroup/InputGroup.tsx +65 -0
  48. package/template/components/(forms)/inputOtp/InputOtp.tsx +139 -0
  49. package/template/components/(forms)/label/Label.tsx +46 -0
  50. package/template/components/(forms)/numberField/NumberField.tsx +292 -0
  51. package/template/components/(forms)/radioGroup/RadioGroup.tsx +175 -0
  52. package/template/components/(forms)/searchField/SearchField.tsx +139 -0
  53. package/template/components/(forms)/shared/field.module.css +75 -0
  54. package/template/components/(forms)/shared/fieldContext.ts +28 -0
  55. package/template/components/(forms)/textArea/TextArea.tsx +55 -0
  56. package/template/components/(forms)/textField/TextField.tsx +91 -0
  57. package/template/components/{layout → (layout)}/Lightbox/LightboxCard.tsx +100 -100
  58. package/template/components/{layout → (layout)}/Lightbox/LightboxGallery.module.css +249 -249
  59. package/template/components/{layout → (layout)}/Lightbox/LightboxGallery.tsx +72 -72
  60. package/template/components/{layout → (layout)}/Lightbox/LightboxGrid.tsx +185 -186
  61. package/template/components/{layout → (layout)}/Lightbox/LightboxModal.module.css +395 -395
  62. package/template/components/{layout → (layout)}/Lightbox/LightboxModal.tsx +498 -500
  63. package/template/components/{layout → (layout)}/Lightbox/demo.tsx +396 -412
  64. package/template/components/{layout → (layout)}/Lightbox/index.ts +30 -30
  65. package/template/components/{layout → (layout)}/Lightbox/types.ts +101 -113
  66. package/template/components/{layout → (layout)}/Lightbox/useLightboxFilters.ts +140 -140
  67. package/template/components/(layout)/accordion/Accordion.module.css +108 -0
  68. package/template/components/(layout)/accordion/Accordion.tsx +251 -0
  69. package/template/components/(layout)/card/Card.module.css +136 -0
  70. package/template/components/(layout)/card/Card.tsx +371 -0
  71. package/template/components/(layout)/list/List.module.css +83 -0
  72. package/template/components/(layout)/list/List.tsx +332 -0
  73. package/template/components/{layout → (layout)}/navigation/Wrap.tsx +41 -41
  74. package/template/components/(layout)/navigation/breadcrumbs/Breadcrumbs.tsx +145 -0
  75. package/template/components/{layout/navigation/nav/Nav.module.css → (layout)/navigation/nav/Nav.module.css.old} +474 -508
  76. package/template/components/{layout → (layout)}/navigation/nav/Nav.tsx +186 -167
  77. package/template/components/{layout → (layout)}/navigation/nav/NavBar.tsx +396 -419
  78. package/template/components/{layout → (layout)}/navigation/nav/NavContext.tsx +259 -259
  79. package/template/components/{layout → (layout)}/navigation/nav/NavItem.tsx +195 -173
  80. package/template/components/{layout → (layout)}/navigation/nav/NavNew.module.css +406 -373
  81. package/template/components/{layout → (layout)}/navigation/nav/NavRail.tsx +317 -315
  82. package/template/components/{layout → (layout)}/navigation/nav/NavSection.tsx +101 -102
  83. package/template/components/{layout → (layout)}/navigation/nav/NavTab.tsx +25 -25
  84. package/template/components/{layout → (layout)}/navigation/nav/navftb/NavFTB.module.css +253 -252
  85. package/template/components/{layout → (layout)}/navigation/nav/navftb/NavFTB.tsx +448 -399
  86. package/template/components/{layout → (layout)}/navigation/nav/navftb/useTabIndicator.ts +498 -484
  87. package/template/components/{layout → (layout)}/navigation/nav/navheader/NavHeader.module.css +59 -59
  88. package/template/components/{layout → (layout)}/navigation/nav/navheader/NavHeader.tsx +465 -473
  89. package/template/components/(layout)/navigation/pagination/Pagination.tsx +261 -0
  90. package/template/components/{layout → (layout)}/pages/loadingScreen.tsx +117 -102
  91. package/template/components/{layout → (layout)}/pages/maintenance/Maintenance.tsx +52 -52
  92. package/template/components/{layout → (layout)}/pages/maintenance/maintenance.module.css +162 -162
  93. package/template/components/(layout)/scrollShadow/ScrollShadow.module.css +81 -0
  94. package/template/components/(layout)/scrollShadow/ScrollShadow.tsx +161 -0
  95. package/template/components/(layout)/scrollShadow/useScrollShadow.ts +130 -0
  96. package/template/components/(layout)/separator/Separator.tsx +112 -0
  97. package/template/components/(overlays)/accessibilityModal/AccessibilityModal.tsx +307 -0
  98. package/template/components/(overlays)/drawer/Drawer.tsx +953 -0
  99. package/template/components/(overlays)/modal/Modal.tsx +654 -0
  100. package/template/components/(overlays)/popover/Popover.tsx +420 -0
  101. package/template/components/(overlays)/toast/Toast.tsx +692 -0
  102. package/template/components/(pickers)/autocomplete/Autocomplete.tsx +24 -0
  103. package/template/components/(pickers)/comboBox/ComboBox.tsx +21 -0
  104. package/template/components/(pickers)/select/Select.tsx +188 -0
  105. package/template/components/(pickers)/shared/FilterableField.tsx +223 -0
  106. package/template/components/(pickers)/shared/PickerItem.ts +13 -0
  107. package/template/components/tools/CustomScrollbar.tsx +107 -0
  108. package/template/components/tools/Divider.tsx +11 -11
  109. package/template/components/tools/ReduceMotionContext.tsx +5 -5
  110. package/template/components/tools/Sinewave.tsx +396 -199
  111. package/template/components/tools/SinewaveProgress.tsx +140 -135
  112. package/template/components/tools/badge/Badge.tsx +28 -28
  113. package/template/components/tools/dropdown/drop.module.css +196 -0
  114. package/template/components/tools/dropdown/drop.tsx +568 -0
  115. package/template/components/tools/easing.ts +118 -0
  116. package/template/components/tools/flubber.d.ts +6 -6
  117. package/template/components/tools/footer/Footer.tsx +20 -0
  118. package/template/components/tools/input/Input.module.css +45 -0
  119. package/template/components/tools/input/Input.tsx +99 -0
  120. package/template/components/tools/label/Icon.tsx +39 -0
  121. package/template/components/tools/label/Label.tsx +156 -0
  122. package/template/components/tools/mobileViewProvider.tsx +53 -58
  123. package/template/components/tools/ripple/ripple.css +38 -41
  124. package/template/components/tools/ripple/ripple.tsx +78 -53
  125. package/template/components/tools/shape/Shape.module.css +25 -0
  126. package/template/components/tools/shape/{ShapeMorph.tsx → Shape.tsx} +316 -190
  127. package/template/components/tools/shape/ShapeLoader.tsx +104 -101
  128. package/template/components/tools/shape/ShapePaths.ts +116 -116
  129. package/template/components/tools/switch/Switch.module.css +102 -102
  130. package/template/components/tools/switch/Switch.tsx +48 -48
  131. package/template/components/tools/useBodyScrollLock.tsx +27 -27
  132. package/template/components/tools/useImageColor.ts +47 -47
  133. package/template/components/tools/useNavSheetDrag.tsx +196 -196
  134. package/template/components/layout/accordion/Accordion.module.css +0 -149
  135. package/template/components/layout/accordion/Accordion.tsx +0 -114
  136. package/template/components/layout/button/button.tsx +0 -128
  137. package/template/components/layout/button/drop.module.css +0 -229
  138. package/template/components/layout/button/drop.tsx +0 -516
  139. package/template/components/layout/hero/v1/heroSlideshow.module.css +0 -107
  140. package/template/components/layout/hero/v1/heroSlideshow.tsx +0 -233
  141. package/template/components/layout/modals/accessibilityModal/AccessibilityModal.module.css +0 -126
  142. package/template/components/layout/modals/accessibilityModal/AccessibilityModal.tsx +0 -290
  143. package/template/components/layout/modals/alert/Alert.tsx +0 -188
  144. package/template/components/layout/navigation/MioCard.module.css +0 -88
  145. package/template/components/layout/navigation/MioCard.tsx +0 -266
  146. package/template/components/tools/ProgressiveBlur.tsx +0 -73
  147. package/template/components/tools/icon/icon.module.css +0 -0
  148. package/template/components/tools/icon/icon.tsx +0 -125
  149. package/template/components/tools/react-bits/ClickSpark.tsx +0 -177
  150. package/template/components/tools/react-bits/FadeContent.tsx +0 -90
  151. package/template/components/tools/react-bits/GlareHover.tsx +0 -73
  152. package/template/components/tools/react-bits/GradientText/GradientText.css +0 -70
  153. package/template/components/tools/react-bits/GradientText/GradientText.tsx +0 -44
  154. package/template/components/tools/react-bits/Magnet.tsx +0 -118
  155. package/template/components/tools/react-bits/Stepper/Stepper.css +0 -134
  156. package/template/components/tools/react-bits/Stepper/Stepper.tsx +0 -412
@@ -0,0 +1,118 @@
1
+ "use client";
2
+ import React, { useState } from "react";
3
+ import Icon from "@/components/tools/label/Icon";
4
+ import Popover from "@/components/(overlays)/popover/Popover";
5
+ import DateField from "@/components/(date & time)/dateField/DateField";
6
+ import Calendar from "@/components/(date & time)/calendar/Calendar";
7
+ import { isSameDay } from "@/components/(date & time)/shared/dateUtils";
8
+ import fieldStyles from "@/components/(forms)/shared/field.module.css";
9
+ import Button from "@/components/(buttons)/button";
10
+ import InputGroup from "@/components/(forms)/inputGroup/InputGroup";
11
+
12
+ export interface DatePickerProps {
13
+ value?: Date | null;
14
+ defaultValue?: Date | null;
15
+ onChange?: (value: Date | null) => void;
16
+ minValue?: Date;
17
+ maxValue?: Date;
18
+ isDateUnavailable?: (date: Date) => boolean;
19
+ isDisabled?: boolean;
20
+ isReadOnly?: boolean;
21
+ isRequired?: boolean;
22
+ isInvalid?: boolean;
23
+ "aria-label"?: string;
24
+ className?: string;
25
+ style?: React.CSSProperties;
26
+ }
27
+
28
+ // DateField for typed entry + a Calendar in a Popover for picking — the
29
+ // two stay in sync either direction, same as HeroUI's own composition.
30
+ export default function DatePicker({
31
+ value: controlledValue,
32
+ defaultValue = null,
33
+ onChange,
34
+ minValue,
35
+ maxValue,
36
+ isDateUnavailable,
37
+ isDisabled = false,
38
+ isReadOnly = false,
39
+ isRequired = false,
40
+ isInvalid = false,
41
+ "aria-label": ariaLabel = "Date",
42
+ className,
43
+ style,
44
+ }: DatePickerProps) {
45
+ const isControlled = controlledValue !== undefined;
46
+ const [internalValue, setInternalValue] = useState(defaultValue);
47
+ const value = isControlled ? controlledValue : internalValue;
48
+ const [isOpen, setIsOpen] = useState(false);
49
+
50
+ const commit = (next: Date | null) => {
51
+ if (!isControlled) setInternalValue(next);
52
+ onChange?.(next);
53
+ };
54
+
55
+ return (
56
+ <Popover isOpen={isOpen} onOpenChange={setIsOpen}>
57
+ <InputGroup
58
+ className={[fieldStyles.field, className].filter(Boolean).join(" ")}
59
+ style={{
60
+ paddingRight: 0,
61
+ paddingLeft: 18,
62
+ width: "fit-content",
63
+ ...style,
64
+ }}
65
+ data-invalid={isInvalid || undefined}
66
+ >
67
+ <div style={{ display: "flex" }}>
68
+ <DateField
69
+ value={value}
70
+ onChange={commit}
71
+ minValue={minValue}
72
+ maxValue={maxValue}
73
+ isDisabled={isDisabled}
74
+ isReadOnly={isReadOnly}
75
+ isRequired={isRequired}
76
+ isInvalid={isInvalid}
77
+ aria-label={ariaLabel}
78
+ data-in-group={true}
79
+ style={{ width: "fit-content" }}
80
+ />
81
+ <Popover.Trigger>
82
+ <Button
83
+ type="button"
84
+ aria-label="Open calendar"
85
+ disabled={isDisabled || isReadOnly}
86
+ variant="primary-bold"
87
+ elevated
88
+ style={{
89
+ borderRadius: 60,
90
+ minWidth: 60,
91
+ minHeight: 36,
92
+ maxHeight: 36,
93
+ margin: 4,
94
+ marginLeft: 12,
95
+ }}
96
+ >
97
+ <Icon systemName="calendar_month" />
98
+ </Button>
99
+ </Popover.Trigger>
100
+ </div>
101
+ </InputGroup>
102
+ <Popover.Content placement="bottom-start" offset={4}>
103
+ <Calendar
104
+ value={value}
105
+ onChange={(next) => {
106
+ const date = Array.isArray(next) ? (next[0] ?? null) : next;
107
+ commit(date);
108
+ if (date && !isSameDay(date, value)) setIsOpen(false);
109
+ }}
110
+ minValue={minValue}
111
+ maxValue={maxValue}
112
+ isDateUnavailable={isDateUnavailable}
113
+ aria-label={ariaLabel}
114
+ />
115
+ </Popover.Content>
116
+ </Popover>
117
+ );
118
+ }
@@ -0,0 +1,144 @@
1
+ "use client";
2
+ import React, { useState } from "react";
3
+ import Icon from "@/components/tools/label/Icon";
4
+ import Popover from "@/components/(overlays)/popover/Popover";
5
+ import DateField from "@/components/(date & time)/dateField/DateField";
6
+ import RangeCalendar, {
7
+ type DateRange,
8
+ } from "@/components/(date & time)/rangeCalendar/RangeCalendar";
9
+ import fieldStyles from "@/components/(forms)/shared/field.module.css";
10
+ import Drop from "@/components/tools/dropdown/drop";
11
+ import Button from "@/components/(buttons)/button";
12
+ import InputGroup from "@/components/(forms)/inputGroup/InputGroup";
13
+
14
+ export interface DateRangePickerProps {
15
+ value?: DateRange | null;
16
+ defaultValue?: DateRange | null;
17
+ onChange?: (value: DateRange | null) => void;
18
+ minValue?: Date;
19
+ maxValue?: Date;
20
+ isDateUnavailable?: (date: Date) => boolean;
21
+ isDisabled?: boolean;
22
+ isReadOnly?: boolean;
23
+ isRequired?: boolean;
24
+ isInvalid?: boolean;
25
+ "aria-label"?: string;
26
+ className?: string;
27
+ style?: React.CSSProperties;
28
+ }
29
+
30
+ export default function DateRangePicker({
31
+ value: controlledValue,
32
+ defaultValue = null,
33
+ onChange,
34
+ minValue,
35
+ maxValue,
36
+ isDateUnavailable,
37
+ isDisabled = false,
38
+ isReadOnly = false,
39
+ isRequired = false,
40
+ isInvalid = false,
41
+ "aria-label": ariaLabel = "Date range",
42
+ className,
43
+ style,
44
+ }: DateRangePickerProps) {
45
+ const isControlled = controlledValue !== undefined;
46
+ const [internalValue, setInternalValue] = useState(defaultValue);
47
+ const value = isControlled ? controlledValue : internalValue;
48
+ const [isOpen, setIsOpen] = useState(false);
49
+
50
+ const commit = (next: DateRange | null) => {
51
+ if (!isControlled) setInternalValue(next);
52
+ onChange?.(next);
53
+ };
54
+
55
+ return (
56
+ <Popover isOpen={isOpen} onOpenChange={setIsOpen}>
57
+ <InputGroup
58
+ className={[fieldStyles.field, className].filter(Boolean).join(" ")}
59
+ style={{
60
+ paddingRight: 0,
61
+ paddingLeft: 18,
62
+ width: "fit-content",
63
+ ...style,
64
+ }}
65
+ data-invalid={isInvalid || undefined}
66
+ >
67
+ <div
68
+ style={{
69
+ display: "flex",
70
+ alignItems: "center",
71
+ }}
72
+ >
73
+ <DateField
74
+ value={value?.start ?? null}
75
+ onChange={(start) =>
76
+ commit(start ? { start, end: value?.end ?? start } : null)
77
+ }
78
+ minValue={minValue}
79
+ maxValue={maxValue}
80
+ isDisabled={isDisabled}
81
+ isReadOnly={isReadOnly}
82
+ isRequired={isRequired}
83
+ aria-label={`${ariaLabel} start`}
84
+ style={{ width: "fit-content" }}
85
+ />
86
+ <span
87
+ style={{
88
+ color: "var(--md-sys-color-on-surface-variant)",
89
+ marginInline: 8,
90
+ }}
91
+ >
92
+ –
93
+ </span>
94
+ <DateField
95
+ value={value?.end ?? null}
96
+ onChange={(end) =>
97
+ commit(end ? { start: value?.start ?? end, end } : null)
98
+ }
99
+ minValue={minValue}
100
+ maxValue={maxValue}
101
+ isDisabled={isDisabled}
102
+ isReadOnly={isReadOnly}
103
+ isRequired={isRequired}
104
+ aria-label={`${ariaLabel} end`}
105
+ style={{ width: "fit-content" }}
106
+ />
107
+ <Popover.Trigger>
108
+ <Button
109
+ type="button"
110
+ aria-label="Open calendar"
111
+ disabled={isDisabled || isReadOnly}
112
+ variant="primary-bold"
113
+ elevated
114
+ style={{
115
+ borderRadius: 60,
116
+ minWidth: 60,
117
+ minHeight: 36,
118
+ maxHeight: 36,
119
+ margin: 4,
120
+ marginLeft: 12,
121
+ }}
122
+ >
123
+ <Icon systemName="calendar_month" />
124
+ </Button>
125
+ </Popover.Trigger>
126
+ </div>
127
+ </InputGroup>
128
+
129
+ <Popover.Content placement="bottom-start" offset={4}>
130
+ <RangeCalendar
131
+ value={value}
132
+ onChange={(next) => {
133
+ commit(next);
134
+ if (next) setIsOpen(false);
135
+ }}
136
+ minValue={minValue}
137
+ maxValue={maxValue}
138
+ isDateUnavailable={isDateUnavailable}
139
+ aria-label={ariaLabel}
140
+ />
141
+ </Popover.Content>
142
+ </Popover>
143
+ );
144
+ }
@@ -0,0 +1,203 @@
1
+ .calendar {
2
+ display: inline-flex;
3
+ flex-direction: column;
4
+ gap: 8px;
5
+ width: fit-content;
6
+ padding: 12px;
7
+ border-radius: var(--borderRadius-md);
8
+ background: transparent;
9
+ }
10
+
11
+ .header {
12
+ display: flex;
13
+ align-items: center;
14
+ justify-content: space-between;
15
+ }
16
+
17
+ .heading {
18
+ font-size: 14px;
19
+ font-weight: 600;
20
+ color: var(--md-sys-color-on-surface);
21
+ }
22
+
23
+ .navButton {
24
+ display: flex;
25
+ align-items: center;
26
+ justify-content: center;
27
+ width: 32px;
28
+ height: 32px;
29
+ border: none;
30
+ border-radius: var(--borderRadius-sm);
31
+ background: transparent;
32
+ color: var(--md-sys-color-on-surface);
33
+ cursor: pointer;
34
+ transition: background-color var(--transition-expressive-color);
35
+ }
36
+ .navButton:hover:not(:disabled) {
37
+ background: var(--md-sys-color-surface-container-highest);
38
+ }
39
+ .navButton:disabled {
40
+ opacity: 0.4;
41
+ cursor: not-allowed;
42
+ }
43
+
44
+ .grid {
45
+ display: flex;
46
+ flex-direction: column;
47
+ gap: 2px;
48
+ }
49
+
50
+ .gridHeaderRow,
51
+ .gridBody {
52
+ display: grid;
53
+ grid-template-columns: repeat(7, 1fr);
54
+ }
55
+
56
+ .headerCell {
57
+ display: flex;
58
+ align-items: center;
59
+ justify-content: center;
60
+ height: 32px;
61
+ font-size: 14px;
62
+ font-weight: 600;
63
+ color: var(--md-sys-color-on-surface-variant);
64
+ }
65
+
66
+ .cell {
67
+ position: relative;
68
+ z-index: 0;
69
+ display: flex;
70
+ align-items: center;
71
+ justify-content: center;
72
+ margin: 2px 0;
73
+ height: 38px;
74
+ min-width: 38px;
75
+ border: none;
76
+ background: transparent;
77
+ color: var(--md-sys-color-on-surface);
78
+ border-radius: var(--borderRadius-xs);
79
+
80
+ font-size: 14px;
81
+ cursor: pointer;
82
+ filter: none;
83
+ transition:
84
+ background-color var(--transition-expressive-color),
85
+ border-radius var(--transition-expressive-fast);
86
+ }
87
+
88
+ .cell[data-outside-month="true"] {
89
+ color: var(--md-sys-color-on-surface-variant);
90
+ opacity: 0.4;
91
+ }
92
+
93
+ .cell[data-today="true"] {
94
+ font-weight: 700;
95
+ border-radius: var(--borderRadius-md);
96
+ box-shadow: inset 0 0 0 2px var(--md-sys-color-primary);
97
+ }
98
+
99
+ .cell:hover:not(:disabled) {
100
+ background: var(--md-sys-color-surface-container-low);
101
+ filter: var(--filterBrightness);
102
+ }
103
+
104
+ .cell[data-in-range="true"],
105
+ .cell[data-selected="true"] {
106
+ border-radius: 0;
107
+ }
108
+
109
+ .cell[data-in-range="true"] {
110
+ background: var(--md-sys-color-primary-container) !important;
111
+ color: var(--md-sys-color-on-primary-container) !important;
112
+ }
113
+
114
+ .cell[data-selected="true"] {
115
+ background: transparent !important;
116
+ color: var(--md-sys-color-on-primary) !important;
117
+ font-weight: 600;
118
+ }
119
+
120
+ .cell[data-round="left"] {
121
+ border-radius: var(--borderRadius-md) 0 0 var(--borderRadius-md) !important;
122
+ }
123
+
124
+ .cell[data-round="right"] {
125
+ border-radius: 0 var(--borderRadius-md) var(--borderRadius-md) 0 !important;
126
+ }
127
+
128
+ .cell[data-round="both"] {
129
+ border-radius: var(--borderRadius-md) !important;
130
+ }
131
+
132
+ .cell[data-selected="true"] {
133
+ border-radius: var(--borderRadius-md) !important;
134
+ }
135
+
136
+ .cell[data-selected="true"]::before {
137
+ content: "";
138
+ position: absolute;
139
+ inset: 0;
140
+ z-index: -2;
141
+ background: none;
142
+ border-radius: inherit;
143
+ }
144
+
145
+ .cell[data-selected="true"]::after {
146
+ content: "";
147
+ position: absolute;
148
+ inset: 0;
149
+ z-index: -1;
150
+ background: var(--md-sys-color-primary);
151
+ border-radius: inherit;
152
+ box-shadow:
153
+ 0 0 0 1px var(--globalUIBorder),
154
+ 0 1px 1px rgba(0, 0, 0, 0.1),
155
+ 0 1px 3px rgba(0, 0, 0, 0.1),
156
+ 0 2px 6px rgba(0, 0, 0, 0.1);
157
+ }
158
+
159
+ .cell[data-selected="true"][data-round="left"]::before {
160
+ background: var(--md-sys-color-primary-container);
161
+ border-radius: var(--borderRadius-md) 0 0 var(--borderRadius-md);
162
+ }
163
+
164
+ .cell[data-selected="true"][data-round="right"]::before {
165
+ background: var(--md-sys-color-primary-container);
166
+ border-radius: 0 var(--borderRadius-md) var(--borderRadius-md) 0;
167
+ }
168
+
169
+ .cell[data-in-range="true"]:not([data-round]):nth-child(7n + 1) {
170
+ border-radius: calc(var(--borderRadius-xs) * 0.8) 0 0
171
+ calc(var(--borderRadius-xs) * 0.8) !important;
172
+ }
173
+
174
+ .cell[data-in-range="true"]:not([data-round]):nth-child(7n) {
175
+ border-radius: 0 calc(var(--borderRadius-xs) * 0.8)
176
+ calc(var(--borderRadius-xs) * 0.8) 0 !important;
177
+ }
178
+
179
+ .cell[data-round="left"]:nth-child(7n + 1) {
180
+ border-radius: var(--borderRadius-md) 0 0 var(--borderRadius-md) !important;
181
+ }
182
+
183
+ .cell[data-round="right"]:nth-child(7n + 1) {
184
+ border-radius: calc(var(--borderRadius-xs) * 0.8) var(--borderRadius-md)
185
+ var(--borderRadius-md) calc(var(--borderRadius-xs) * 0.8) !important;
186
+ }
187
+
188
+ .cell[data-round="left"]:nth-child(7n) {
189
+ border-radius: var(--borderRadius-md) calc(var(--borderRadius-xs) * 0.8)
190
+ calc(var(--borderRadius-xs) * 0.8) var(--borderRadius-md) !important;
191
+ }
192
+
193
+ .cell[data-unavailable="true"],
194
+ .cell:disabled {
195
+ opacity: 0.35;
196
+ cursor: not-allowed;
197
+ text-decoration: line-through;
198
+ }
199
+
200
+ .cell:focus-visible {
201
+ outline: 2px solid var(--md-sys-color-primary);
202
+ outline-offset: 1px;
203
+ }