cetec-design-system 1.1.0 → 1.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/dist/{cetec-preset-BCioTXu9.js → cetec-preset-kUkA_FyU.js} +160 -169
- package/dist/cetec-preset-kUkA_FyU.js.map +1 -0
- package/dist/index.js +868 -806
- package/dist/index.js.map +1 -1
- package/dist/panda.buildinfo.json +135 -6
- package/dist/preset.js +1 -1
- package/dist/specs/conditions.json +53 -53
- package/dist/specs/recipes.json +322 -267
- package/dist/styles.css +8192 -7522
- package/dist/types/index.d.ts +60 -55
- package/package.json +1 -1
- package/src/recipes/icon.ts +17 -6
- package/src/recipes/{index.ts → recipes-regular.ts} +0 -16
- package/src/recipes/recipes-slot.ts +14 -0
- package/src/recipes/textInput.ts +22 -0
- package/src/styles/utilities/conditions.ts +57 -53
- package/dist/cetec-preset-BCioTXu9.js.map +0 -1
package/dist/types/index.d.ts
CHANGED
|
@@ -439,7 +439,7 @@ declare interface Conditions {
|
|
|
439
439
|
"_focusWithin": string
|
|
440
440
|
/** `&:is(:focus-visible, [data-focus-visible=true])` */
|
|
441
441
|
"_focusVisible": string
|
|
442
|
-
/** `&:is(:disabled, [disabled], [data-disabled], [aria-disabled=true])` */
|
|
442
|
+
/** `&:is(:disabled, [disabled], [data-disabled=true], [aria-disabled=true])` */
|
|
443
443
|
"_disabled": string
|
|
444
444
|
/** `&:is(:active, [data-active=true])` */
|
|
445
445
|
"_active": string
|
|
@@ -447,25 +447,25 @@ declare interface Conditions {
|
|
|
447
447
|
"_visited": string
|
|
448
448
|
/** `&:target` */
|
|
449
449
|
"_target": string
|
|
450
|
-
/** `&:is(:read-only, [data-read-only], [aria-readonly=true])` */
|
|
450
|
+
/** `&:is(:read-only, [readonly], [data-read-only=true], [aria-readonly=true])` */
|
|
451
451
|
"_readOnly": string
|
|
452
452
|
/** `&:read-write` */
|
|
453
453
|
"_readWrite": string
|
|
454
|
-
/** `&:is(:empty, [data-empty])` */
|
|
454
|
+
/** `&:is(:empty, [data-empty=true])` */
|
|
455
455
|
"_empty": string
|
|
456
|
-
/** `&:is(:checked, [data-checked], [aria-checked=true], [data-state="checked"])` */
|
|
456
|
+
/** `&:is(:checked, [data-checked=true], [aria-checked=true], [data-state="checked"])` */
|
|
457
457
|
"_checked": string
|
|
458
458
|
/** `&:enabled` */
|
|
459
459
|
"_enabled": string
|
|
460
|
-
/** `&:is([aria-expanded=true], [data-expanded], [data-state="expanded"])` */
|
|
460
|
+
/** `&:is([aria-expanded=true], [data-expanded=true], [data-state="expanded"])` */
|
|
461
461
|
"_expanded": string
|
|
462
|
-
/** `&[data-highlighted]` */
|
|
462
|
+
/** `&[data-highlighted=true]` */
|
|
463
463
|
"_highlighted": string
|
|
464
|
-
/** `&[data-complete]` */
|
|
464
|
+
/** `&[data-complete=true]` */
|
|
465
465
|
"_complete": string
|
|
466
|
-
/** `&[data-incomplete]` */
|
|
466
|
+
/** `&[data-incomplete=true]` */
|
|
467
467
|
"_incomplete": string
|
|
468
|
-
/** `&[data-dragging]` */
|
|
468
|
+
/** `&[data-dragging=true]` */
|
|
469
469
|
"_dragging": string
|
|
470
470
|
/** `&::before` */
|
|
471
471
|
"_before": string
|
|
@@ -499,105 +499,105 @@ declare interface Conditions {
|
|
|
499
499
|
"_lastOfType": string
|
|
500
500
|
/** `&:only-of-type` */
|
|
501
501
|
"_onlyOfType": string
|
|
502
|
-
/** `.peer:is(:focus, [data-focus]) ~ &` */
|
|
502
|
+
/** `.peer:is(:focus, [data-focus=true]) ~ &` */
|
|
503
503
|
"_peerFocus": string
|
|
504
|
-
/** `.peer:is(:hover, [data-hover]) ~ &` */
|
|
504
|
+
/** `.peer:is(:hover, [data-hover=true]) ~ &` */
|
|
505
505
|
"_peerHover": string
|
|
506
|
-
/** `.peer:is(:active, [data-active]) ~ &` */
|
|
506
|
+
/** `.peer:is(:active, [data-active=true]) ~ &` */
|
|
507
507
|
"_peerActive": string
|
|
508
508
|
/** `.peer:focus-within ~ &` */
|
|
509
509
|
"_peerFocusWithin": string
|
|
510
510
|
/** `.peer:is(:focus-visible, [data-focus-visible]) ~ &` */
|
|
511
511
|
"_peerFocusVisible": string
|
|
512
|
-
/** `.peer:is(:disabled, [disabled], [data-disabled], [aria-disabled=true]) ~ &` */
|
|
512
|
+
/** `.peer:is(:disabled, [disabled], [data-disabled=true], [aria-disabled=true]) ~ &` */
|
|
513
513
|
"_peerDisabled": string
|
|
514
|
-
/** `.peer:is(:checked, [data-checked], [aria-checked=true], [data-state="checked"]) ~ &` */
|
|
514
|
+
/** `.peer:is(:checked, [data-checked=true], [aria-checked=true], [data-state="checked"]) ~ &` */
|
|
515
515
|
"_peerChecked": string
|
|
516
|
-
/** `.peer:is(:invalid, [data-invalid], [aria-invalid=true]) ~ &` */
|
|
516
|
+
/** `.peer:is(:invalid, [data-invalid=true], [aria-invalid=true]) ~ &` */
|
|
517
517
|
"_peerInvalid": string
|
|
518
|
-
/** `.peer:is([aria-expanded=true], [data-expanded], [data-state="expanded"]) ~ &` */
|
|
518
|
+
/** `.peer:is([aria-expanded=true], [data-expanded=true], [data-state="expanded"]) ~ &` */
|
|
519
519
|
"_peerExpanded": string
|
|
520
520
|
/** `.peer:placeholder-shown ~ &` */
|
|
521
521
|
"_peerPlaceholderShown": string
|
|
522
|
-
/** `.group:is(:focus, [data-focus]) &` */
|
|
522
|
+
/** `.group:is(:focus, [data-focus=true]) &` */
|
|
523
523
|
"_groupFocus": string
|
|
524
|
-
/** `.group:is(:hover, [data-hover]) &` */
|
|
524
|
+
/** `.group:is(:hover, [data-hover=true]) &` */
|
|
525
525
|
"_groupHover": string
|
|
526
|
-
/** `.group:is(:active, [data-active]) &` */
|
|
526
|
+
/** `.group:is(:active, [data-active=true]) &` */
|
|
527
527
|
"_groupActive": string
|
|
528
528
|
/** `.group:focus-within &` */
|
|
529
529
|
"_groupFocusWithin": string
|
|
530
|
-
/** `.group:is(:focus-visible, [data-focus-visible]) &` */
|
|
530
|
+
/** `.group:is(:focus-visible, [data-focus-visible=true]) &` */
|
|
531
531
|
"_groupFocusVisible": string
|
|
532
|
-
/** `.group:is(:disabled, [disabled], [data-disabled], [aria-disabled=true]) &` */
|
|
532
|
+
/** `.group:is(:disabled, [disabled], [data-disabled=true], [aria-disabled=true]) &` */
|
|
533
533
|
"_groupDisabled": string
|
|
534
|
-
/** `.group:is(:checked, [data-checked], [aria-checked=true], [data-state="checked"]) &` */
|
|
534
|
+
/** `.group:is(:checked, [data-checked=true], [aria-checked=true], [data-state="checked"]) &` */
|
|
535
535
|
"_groupChecked": string
|
|
536
|
-
/** `.group:is([aria-expanded=true], [data-expanded], [data-state="expanded"]) &` */
|
|
536
|
+
/** `.group:is([aria-expanded=true], [data-expanded=true], [data-state="expanded"]) &` */
|
|
537
537
|
"_groupExpanded": string
|
|
538
|
-
/** `.group:is(:invalid, [data-invalid], [aria-invalid=true]) &` */
|
|
538
|
+
/** `.group:is(:invalid, [data-invalid=true], [aria-invalid=true]) &` */
|
|
539
539
|
"_groupInvalid": string
|
|
540
|
-
/** `&:is(:indeterminate, [data-indeterminate], [aria-checked=mixed], [data-state="indeterminate"])` */
|
|
540
|
+
/** `&:is(:indeterminate, [data-indeterminate=true], [aria-checked=mixed], [data-state="indeterminate"])` */
|
|
541
541
|
"_indeterminate": string
|
|
542
|
-
/** `&:is(:required, [data-required], [aria-required=true])` */
|
|
542
|
+
/** `&:is(:required, [data-required=true], [aria-required=true])` */
|
|
543
543
|
"_required": string
|
|
544
|
-
/** `&:is(:valid, [data-valid])` */
|
|
544
|
+
/** `&:is(:valid, [data-valid=true])` */
|
|
545
545
|
"_valid": string
|
|
546
|
-
/** `&:is(:invalid, [data-invalid], [aria-invalid=true])` */
|
|
546
|
+
/** `&:is(:invalid, [data-invalid=true], [aria-invalid=true])` */
|
|
547
547
|
"_invalid": string
|
|
548
548
|
/** `&:autofill` */
|
|
549
549
|
"_autofill": string
|
|
550
|
-
/** `&:is(:in-range, [data-in-range])` */
|
|
550
|
+
/** `&:is(:in-range, [data-in-range=true])` */
|
|
551
551
|
"_inRange": string
|
|
552
|
-
/** `&:is(:out-of-range, [data-outside-range])` */
|
|
552
|
+
/** `&:is(:out-of-range, [data-outside-range=true])` */
|
|
553
553
|
"_outOfRange": string
|
|
554
|
-
/** `&::placeholder, &[data-placeholder]` */
|
|
554
|
+
/** `&::placeholder, &[data-placeholder=true]` */
|
|
555
555
|
"_placeholder": string
|
|
556
|
-
/** `&:is(:placeholder-shown, [data-placeholder-shown])` */
|
|
556
|
+
/** `&:is(:placeholder-shown, [data-placeholder-shown=true])` */
|
|
557
557
|
"_placeholderShown": string
|
|
558
|
-
/** `&:is([aria-pressed=true], [data-pressed])` */
|
|
558
|
+
/** `&:is([aria-pressed=true], [data-pressed=true])` */
|
|
559
559
|
"_pressed": string
|
|
560
560
|
/** `&:is([aria-selected=true], [data-selected=true])` */
|
|
561
561
|
"_selected": string
|
|
562
|
-
/** `&:is([aria-grabbed=true], [data-grabbed])` */
|
|
562
|
+
/** `&:is([aria-grabbed=true], [data-grabbed=true])` */
|
|
563
563
|
"_grabbed": string
|
|
564
|
-
/** `&[data-state=under-value]` */
|
|
564
|
+
/** `&[data-state="under-value"]` */
|
|
565
565
|
"_underValue": string
|
|
566
|
-
/** `&[data-state=over-value]` */
|
|
566
|
+
/** `&[data-state="over-value"]` */
|
|
567
567
|
"_overValue": string
|
|
568
|
-
/** `&[data-state=at-value]` */
|
|
568
|
+
/** `&[data-state="at-value"]` */
|
|
569
569
|
"_atValue": string
|
|
570
570
|
/** `&:default` */
|
|
571
571
|
"_default": string
|
|
572
572
|
/** `&:optional` */
|
|
573
573
|
"_optional": string
|
|
574
|
-
/** `&:is([open], [data-open], [data-state="open"], :popover-open)` */
|
|
574
|
+
/** `&:is([open], [data-open=true], [data-state="open"], :popover-open)` */
|
|
575
575
|
"_open": string
|
|
576
|
-
/** `&:is([closed], [data-closed], [data-state="closed"])` */
|
|
576
|
+
/** `&:is([closed], [data-closed=true], [data-state="closed"])` */
|
|
577
577
|
"_closed": string
|
|
578
|
-
/** `&:is(:fullscreen, [data-fullscreen])` */
|
|
578
|
+
/** `&:is(:fullscreen, [data-fullscreen=true])` */
|
|
579
579
|
"_fullscreen": string
|
|
580
|
-
/** `&:is([data-loading], [aria-busy=true])` */
|
|
580
|
+
/** `&:is([data-loading=true], [aria-busy=true])` */
|
|
581
581
|
"_loading": string
|
|
582
|
-
/** `&:is([hidden], [data-hidden])` */
|
|
582
|
+
/** `&:is([hidden], [data-hidden=true])` */
|
|
583
583
|
"_hidden": string
|
|
584
|
-
/** `&:is([aria-current=true], [data-current])` */
|
|
584
|
+
/** `&:is([aria-current=true], [data-current=true])` */
|
|
585
585
|
"_current": string
|
|
586
586
|
/** `&[aria-current=page]` */
|
|
587
587
|
"_currentPage": string
|
|
588
588
|
/** `&[aria-current=step]` */
|
|
589
589
|
"_currentStep": string
|
|
590
|
-
/** `&:is([data-today])` */
|
|
590
|
+
/** `&:is([data-today=true])` */
|
|
591
591
|
"_today": string
|
|
592
|
-
/** `&[data-unavailable]` */
|
|
592
|
+
/** `&[data-unavailable=true]` */
|
|
593
593
|
"_unavailable": string
|
|
594
|
-
/** `&[data-range-start]` */
|
|
594
|
+
/** `&[data-range-start=true]` */
|
|
595
595
|
"_rangeStart": string
|
|
596
|
-
/** `&[data-range-end]` */
|
|
596
|
+
/** `&[data-range-end=true]` */
|
|
597
597
|
"_rangeEnd": string
|
|
598
|
-
/** `&[data-now]` */
|
|
598
|
+
/** `&[data-now=true]` */
|
|
599
599
|
"_now": string
|
|
600
|
-
/** `&[data-topmost]` */
|
|
600
|
+
/** `&[data-topmost=true]` */
|
|
601
601
|
"_topmost": string
|
|
602
602
|
/** `@media (prefers-reduced-motion: reduce)` */
|
|
603
603
|
"_motionReduce": string
|
|
@@ -609,9 +609,9 @@ declare interface Conditions {
|
|
|
609
609
|
"_landscape": string
|
|
610
610
|
/** `@media (orientation: portrait)` */
|
|
611
611
|
"_portrait": string
|
|
612
|
-
/** `.dark &, &:is([data-color-mode=dark] *), [data-color-mode=dark] &` */
|
|
612
|
+
/** `.dark &, &:is([data-color-mode="dark"] *), [data-color-mode="dark"] &` */
|
|
613
613
|
"_dark": string
|
|
614
|
-
/** `.light &, &:is([data-color-mode=light] *), [data-color-mode=light] &` */
|
|
614
|
+
/** `.light &, &:is([data-color-mode="light"] *), [data-color-mode="light"] &` */
|
|
615
615
|
"_light": string
|
|
616
616
|
/** `@media (prefers-color-scheme: dark)` */
|
|
617
617
|
"_osDark": string
|
|
@@ -647,11 +647,11 @@ declare interface Conditions {
|
|
|
647
647
|
"_invertedColors": string
|
|
648
648
|
/** `&:is(:deleted, [deleted], [data-deleted=true])` */
|
|
649
649
|
"_deleted": string
|
|
650
|
-
/** `&:is([aria-collapsed=true], [data-collapsed], [data-state="collapsed"])` */
|
|
650
|
+
/** `&:is([aria-collapsed=true], [data-collapsed=true], [data-state="collapsed"])` */
|
|
651
651
|
"_collapsed": string
|
|
652
652
|
/** `&[data-utility=true]` */
|
|
653
653
|
"_utility": string
|
|
654
|
-
/** `&:is([data-error
|
|
654
|
+
/** `&:is([data-error=true])` */
|
|
655
655
|
"_error": string
|
|
656
656
|
/** `&:is([data-paused=true])` */
|
|
657
657
|
"_paused": string
|
|
@@ -1952,7 +1952,10 @@ export declare type IconProviderProps = {
|
|
|
1952
1952
|
};
|
|
1953
1953
|
|
|
1954
1954
|
declare interface IconVariant {
|
|
1955
|
-
|
|
1955
|
+
/**
|
|
1956
|
+
* @default "24"
|
|
1957
|
+
*/
|
|
1958
|
+
size: "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "10" | "12" | "14" | "16" | "20" | "22" | "24" | "28" | "32" | "40" | "48" | "56" | "64" | "72" | "80" | "88" | "96" | "104" | "112" | "120" | "128" | "136" | "144" | "152" | "160" | "168" | "176" | "184" | "192" | "200" | "208" | "216" | "224" | "232" | "240" | "248" | "256" | "264" | "272" | "280"
|
|
1956
1959
|
}
|
|
1957
1960
|
|
|
1958
1961
|
declare type IconVariantProps = {
|
|
@@ -2175,7 +2178,7 @@ declare type MenuRootContextValue = {
|
|
|
2175
2178
|
diginDepth: number;
|
|
2176
2179
|
};
|
|
2177
2180
|
|
|
2178
|
-
declare type MenuTriggerInteraction = 'click' | 'hover';
|
|
2181
|
+
declare type MenuTriggerInteraction = 'click' | 'hover' | 'click-and-hover';
|
|
2179
2182
|
|
|
2180
2183
|
declare interface MenuVariant {
|
|
2181
2184
|
/**
|
|
@@ -19371,6 +19374,8 @@ declare type TextInputProps = Omit<BoxProps, keyof TextInputVariantProps> & Omit
|
|
|
19371
19374
|
iconAfter?: IconNamesList;
|
|
19372
19375
|
error?: boolean;
|
|
19373
19376
|
disabled?: boolean;
|
|
19377
|
+
valid?: boolean;
|
|
19378
|
+
invalid?: boolean;
|
|
19374
19379
|
type?: 'text' | 'number' | 'email' | 'password' | 'search' | 'tel' | 'url' | 'date' | 'time' | 'datetime-local' | 'month' | 'week';
|
|
19375
19380
|
};
|
|
19376
19381
|
|
package/package.json
CHANGED
package/src/recipes/icon.ts
CHANGED
|
@@ -1,13 +1,24 @@
|
|
|
1
1
|
import { defineRecipe } from '@pandacss/dev';
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
}
|
|
3
|
+
import type { AllowedIconSizes } from '~/components/Icon';
|
|
4
|
+
import { numericSizes } from '~/styles/primitives';
|
|
5
|
+
|
|
6
|
+
const sizeVariants = Object.fromEntries(
|
|
7
|
+
Object.keys(numericSizes).map((key) => [key, { w: key }]),
|
|
8
|
+
) as Record<AllowedIconSizes, { w: AllowedIconSizes }>;
|
|
8
9
|
|
|
9
10
|
export const iconRecipe = defineRecipe({
|
|
10
11
|
className: 'icon',
|
|
11
12
|
jsx: ['Icon'],
|
|
12
|
-
base:
|
|
13
|
+
base: {
|
|
14
|
+
aspectRatio: 'square',
|
|
15
|
+
fill: 'icon.decorative',
|
|
16
|
+
},
|
|
17
|
+
variants: {
|
|
18
|
+
size: sizeVariants,
|
|
19
|
+
},
|
|
20
|
+
defaultVariants: {
|
|
21
|
+
size: '24',
|
|
22
|
+
},
|
|
23
|
+
staticCss: [{ size: ['*'] }],
|
|
13
24
|
});
|
|
@@ -15,19 +15,3 @@ export { tagRecipe } from './tag';
|
|
|
15
15
|
export { radioInputRecipe } from './radioInput';
|
|
16
16
|
export { checkboxInputRecipe } from './checkboxInput';
|
|
17
17
|
export { iconRecipe } from './icon';
|
|
18
|
-
|
|
19
|
-
// Slot Recipes
|
|
20
|
-
export { buttonRecipe, iconButtonRecipe } from './button';
|
|
21
|
-
export { checkboxRecipe } from './checkbox';
|
|
22
|
-
export { radioRecipe } from './radio';
|
|
23
|
-
export { tooltipRecipe } from './tooltip';
|
|
24
|
-
export { menuRecipe } from './menu';
|
|
25
|
-
export { textInputRecipe } from './textInput';
|
|
26
|
-
export { formFieldRecipe } from './formField';
|
|
27
|
-
export { avatarRecipe } from './avatar';
|
|
28
|
-
export { badgeRecipe } from './badge';
|
|
29
|
-
export { chipRecipe } from './chip';
|
|
30
|
-
export { modalRecipe } from './modal';
|
|
31
|
-
export { datePickerRecipe } from './datePicker';
|
|
32
|
-
export { timePickerRecipe } from './timePicker';
|
|
33
|
-
export { breadcrumbsRecipe } from './breadcrumbs';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export { buttonRecipe, iconButtonRecipe } from './button';
|
|
2
|
+
export { checkboxRecipe } from './checkbox';
|
|
3
|
+
export { radioRecipe } from './radio';
|
|
4
|
+
export { tooltipRecipe } from './tooltip';
|
|
5
|
+
export { menuRecipe } from './menu';
|
|
6
|
+
export { textInputRecipe } from './textInput';
|
|
7
|
+
export { formFieldRecipe } from './formField';
|
|
8
|
+
export { avatarRecipe } from './avatar';
|
|
9
|
+
export { badgeRecipe } from './badge';
|
|
10
|
+
export { chipRecipe } from './chip';
|
|
11
|
+
export { modalRecipe } from './modal';
|
|
12
|
+
export { datePickerRecipe } from './datePicker';
|
|
13
|
+
export { timePickerRecipe } from './timePicker';
|
|
14
|
+
export { breadcrumbsRecipe } from './breadcrumbs';
|
package/src/recipes/textInput.ts
CHANGED
|
@@ -25,6 +25,20 @@ const textInputBase = {
|
|
|
25
25
|
outlineColor: 'border.danger',
|
|
26
26
|
},
|
|
27
27
|
},
|
|
28
|
+
_invalid: {
|
|
29
|
+
borderColor: 'border.danger',
|
|
30
|
+
_focusWithin: {
|
|
31
|
+
borderColor: 'border.danger',
|
|
32
|
+
outlineColor: 'border.danger',
|
|
33
|
+
},
|
|
34
|
+
},
|
|
35
|
+
_valid: {
|
|
36
|
+
borderColor: 'border.success',
|
|
37
|
+
_focusWithin: {
|
|
38
|
+
borderColor: 'border.success',
|
|
39
|
+
outlineColor: 'border.success',
|
|
40
|
+
},
|
|
41
|
+
},
|
|
28
42
|
_disabled: {
|
|
29
43
|
opacity: 0.4,
|
|
30
44
|
cursor: 'not-allowed',
|
|
@@ -33,6 +47,14 @@ const textInputBase = {
|
|
|
33
47
|
borderColor: 'border.input',
|
|
34
48
|
},
|
|
35
49
|
},
|
|
50
|
+
_readOnly: {
|
|
51
|
+
opacity: 0.4,
|
|
52
|
+
cursor: 'not-allowed',
|
|
53
|
+
_focusWithin: {
|
|
54
|
+
outlineColor: 'transparent',
|
|
55
|
+
borderColor: 'border.input',
|
|
56
|
+
},
|
|
57
|
+
},
|
|
36
58
|
_groupDisabled: {
|
|
37
59
|
opacity: 1, // let FormField handle disabled state opacity
|
|
38
60
|
},
|
|
@@ -4,25 +4,26 @@ export const conditions = {
|
|
|
4
4
|
focusWithin: '&:focus-within',
|
|
5
5
|
focusVisible: '&:is(:focus-visible, [data-focus-visible=true])',
|
|
6
6
|
disabled:
|
|
7
|
-
'&:is(:disabled, [disabled], [data-disabled], [aria-disabled=true])',
|
|
7
|
+
'&:is(:disabled, [disabled], [data-disabled=true], [aria-disabled=true])',
|
|
8
8
|
deleted: '&:is(:deleted, [deleted], [data-deleted=true])',
|
|
9
9
|
active: '&:is(:active, [data-active=true])',
|
|
10
10
|
visited: '&:visited',
|
|
11
11
|
target: '&:target',
|
|
12
|
-
readOnly:
|
|
12
|
+
readOnly:
|
|
13
|
+
'&:is(:read-only, [readonly], [data-read-only=true], [aria-readonly=true])',
|
|
13
14
|
readWrite: '&:read-write',
|
|
14
|
-
empty: '&:is(:empty, [data-empty])',
|
|
15
|
+
empty: '&:is(:empty, [data-empty=true])',
|
|
15
16
|
checked:
|
|
16
|
-
'&:is(:checked, [data-checked], [aria-checked=true], [data-state="checked"])',
|
|
17
|
+
'&:is(:checked, [data-checked=true], [aria-checked=true], [data-state="checked"])',
|
|
17
18
|
enabled: '&:enabled',
|
|
18
19
|
expanded:
|
|
19
|
-
'&:is([aria-expanded=true], [data-expanded], [data-state="expanded"])',
|
|
20
|
+
'&:is([aria-expanded=true], [data-expanded=true], [data-state="expanded"])',
|
|
20
21
|
collapsed:
|
|
21
|
-
'&:is([aria-collapsed=true], [data-collapsed], [data-state="collapsed"])',
|
|
22
|
-
highlighted: '&[data-highlighted]',
|
|
23
|
-
complete: '&[data-complete]',
|
|
24
|
-
incomplete: '&[data-incomplete]',
|
|
25
|
-
dragging: '&[data-dragging]',
|
|
22
|
+
'&:is([aria-collapsed=true], [data-collapsed=true], [data-state="collapsed"])',
|
|
23
|
+
highlighted: '&[data-highlighted=true]',
|
|
24
|
+
complete: '&[data-complete=true]',
|
|
25
|
+
incomplete: '&[data-incomplete=true]',
|
|
26
|
+
dragging: '&[data-dragging=true]',
|
|
26
27
|
utility: '&[data-utility=true]',
|
|
27
28
|
|
|
28
29
|
before: '&::before',
|
|
@@ -44,68 +45,70 @@ export const conditions = {
|
|
|
44
45
|
lastOfType: '&:last-of-type',
|
|
45
46
|
onlyOfType: '&:only-of-type',
|
|
46
47
|
|
|
47
|
-
peerFocus: '.peer:is(:focus, [data-focus]) ~ &',
|
|
48
|
-
peerHover: '.peer:is(:hover, [data-hover]) ~ &',
|
|
49
|
-
peerActive: '.peer:is(:active, [data-active]) ~ &',
|
|
48
|
+
peerFocus: '.peer:is(:focus, [data-focus=true]) ~ &',
|
|
49
|
+
peerHover: '.peer:is(:hover, [data-hover=true]) ~ &',
|
|
50
|
+
peerActive: '.peer:is(:active, [data-active=true]) ~ &',
|
|
50
51
|
peerFocusWithin: '.peer:focus-within ~ &',
|
|
51
52
|
peerFocusVisible: '.peer:is(:focus-visible, [data-focus-visible]) ~ &',
|
|
52
53
|
peerDisabled:
|
|
53
|
-
'.peer:is(:disabled, [disabled], [data-disabled], [aria-disabled=true]) ~ &',
|
|
54
|
+
'.peer:is(:disabled, [disabled], [data-disabled=true], [aria-disabled=true]) ~ &',
|
|
54
55
|
peerChecked:
|
|
55
|
-
'.peer:is(:checked, [data-checked], [aria-checked=true], [data-state="checked"]) ~ &',
|
|
56
|
-
peerInvalid:
|
|
56
|
+
'.peer:is(:checked, [data-checked=true], [aria-checked=true], [data-state="checked"]) ~ &',
|
|
57
|
+
peerInvalid:
|
|
58
|
+
'.peer:is(:invalid, [data-invalid=true], [aria-invalid=true]) ~ &',
|
|
57
59
|
peerExpanded:
|
|
58
|
-
'.peer:is([aria-expanded=true], [data-expanded], [data-state="expanded"]) ~ &',
|
|
60
|
+
'.peer:is([aria-expanded=true], [data-expanded=true], [data-state="expanded"]) ~ &',
|
|
59
61
|
peerPlaceholderShown: '.peer:placeholder-shown ~ &',
|
|
60
62
|
|
|
61
|
-
groupFocus: '.group:is(:focus, [data-focus]) &',
|
|
62
|
-
groupHover: '.group:is(:hover, [data-hover]) &',
|
|
63
|
-
groupActive: '.group:is(:active, [data-active]) &',
|
|
63
|
+
groupFocus: '.group:is(:focus, [data-focus=true]) &',
|
|
64
|
+
groupHover: '.group:is(:hover, [data-hover=true]) &',
|
|
65
|
+
groupActive: '.group:is(:active, [data-active=true]) &',
|
|
64
66
|
groupFocusWithin: '.group:focus-within &',
|
|
65
|
-
groupFocusVisible: '.group:is(:focus-visible, [data-focus-visible]) &',
|
|
67
|
+
groupFocusVisible: '.group:is(:focus-visible, [data-focus-visible=true]) &',
|
|
66
68
|
groupDisabled:
|
|
67
|
-
'.group:is(:disabled, [disabled], [data-disabled], [aria-disabled=true]) &',
|
|
69
|
+
'.group:is(:disabled, [disabled], [data-disabled=true], [aria-disabled=true]) &',
|
|
68
70
|
groupChecked:
|
|
69
|
-
'.group:is(:checked, [data-checked], [aria-checked=true], [data-state="checked"]) &',
|
|
71
|
+
'.group:is(:checked, [data-checked=true], [aria-checked=true], [data-state="checked"]) &',
|
|
70
72
|
groupExpanded:
|
|
71
|
-
'.group:is([aria-expanded=true], [data-expanded], [data-state="expanded"]) &',
|
|
72
|
-
groupInvalid:
|
|
73
|
+
'.group:is([aria-expanded=true], [data-expanded=true], [data-state="expanded"]) &',
|
|
74
|
+
groupInvalid:
|
|
75
|
+
'.group:is(:invalid, [data-invalid=true], [aria-invalid=true]) &',
|
|
73
76
|
|
|
74
77
|
indeterminate:
|
|
75
|
-
'&:is(:indeterminate, [data-indeterminate], [aria-checked=mixed], [data-state="indeterminate"])',
|
|
76
|
-
required: '&:is(:required, [data-required], [aria-required=true])',
|
|
77
|
-
valid: '&:is(:valid, [data-valid])',
|
|
78
|
-
invalid: '&:is(:invalid, [data-invalid], [aria-invalid=true])',
|
|
79
|
-
error: '&:is([data-error
|
|
78
|
+
'&:is(:indeterminate, [data-indeterminate=true], [aria-checked=mixed], [data-state="indeterminate"])',
|
|
79
|
+
required: '&:is(:required, [data-required=true], [aria-required=true])',
|
|
80
|
+
valid: '&:is(:valid, [data-valid=true])',
|
|
81
|
+
invalid: '&:is(:invalid, [data-invalid=true], [aria-invalid=true])',
|
|
82
|
+
error: '&:is([data-error=true])',
|
|
80
83
|
autofill: '&:autofill',
|
|
81
|
-
inRange: '&:is(:in-range, [data-in-range])',
|
|
82
|
-
outOfRange: '&:is(:out-of-range, [data-outside-range])',
|
|
83
|
-
placeholder: '&::placeholder, &[data-placeholder]',
|
|
84
|
-
placeholderShown: '&:is(:placeholder-shown, [data-placeholder-shown])',
|
|
85
|
-
pressed: '&:is([aria-pressed=true], [data-pressed])',
|
|
84
|
+
inRange: '&:is(:in-range, [data-in-range=true])',
|
|
85
|
+
outOfRange: '&:is(:out-of-range, [data-outside-range=true])',
|
|
86
|
+
placeholder: '&::placeholder, &[data-placeholder=true]',
|
|
87
|
+
placeholderShown: '&:is(:placeholder-shown, [data-placeholder-shown=true])',
|
|
88
|
+
pressed: '&:is([aria-pressed=true], [data-pressed=true])',
|
|
86
89
|
selected: '&:is([aria-selected=true], [data-selected=true])',
|
|
87
|
-
grabbed: '&:is([aria-grabbed=true], [data-grabbed])',
|
|
88
|
-
underValue: '&[data-state=under-value]',
|
|
89
|
-
overValue: '&[data-state=over-value]',
|
|
90
|
-
atValue: '&[data-state=at-value]',
|
|
90
|
+
grabbed: '&:is([aria-grabbed=true], [data-grabbed=true])',
|
|
91
|
+
underValue: '&[data-state="under-value"]',
|
|
92
|
+
overValue: '&[data-state="over-value"]',
|
|
93
|
+
atValue: '&[data-state="at-value"]',
|
|
91
94
|
|
|
92
95
|
default: '&:default',
|
|
93
96
|
optional: '&:optional',
|
|
94
|
-
open: '&:is([open], [data-open], [data-state="open"], :popover-open)',
|
|
95
|
-
closed: '&:is([closed], [data-closed], [data-state="closed"])',
|
|
96
|
-
fullscreen: '&:is(:fullscreen, [data-fullscreen])',
|
|
97
|
-
loading: '&:is([data-loading], [aria-busy=true])',
|
|
98
|
-
hidden: '&:is([hidden], [data-hidden])',
|
|
97
|
+
open: '&:is([open], [data-open=true], [data-state="open"], :popover-open)',
|
|
98
|
+
closed: '&:is([closed], [data-closed=true], [data-state="closed"])',
|
|
99
|
+
fullscreen: '&:is(:fullscreen, [data-fullscreen=true])',
|
|
100
|
+
loading: '&:is([data-loading=true], [aria-busy=true])',
|
|
101
|
+
hidden: '&:is([hidden], [data-hidden=true])',
|
|
99
102
|
|
|
100
|
-
current: '&:is([aria-current=true], [data-current])',
|
|
103
|
+
current: '&:is([aria-current=true], [data-current=true])',
|
|
101
104
|
currentPage: '&[aria-current=page]',
|
|
102
105
|
currentStep: '&[aria-current=step]',
|
|
103
|
-
today: '&:is([data-today])',
|
|
104
|
-
unavailable: '&[data-unavailable]',
|
|
105
|
-
rangeStart: '&[data-range-start]',
|
|
106
|
-
rangeEnd: '&[data-range-end]',
|
|
107
|
-
now: '&[data-now]',
|
|
108
|
-
topmost: '&[data-topmost]',
|
|
106
|
+
today: '&:is([data-today=true])',
|
|
107
|
+
unavailable: '&[data-unavailable=true]',
|
|
108
|
+
rangeStart: '&[data-range-start=true]',
|
|
109
|
+
rangeEnd: '&[data-range-end=true]',
|
|
110
|
+
now: '&[data-now=true]',
|
|
111
|
+
topmost: '&[data-topmost=true]',
|
|
109
112
|
|
|
110
113
|
motionReduce: '@media (prefers-reduced-motion: reduce)',
|
|
111
114
|
motionSafe: '@media (prefers-reduced-motion: no-preference)',
|
|
@@ -114,8 +117,9 @@ export const conditions = {
|
|
|
114
117
|
landscape: '@media (orientation: landscape)',
|
|
115
118
|
portrait: '@media (orientation: portrait)',
|
|
116
119
|
|
|
117
|
-
dark: '.dark &, &:is([data-color-mode=dark] *), [data-color-mode=dark] &',
|
|
118
|
-
light:
|
|
120
|
+
dark: '.dark &, &:is([data-color-mode="dark"] *), [data-color-mode="dark"] &',
|
|
121
|
+
light:
|
|
122
|
+
'.light &, &:is([data-color-mode="light"] *), [data-color-mode="light"] &',
|
|
119
123
|
osDark: '@media (prefers-color-scheme: dark)',
|
|
120
124
|
osLight: '@media (prefers-color-scheme: light)',
|
|
121
125
|
|