@pathscale/ui 1.2.10 → 1.3.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 +22 -22
- package/README.md +132 -59
- package/dist/components/accordion/Accordion.css +158 -158
- package/dist/components/alert/Alert.css +116 -116
- package/dist/components/avatar/Avatar.css +124 -124
- package/dist/components/badge/Badge.css +164 -164
- package/dist/components/breadcrumbs/Breadcrumbs.css +63 -63
- package/dist/components/button/Button.css +194 -194
- package/dist/components/button-group/ButtonGroup.css +117 -117
- package/dist/components/calendar/Calendar.css +258 -258
- package/dist/components/card/Card.css +110 -110
- package/dist/components/chatbubble/ChatBubble.css +164 -164
- package/dist/components/checkbox/Checkbox.css +183 -183
- package/dist/components/checkbox-group/CheckboxGroup.css +10 -10
- package/dist/components/chip/Chip.css +197 -197
- package/dist/components/close-button/CloseButton.css +81 -81
- package/dist/components/color-area/ColorArea.css +54 -54
- package/dist/components/color-field/ColorField.css +88 -88
- package/dist/components/color-picker/ColorPicker.css +28 -28
- package/dist/components/color-slider/ColorSlider.css +57 -57
- package/dist/components/color-swatch/ColorSwatch.css +84 -84
- package/dist/components/color-swatch-picker/ColorSwatchPicker.css +12 -12
- package/dist/components/color-wheel-flower/ColorWheelFlower.css +147 -147
- package/dist/components/combo-box/ComboBox.css +344 -344
- package/dist/components/date-field/DateField.css +215 -215
- package/dist/components/date-picker/DatePicker.css +143 -143
- package/dist/components/date-range-picker/DateRangePicker.css +149 -149
- package/dist/components/description/Description.css +10 -10
- package/dist/components/disclosure/Disclosure.css +84 -84
- package/dist/components/disclosure-group/DisclosureGroup.css +9 -9
- package/dist/components/drawer/Drawer.css +463 -463
- package/dist/components/dropdown/Dropdown.css +211 -211
- package/dist/components/empty-state/EmptyState.css +39 -39
- package/dist/components/error-message/ErrorMessage.css +20 -20
- package/dist/components/field-error/FieldError.css +27 -27
- package/dist/components/fieldset/Fieldset.css +30 -30
- package/dist/components/flex/Flex.css +5 -5
- package/dist/components/floating-dock/FloatingDock.css +208 -208
- package/dist/components/footer/footer.css +51 -51
- package/dist/components/form/Form.css +5 -5
- package/dist/components/glass-panel/GlassPanel.css +359 -359
- package/dist/components/glow-card/GlowCard.css +100 -100
- package/dist/components/grid/Grid.css +5 -5
- package/dist/components/header/Header.css +13 -13
- package/dist/components/icon/Icon.css +10 -10
- package/dist/components/immersive-landing/ImmersiveLanding.css +565 -565
- package/dist/components/input/Input.css +155 -155
- package/dist/components/input-group/InputGroup.css +172 -172
- package/dist/components/input-otp/InputOTP.css +170 -170
- package/dist/components/kbd/Kbd.css +60 -60
- package/dist/components/label/Label.css +30 -30
- package/dist/components/language-switcher/LanguageSwitcher.css +56 -56
- package/dist/components/language-switcher/createI18n.d.ts +2 -1
- package/dist/components/link/Link.css +131 -131
- package/dist/components/list-box/ListBox.css +148 -148
- package/dist/components/live-chat/LiveChat.css +324 -324
- package/dist/components/menu/Menu.css +199 -199
- package/dist/components/metal-border/MetalBorder.classes.d.ts +26 -0
- package/dist/components/metal-border/MetalBorder.classes.js +27 -0
- package/dist/components/metal-border/MetalBorder.css +40 -0
- package/dist/components/metal-border/MetalBorder.d.ts +20 -0
- package/dist/components/metal-border/MetalBorder.js +322 -0
- package/dist/components/metal-border/engine/color.d.ts +4 -0
- package/dist/components/metal-border/engine/color.js +69 -0
- package/dist/components/metal-border/engine/glow/geometry.d.ts +35 -0
- package/dist/components/metal-border/engine/glow/geometry.js +176 -0
- package/dist/components/metal-border/engine/glow/glow.d.ts +38 -0
- package/dist/components/metal-border/engine/glow/glow.js +246 -0
- package/dist/components/metal-border/engine/index.d.ts +4 -0
- package/dist/components/metal-border/engine/index.js +2 -0
- package/dist/components/metal-border/engine/perfConfig.d.ts +9 -0
- package/dist/components/metal-border/engine/perfConfig.js +10 -0
- package/dist/components/metal-border/engine/presets.d.ts +57 -0
- package/dist/components/metal-border/engine/presets.js +214 -0
- package/dist/components/metal-border/engine/renderer/core.d.ts +69 -0
- package/dist/components/metal-border/engine/renderer/core.js +156 -0
- package/dist/components/metal-border/engine/renderer/loop.d.ts +30 -0
- package/dist/components/metal-border/engine/renderer/loop.js +248 -0
- package/dist/components/metal-border/engine/renderer/sampling.d.ts +14 -0
- package/dist/components/metal-border/engine/renderer/sampling.js +145 -0
- package/dist/components/metal-border/engine/shaders.d.ts +36 -0
- package/dist/components/metal-border/engine/shaders.js +215 -0
- package/dist/components/metal-border/engine/tween.d.ts +17 -0
- package/dist/components/metal-border/engine/tween.js +28 -0
- package/dist/components/metal-border/index.d.ts +2 -0
- package/dist/components/metal-border/index.js +1 -0
- package/dist/components/meter/Meter.css +89 -89
- package/dist/components/modal/Modal.css +320 -320
- package/dist/components/navbar/Navbar.css +110 -110
- package/dist/components/noise-background/NoiseBackground.css +66 -66
- package/dist/components/number-field/NumberField.css +198 -198
- package/dist/components/pagination/Pagination.css +121 -121
- package/dist/components/popover/Popover.css +117 -117
- package/dist/components/progress-bar/ProgressBar.css +104 -104
- package/dist/components/progress-circle/ProgressCircle.css +82 -82
- package/dist/components/radio/Radio.css +129 -129
- package/dist/components/radio-group/RadioGroup.css +58 -58
- package/dist/components/range-calendar/RangeCalendar.css +51 -51
- package/dist/components/scroll-shadow/ScrollShadow.css +93 -93
- package/dist/components/search-field/SearchField.css +183 -183
- package/dist/components/select/Select.css +284 -284
- package/dist/components/separator/Separator.css +35 -35
- package/dist/components/skeleton/Skeleton.css +95 -95
- package/dist/components/slider/Slider.css +122 -122
- package/dist/components/spinner/Spinner.css +131 -131
- package/dist/components/surface/Surface.css +37 -37
- package/dist/components/table/Table.css +426 -426
- package/dist/components/tabs/Tabs.css +203 -203
- package/dist/components/tag/Tag.css +121 -121
- package/dist/components/tag-group/TagGroup.css +22 -22
- package/dist/components/text/Text.css +66 -66
- package/dist/components/text-area/TextArea.css +95 -95
- package/dist/components/text-field/TextField.css +33 -33
- package/dist/components/time-field/TimeField.css +215 -215
- package/dist/components/toast/Toast.css +344 -344
- package/dist/components/toggle/Toggle.css +237 -237
- package/dist/components/toolbar/Toolbar.css +55 -55
- package/dist/components/tooltip/Tooltip.css +153 -153
- package/dist/index.css +74 -74
- package/dist/index.d.ts +2 -0
- package/dist/index.js +1 -0
- package/dist/purge-manifest.json +15836 -15583
- package/dist/styles/base/index.css +43 -43
- package/dist/styles/themes/dark.css +141 -141
- package/dist/styles/themes/light.css +143 -143
- package/package.json +17 -8
|
@@ -1,88 +1,88 @@
|
|
|
1
|
-
@layer components {
|
|
2
|
-
.color-field {
|
|
3
|
-
display: flex;
|
|
4
|
-
flex-direction: column;
|
|
5
|
-
gap: 0.25rem;
|
|
6
|
-
width: fit-content;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
.color-field--full-width {
|
|
10
|
-
width: 100%;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
.color-field__group {
|
|
14
|
-
position: relative;
|
|
15
|
-
display: inline-flex;
|
|
16
|
-
height: 2.25rem;
|
|
17
|
-
width: fit-content;
|
|
18
|
-
min-width: 7rem;
|
|
19
|
-
align-items: center;
|
|
20
|
-
overflow: hidden;
|
|
21
|
-
border-radius: 0.75rem;
|
|
22
|
-
border: 1px solid var(--color-base-300);
|
|
23
|
-
background-color: var(--color-base-100);
|
|
24
|
-
color: var(--color-base-content);
|
|
25
|
-
box-shadow: 0 1px 0 oklch(100% 0 0 / calc(var(--depth) * 0.1)) inset;
|
|
26
|
-
transition:
|
|
27
|
-
background-color 150ms ease,
|
|
28
|
-
border-color 150ms ease,
|
|
29
|
-
box-shadow 150ms ease;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
.color-field__group--full-width {
|
|
33
|
-
width: 100%;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
@media (hover: hover) {
|
|
37
|
-
.color-field__group:hover:not(:focus-within):not([data-disabled="true"]) {
|
|
38
|
-
background-color: var(--color-base-200);
|
|
39
|
-
border-color: color-mix(in oklab, var(--color-base-content) 22%, transparent);
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
.color-field__group:focus-within {
|
|
44
|
-
border-color: var(--color-accent);
|
|
45
|
-
box-shadow: 0 0 0 3px color-mix(in oklab, var(--color-accent) 24%, transparent);
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
.color-field__group--invalid,
|
|
49
|
-
.color-field__group[data-invalid="true"] {
|
|
50
|
-
border-color: var(--color-error);
|
|
51
|
-
background-color: var(--color-base-100);
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
.color-field__group--invalid:focus-within,
|
|
55
|
-
.color-field__group[data-invalid="true"]:focus-within {
|
|
56
|
-
box-shadow: 0 0 0 3px color-mix(in oklab, var(--color-error) 24%, transparent);
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
.color-field__group[data-disabled="true"] {
|
|
60
|
-
cursor: not-allowed;
|
|
61
|
-
border-color: var(--color-base-300);
|
|
62
|
-
background-color: var(--color-base-200);
|
|
63
|
-
color: color-mix(in oklab, var(--color-base-content) 55%, transparent);
|
|
64
|
-
box-shadow: none;
|
|
65
|
-
opacity: 0.85;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
.color-field__input {
|
|
69
|
-
width: 100%;
|
|
70
|
-
height: 100%;
|
|
71
|
-
border: 0;
|
|
72
|
-
background: transparent;
|
|
73
|
-
color: inherit;
|
|
74
|
-
font-size: 0.875rem;
|
|
75
|
-
line-height: 1.25rem;
|
|
76
|
-
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
|
|
77
|
-
padding-inline: 0.75rem;
|
|
78
|
-
outline: none;
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
.color-field__input::placeholder {
|
|
82
|
-
color: color-mix(in oklab, var(--color-base-content) 45%, transparent);
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
.color-field__input:disabled {
|
|
86
|
-
cursor: not-allowed;
|
|
87
|
-
}
|
|
88
|
-
}
|
|
1
|
+
@layer components {
|
|
2
|
+
.color-field {
|
|
3
|
+
display: flex;
|
|
4
|
+
flex-direction: column;
|
|
5
|
+
gap: 0.25rem;
|
|
6
|
+
width: fit-content;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.color-field--full-width {
|
|
10
|
+
width: 100%;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.color-field__group {
|
|
14
|
+
position: relative;
|
|
15
|
+
display: inline-flex;
|
|
16
|
+
height: 2.25rem;
|
|
17
|
+
width: fit-content;
|
|
18
|
+
min-width: 7rem;
|
|
19
|
+
align-items: center;
|
|
20
|
+
overflow: hidden;
|
|
21
|
+
border-radius: 0.75rem;
|
|
22
|
+
border: 1px solid var(--color-base-300);
|
|
23
|
+
background-color: var(--color-base-100);
|
|
24
|
+
color: var(--color-base-content);
|
|
25
|
+
box-shadow: 0 1px 0 oklch(100% 0 0 / calc(var(--depth) * 0.1)) inset;
|
|
26
|
+
transition:
|
|
27
|
+
background-color 150ms ease,
|
|
28
|
+
border-color 150ms ease,
|
|
29
|
+
box-shadow 150ms ease;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.color-field__group--full-width {
|
|
33
|
+
width: 100%;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
@media (hover: hover) {
|
|
37
|
+
.color-field__group:hover:not(:focus-within):not([data-disabled="true"]) {
|
|
38
|
+
background-color: var(--color-base-200);
|
|
39
|
+
border-color: color-mix(in oklab, var(--color-base-content) 22%, transparent);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.color-field__group:focus-within {
|
|
44
|
+
border-color: var(--color-accent);
|
|
45
|
+
box-shadow: 0 0 0 3px color-mix(in oklab, var(--color-accent) 24%, transparent);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.color-field__group--invalid,
|
|
49
|
+
.color-field__group[data-invalid="true"] {
|
|
50
|
+
border-color: var(--color-error);
|
|
51
|
+
background-color: var(--color-base-100);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.color-field__group--invalid:focus-within,
|
|
55
|
+
.color-field__group[data-invalid="true"]:focus-within {
|
|
56
|
+
box-shadow: 0 0 0 3px color-mix(in oklab, var(--color-error) 24%, transparent);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.color-field__group[data-disabled="true"] {
|
|
60
|
+
cursor: not-allowed;
|
|
61
|
+
border-color: var(--color-base-300);
|
|
62
|
+
background-color: var(--color-base-200);
|
|
63
|
+
color: color-mix(in oklab, var(--color-base-content) 55%, transparent);
|
|
64
|
+
box-shadow: none;
|
|
65
|
+
opacity: 0.85;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.color-field__input {
|
|
69
|
+
width: 100%;
|
|
70
|
+
height: 100%;
|
|
71
|
+
border: 0;
|
|
72
|
+
background: transparent;
|
|
73
|
+
color: inherit;
|
|
74
|
+
font-size: 0.875rem;
|
|
75
|
+
line-height: 1.25rem;
|
|
76
|
+
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
|
|
77
|
+
padding-inline: 0.75rem;
|
|
78
|
+
outline: none;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.color-field__input::placeholder {
|
|
82
|
+
color: color-mix(in oklab, var(--color-base-content) 45%, transparent);
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.color-field__input:disabled {
|
|
86
|
+
cursor: not-allowed;
|
|
87
|
+
}
|
|
88
|
+
}
|
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
@layer components {
|
|
2
|
-
.color-picker {
|
|
3
|
-
display: flex;
|
|
4
|
-
flex-direction: column;
|
|
5
|
-
gap: 0.75rem;
|
|
6
|
-
width: fit-content;
|
|
7
|
-
min-width: 14rem;
|
|
8
|
-
max-width: 100%;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
.color-picker[data-disabled="true"] {
|
|
12
|
-
opacity: 0.9;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
.color-picker__area {
|
|
16
|
-
width: 100%;
|
|
17
|
-
max-width: 14rem;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
.color-picker__slider {
|
|
21
|
-
width: 100%;
|
|
22
|
-
max-width: 14rem;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
.color-picker__field {
|
|
26
|
-
width: 100%;
|
|
27
|
-
}
|
|
28
|
-
}
|
|
1
|
+
@layer components {
|
|
2
|
+
.color-picker {
|
|
3
|
+
display: flex;
|
|
4
|
+
flex-direction: column;
|
|
5
|
+
gap: 0.75rem;
|
|
6
|
+
width: fit-content;
|
|
7
|
+
min-width: 14rem;
|
|
8
|
+
max-width: 100%;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.color-picker[data-disabled="true"] {
|
|
12
|
+
opacity: 0.9;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.color-picker__area {
|
|
16
|
+
width: 100%;
|
|
17
|
+
max-width: 14rem;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.color-picker__slider {
|
|
21
|
+
width: 100%;
|
|
22
|
+
max-width: 14rem;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.color-picker__field {
|
|
26
|
+
width: 100%;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
@@ -1,57 +1,57 @@
|
|
|
1
|
-
@layer components {
|
|
2
|
-
.color-slider {
|
|
3
|
-
position: relative;
|
|
4
|
-
width: 100%;
|
|
5
|
-
min-width: 10rem;
|
|
6
|
-
height: 1.25rem;
|
|
7
|
-
border-radius: 9999px;
|
|
8
|
-
cursor: pointer;
|
|
9
|
-
outline: none;
|
|
10
|
-
user-select: none;
|
|
11
|
-
-webkit-tap-highlight-color: transparent;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
.color-slider[data-disabled="true"] {
|
|
15
|
-
cursor: not-allowed;
|
|
16
|
-
opacity: 0.55;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
.color-slider__track {
|
|
20
|
-
position: absolute;
|
|
21
|
-
inset: 0;
|
|
22
|
-
border-radius: inherit;
|
|
23
|
-
background: var(--color-slider-track-background);
|
|
24
|
-
box-shadow: inset 0 0 0 1px oklch(0% 0 0 / 0.12);
|
|
25
|
-
overflow: hidden;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
.color-slider__thumb {
|
|
29
|
-
position: absolute;
|
|
30
|
-
top: 50%;
|
|
31
|
-
width: 1rem;
|
|
32
|
-
height: 1rem;
|
|
33
|
-
border-radius: 9999px;
|
|
34
|
-
border: 2px solid #ffffff;
|
|
35
|
-
box-shadow:
|
|
36
|
-
0 1px 2px oklch(0% 0 0 / 0.24),
|
|
37
|
-
0 0 0 1px oklch(0% 0 0 / 0.18);
|
|
38
|
-
transform: translate(-50%, -50%);
|
|
39
|
-
transition:
|
|
40
|
-
width 140ms ease,
|
|
41
|
-
height 140ms ease,
|
|
42
|
-
box-shadow 140ms ease;
|
|
43
|
-
pointer-events: none;
|
|
44
|
-
z-index: 1;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
.color-slider--dragging .color-slider__thumb,
|
|
48
|
-
.color-slider__thumb[data-dragging="true"] {
|
|
49
|
-
width: 1.125rem;
|
|
50
|
-
height: 1.125rem;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
.color-slider:focus-visible,
|
|
54
|
-
.color-slider[data-focus-visible="true"] {
|
|
55
|
-
box-shadow: 0 0 0 3px color-mix(in oklab, var(--color-accent) 22%, transparent);
|
|
56
|
-
}
|
|
57
|
-
}
|
|
1
|
+
@layer components {
|
|
2
|
+
.color-slider {
|
|
3
|
+
position: relative;
|
|
4
|
+
width: 100%;
|
|
5
|
+
min-width: 10rem;
|
|
6
|
+
height: 1.25rem;
|
|
7
|
+
border-radius: 9999px;
|
|
8
|
+
cursor: pointer;
|
|
9
|
+
outline: none;
|
|
10
|
+
user-select: none;
|
|
11
|
+
-webkit-tap-highlight-color: transparent;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.color-slider[data-disabled="true"] {
|
|
15
|
+
cursor: not-allowed;
|
|
16
|
+
opacity: 0.55;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.color-slider__track {
|
|
20
|
+
position: absolute;
|
|
21
|
+
inset: 0;
|
|
22
|
+
border-radius: inherit;
|
|
23
|
+
background: var(--color-slider-track-background);
|
|
24
|
+
box-shadow: inset 0 0 0 1px oklch(0% 0 0 / 0.12);
|
|
25
|
+
overflow: hidden;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.color-slider__thumb {
|
|
29
|
+
position: absolute;
|
|
30
|
+
top: 50%;
|
|
31
|
+
width: 1rem;
|
|
32
|
+
height: 1rem;
|
|
33
|
+
border-radius: 9999px;
|
|
34
|
+
border: 2px solid #ffffff;
|
|
35
|
+
box-shadow:
|
|
36
|
+
0 1px 2px oklch(0% 0 0 / 0.24),
|
|
37
|
+
0 0 0 1px oklch(0% 0 0 / 0.18);
|
|
38
|
+
transform: translate(-50%, -50%);
|
|
39
|
+
transition:
|
|
40
|
+
width 140ms ease,
|
|
41
|
+
height 140ms ease,
|
|
42
|
+
box-shadow 140ms ease;
|
|
43
|
+
pointer-events: none;
|
|
44
|
+
z-index: 1;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.color-slider--dragging .color-slider__thumb,
|
|
48
|
+
.color-slider__thumb[data-dragging="true"] {
|
|
49
|
+
width: 1.125rem;
|
|
50
|
+
height: 1.125rem;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.color-slider:focus-visible,
|
|
54
|
+
.color-slider[data-focus-visible="true"] {
|
|
55
|
+
box-shadow: 0 0 0 3px color-mix(in oklab, var(--color-accent) 22%, transparent);
|
|
56
|
+
}
|
|
57
|
+
}
|
|
@@ -1,84 +1,84 @@
|
|
|
1
|
-
@layer components {
|
|
2
|
-
.color-swatch {
|
|
3
|
-
position: relative;
|
|
4
|
-
box-sizing: border-box;
|
|
5
|
-
width: 2rem;
|
|
6
|
-
height: 2rem;
|
|
7
|
-
flex-shrink: 0;
|
|
8
|
-
cursor: pointer;
|
|
9
|
-
background:
|
|
10
|
-
linear-gradient(var(--color-swatch-current), var(--color-swatch-current)),
|
|
11
|
-
repeating-conic-gradient(#efefef 0% 25%, #f7f7f7 0% 50%) 50% / 1rem 1rem;
|
|
12
|
-
box-shadow: inset 0 0 0 1px oklch(0% 0 0 / 0.14);
|
|
13
|
-
transition:
|
|
14
|
-
transform 140ms ease,
|
|
15
|
-
box-shadow 140ms ease,
|
|
16
|
-
opacity 140ms ease;
|
|
17
|
-
outline: none;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
.color-swatch:hover:not([data-disabled="true"]) {
|
|
21
|
-
transform: scale(1.03);
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
.color-swatch[data-selected="true"] {
|
|
25
|
-
box-shadow:
|
|
26
|
-
0 0 0 2px var(--color-base-100),
|
|
27
|
-
0 0 0 4px var(--color-accent),
|
|
28
|
-
inset 0 0 0 1px oklch(0% 0 0 / 0.14);
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
.color-swatch:focus-visible,
|
|
32
|
-
.color-swatch[data-focus-visible="true"] {
|
|
33
|
-
box-shadow:
|
|
34
|
-
0 0 0 3px color-mix(in oklab, var(--color-accent) 24%, transparent),
|
|
35
|
-
inset 0 0 0 1px oklch(0% 0 0 / 0.14);
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
.color-swatch[data-selected="true"]:focus-visible,
|
|
39
|
-
.color-swatch[data-selected="true"][data-focus-visible="true"] {
|
|
40
|
-
box-shadow:
|
|
41
|
-
0 0 0 2px var(--color-base-100),
|
|
42
|
-
0 0 0 4px var(--color-accent),
|
|
43
|
-
0 0 0 7px color-mix(in oklab, var(--color-accent) 24%, transparent),
|
|
44
|
-
inset 0 0 0 1px oklch(0% 0 0 / 0.14);
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
.color-swatch[data-disabled="true"] {
|
|
48
|
-
cursor: not-allowed;
|
|
49
|
-
opacity: 0.45;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
.color-swatch--circle {
|
|
53
|
-
border-radius: 9999px;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
.color-swatch--square {
|
|
57
|
-
border-radius: 0.5rem;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
.color-swatch--xs {
|
|
61
|
-
width: 1rem;
|
|
62
|
-
height: 1rem;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
.color-swatch--sm {
|
|
66
|
-
width: 1.5rem;
|
|
67
|
-
height: 1.5rem;
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
.color-swatch--md {
|
|
71
|
-
width: 2rem;
|
|
72
|
-
height: 2rem;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
.color-swatch--lg {
|
|
76
|
-
width: 2.25rem;
|
|
77
|
-
height: 2.25rem;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
.color-swatch--xl {
|
|
81
|
-
width: 2.5rem;
|
|
82
|
-
height: 2.5rem;
|
|
83
|
-
}
|
|
84
|
-
}
|
|
1
|
+
@layer components {
|
|
2
|
+
.color-swatch {
|
|
3
|
+
position: relative;
|
|
4
|
+
box-sizing: border-box;
|
|
5
|
+
width: 2rem;
|
|
6
|
+
height: 2rem;
|
|
7
|
+
flex-shrink: 0;
|
|
8
|
+
cursor: pointer;
|
|
9
|
+
background:
|
|
10
|
+
linear-gradient(var(--color-swatch-current), var(--color-swatch-current)),
|
|
11
|
+
repeating-conic-gradient(#efefef 0% 25%, #f7f7f7 0% 50%) 50% / 1rem 1rem;
|
|
12
|
+
box-shadow: inset 0 0 0 1px oklch(0% 0 0 / 0.14);
|
|
13
|
+
transition:
|
|
14
|
+
transform 140ms ease,
|
|
15
|
+
box-shadow 140ms ease,
|
|
16
|
+
opacity 140ms ease;
|
|
17
|
+
outline: none;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.color-swatch:hover:not([data-disabled="true"]) {
|
|
21
|
+
transform: scale(1.03);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.color-swatch[data-selected="true"] {
|
|
25
|
+
box-shadow:
|
|
26
|
+
0 0 0 2px var(--color-base-100),
|
|
27
|
+
0 0 0 4px var(--color-accent),
|
|
28
|
+
inset 0 0 0 1px oklch(0% 0 0 / 0.14);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.color-swatch:focus-visible,
|
|
32
|
+
.color-swatch[data-focus-visible="true"] {
|
|
33
|
+
box-shadow:
|
|
34
|
+
0 0 0 3px color-mix(in oklab, var(--color-accent) 24%, transparent),
|
|
35
|
+
inset 0 0 0 1px oklch(0% 0 0 / 0.14);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.color-swatch[data-selected="true"]:focus-visible,
|
|
39
|
+
.color-swatch[data-selected="true"][data-focus-visible="true"] {
|
|
40
|
+
box-shadow:
|
|
41
|
+
0 0 0 2px var(--color-base-100),
|
|
42
|
+
0 0 0 4px var(--color-accent),
|
|
43
|
+
0 0 0 7px color-mix(in oklab, var(--color-accent) 24%, transparent),
|
|
44
|
+
inset 0 0 0 1px oklch(0% 0 0 / 0.14);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.color-swatch[data-disabled="true"] {
|
|
48
|
+
cursor: not-allowed;
|
|
49
|
+
opacity: 0.45;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.color-swatch--circle {
|
|
53
|
+
border-radius: 9999px;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.color-swatch--square {
|
|
57
|
+
border-radius: 0.5rem;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.color-swatch--xs {
|
|
61
|
+
width: 1rem;
|
|
62
|
+
height: 1rem;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.color-swatch--sm {
|
|
66
|
+
width: 1.5rem;
|
|
67
|
+
height: 1.5rem;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.color-swatch--md {
|
|
71
|
+
width: 2rem;
|
|
72
|
+
height: 2rem;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.color-swatch--lg {
|
|
76
|
+
width: 2.25rem;
|
|
77
|
+
height: 2.25rem;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.color-swatch--xl {
|
|
81
|
+
width: 2.5rem;
|
|
82
|
+
height: 2.5rem;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
@layer components {
|
|
2
|
-
.color-swatch-picker {
|
|
3
|
-
display: inline-flex;
|
|
4
|
-
flex-wrap: wrap;
|
|
5
|
-
align-items: center;
|
|
6
|
-
gap: 0.5rem;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
.color-swatch-picker[data-disabled="true"] {
|
|
10
|
-
opacity: 0.7;
|
|
11
|
-
}
|
|
12
|
-
}
|
|
1
|
+
@layer components {
|
|
2
|
+
.color-swatch-picker {
|
|
3
|
+
display: inline-flex;
|
|
4
|
+
flex-wrap: wrap;
|
|
5
|
+
align-items: center;
|
|
6
|
+
gap: 0.5rem;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.color-swatch-picker[data-disabled="true"] {
|
|
10
|
+
opacity: 0.7;
|
|
11
|
+
}
|
|
12
|
+
}
|