@rarui/styles 2.3.0-rc.1 → 2.3.0-rc.2
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/decorators/addSprinkleAttributes.d.ts +3 -0
- package/dist/index.css +1 -1
- package/dist/index.d.ts +73 -12398
- package/dist/node_modules/@vanilla-extract/css/dist/vanilla-extract-css.cjs.d.d.ts +168 -0
- package/dist/node_modules/@vanilla-extract/recipes/dist/vanilla-extract-recipes.cjs.d.d.ts +28 -0
- package/dist/node_modules/csstype/index.d.d.ts +11245 -0
- package/dist/node_modules/rainbow-sprinkles/dist/declarations/src/createRuntimeFn.d.d.ts +7 -0
- package/dist/node_modules/rainbow-sprinkles/dist/declarations/src/css.d.d.ts +6075 -0
- package/dist/node_modules/rainbow-sprinkles/dist/declarations/src/types.d.d.ts +137 -0
- package/dist/packages/exhibition/avatar/index.d.ts +52 -0
- package/dist/packages/exhibition/avatar/rarui-avatar.css.d.ts +54 -0
- package/dist/packages/exhibition/avatar/rarui-avatar.types.d.ts +6 -0
- package/dist/packages/exhibition/badge/index.d.ts +79 -0
- package/dist/packages/exhibition/badge/rarui-badge.css.d.ts +89 -0
- package/dist/packages/exhibition/badge/rarui-badge.types.d.ts +6 -0
- package/dist/packages/exhibition/divider/index.d.ts +167 -0
- package/dist/packages/exhibition/divider/rarui-divider.css.d.ts +6 -0
- package/dist/packages/exhibition/divider/rarui-divider.types.d.ts +26 -0
- package/dist/packages/exhibition/icon/index.d.ts +136 -0
- package/dist/packages/exhibition/icon/rarui-icon.types.d.ts +13 -0
- package/dist/packages/exhibition/label/index.d.ts +22 -0
- package/dist/packages/exhibition/label/rarui-label.css.d.ts +23 -0
- package/dist/packages/exhibition/label/rarui-label.types.d.ts +6 -0
- package/dist/packages/exhibition/stepper/index.d.ts +56 -0
- package/dist/packages/exhibition/stepper/rarui-stepper.css.d.ts +68 -0
- package/dist/packages/exhibition/stepper/rarui-stepper.types.d.ts +6 -0
- package/dist/packages/exhibition/text/index.d.ts +325 -0
- package/dist/packages/exhibition/text/rarui-text.css.d.ts +18 -0
- package/dist/packages/exhibition/text/rarui-text.types.d.ts +27 -0
- package/dist/packages/exhibition/title/index.d.ts +289 -0
- package/dist/packages/exhibition/title/rarui-title.css.d.ts +18 -0
- package/dist/packages/exhibition/title/rarui-title.types.d.ts +27 -0
- package/dist/packages/exhibition/tooltip/index.d.ts +39 -0
- package/dist/packages/exhibition/tooltip/rarui-tooltip.css.d.ts +43 -0
- package/dist/packages/exhibition/tooltip/rarui-tooltip.types.d.ts +6 -0
- package/dist/packages/feedback/progress/index.d.ts +81 -0
- package/dist/packages/feedback/progress/rarui-progress.css.d.ts +33 -0
- package/dist/packages/feedback/progress/rarui-progress.types.d.ts +16 -0
- package/dist/packages/feedback/skeleton/index.d.ts +115 -0
- package/dist/packages/feedback/skeleton/rarui-skeleton.types.d.ts +13 -0
- package/dist/packages/feedback/status/index.d.ts +70 -0
- package/dist/packages/feedback/status/rarui-status.css.d.ts +85 -0
- package/dist/packages/feedback/status/rarui-status.types.d.ts +6 -0
- package/dist/packages/feedback/toast/index.d.ts +151 -0
- package/dist/packages/feedback/toast/rarui-toast.css.d.ts +141 -0
- package/dist/packages/feedback/toast/rarui-toast.types.d.ts +8 -0
- package/dist/packages/input/button/index.d.ts +91 -0
- package/dist/packages/input/button/rarui-button.css.d.ts +105 -0
- package/dist/packages/input/button/rarui-button.types.d.ts +6 -0
- package/dist/packages/input/checkbox/index.d.ts +53 -0
- package/dist/packages/input/checkbox/rarui-checkbox.css.d.ts +63 -0
- package/dist/packages/input/checkbox/rarui-checkbox.types.d.ts +6 -0
- package/dist/packages/input/chip/index.d.ts +93 -0
- package/dist/packages/input/chip/rarui-chip.css.d.ts +75 -0
- package/dist/packages/input/chip/rarui-chip.types.d.ts +15 -0
- package/dist/packages/input/datepicker/index.d.ts +10 -0
- package/dist/packages/input/dropdown/index.d.ts +112 -0
- package/dist/packages/input/dropdown/rarui-dropdown.css.d.ts +30 -0
- package/dist/packages/input/dropdown/rarui-dropdown.types.d.ts +16 -0
- package/dist/packages/input/iconButton/index.d.ts +90 -0
- package/dist/packages/input/iconButton/rarui-iconButton.css.d.ts +98 -0
- package/dist/packages/input/iconButton/rarui-iconButton.types.d.ts +6 -0
- package/dist/packages/input/input/index.d.ts +112 -0
- package/dist/packages/input/input/rarui-input.css.d.ts +122 -0
- package/dist/packages/input/input/rarui-input.types.d.ts +6 -0
- package/dist/packages/input/radioButton/index.d.ts +64 -0
- package/dist/packages/input/radioButton/rarui-radioButton.css.d.ts +68 -0
- package/dist/packages/input/radioButton/rarui-radioButton.types.d.ts +6 -0
- package/dist/packages/input/select/index.d.ts +67 -0
- package/dist/packages/input/select/rarui-select.css.d.ts +54 -0
- package/dist/packages/input/select/rarui-select.types.d.ts +9 -0
- package/dist/packages/input/textarea/index.d.ts +36 -0
- package/dist/packages/input/textarea/rarui-textarea.css.d.ts +37 -0
- package/dist/packages/input/textarea/rarui-textarea.types.d.ts +6 -0
- package/dist/packages/input/toggle/index.d.ts +106 -0
- package/dist/packages/input/toggle/rarui-toggle.css.d.ts +110 -0
- package/dist/packages/input/toggle/rarui-toggle.types.d.ts +6 -0
- package/dist/packages/layout/box/index.d.ts +3122 -0
- package/dist/packages/layout/box/rarui-box.css.d.ts +38 -0
- package/dist/packages/layout/box/rarui-box.types.d.ts +227 -0
- package/dist/packages/layout/sidebar/index.d.ts +121 -0
- package/dist/packages/layout/sidebar/rarui-sidebar.css.d.ts +37 -0
- package/dist/packages/layout/sidebar/rarui-sidebar.types.d.ts +21 -0
- package/dist/packages/navigation/breadcrumb/index.d.ts +16 -0
- package/dist/packages/navigation/breadcrumb/rarui-breadcrumb.css.d.ts +18 -0
- package/dist/packages/navigation/breadcrumb/rarui-breadcrumb.types.d.ts +6 -0
- package/dist/packages/navigation/link/index.d.ts +38 -0
- package/dist/packages/navigation/link/rarui-link.css.d.ts +42 -0
- package/dist/packages/navigation/link/rarui-link.types.d.ts +6 -0
- package/dist/packages/navigation/pagination/index.d.ts +47 -0
- package/dist/packages/navigation/pagination/rarui-pagination.css.d.ts +49 -0
- package/dist/packages/navigation/pagination/rarui-pagination.types.d.ts +6 -0
- package/dist/packages/navigation/sideNavigation/index.d.ts +75 -0
- package/dist/packages/navigation/sideNavigation/rarui-sideNavigation.css.d.ts +76 -0
- package/dist/packages/navigation/sideNavigation/rarui-sideNavigation.types.d.ts +6 -0
- package/dist/packages/navigation/tabs/index.d.ts +65 -0
- package/dist/packages/navigation/tabs/rarui-tabs.css.d.ts +79 -0
- package/dist/packages/navigation/tabs/rarui-tabs.types.d.ts +6 -0
- package/dist/packages/surface/accordion/index.d.ts +47 -0
- package/dist/packages/surface/accordion/rarui-accordion.css.d.ts +49 -0
- package/dist/packages/surface/accordion/rarui-accordion.types.d.ts +6 -0
- package/dist/packages/surface/banner/index.d.ts +41 -0
- package/dist/packages/surface/banner/rarui-banner.css.d.ts +47 -0
- package/dist/packages/surface/banner/rarui-banner.types.d.ts +6 -0
- package/dist/packages/surface/card/index.d.ts +195 -0
- package/dist/packages/surface/card/rarui-card.css.d.ts +27 -0
- package/dist/packages/surface/card/rarui-card.types.d.ts +16 -0
- package/dist/packages/surface/modal/index.d.ts +91 -0
- package/dist/packages/surface/modal/rarui-modal.css.d.ts +21 -0
- package/dist/packages/surface/modal/rarui-modal.types.d.ts +16 -0
- package/dist/properties/css.d.ts +207 -0
- package/dist/themes/globals.css.d.ts +219 -0
- package/dist/themes/rarui-theme-dark.css.d.ts +3 -0
- package/dist/types/css.types.d.ts +3658 -0
- package/dist/types/utils.types.d.ts +9 -0
- package/dist/utils/index.d.ts +3 -0
- package/package.json +2 -1
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
import { Properties } from '../../../csstype/index.d.js';
|
|
2
|
+
|
|
3
|
+
type CSSVarFunction = `var(--${string})` | `var(--${string}, ${string | number})`;
|
|
4
|
+
|
|
5
|
+
declare const simplePseudoMap: {
|
|
6
|
+
readonly ':-moz-any-link': true;
|
|
7
|
+
readonly ':-moz-full-screen': true;
|
|
8
|
+
readonly ':-moz-placeholder': true;
|
|
9
|
+
readonly ':-moz-read-only': true;
|
|
10
|
+
readonly ':-moz-read-write': true;
|
|
11
|
+
readonly ':-ms-fullscreen': true;
|
|
12
|
+
readonly ':-ms-input-placeholder': true;
|
|
13
|
+
readonly ':-webkit-any-link': true;
|
|
14
|
+
readonly ':-webkit-full-screen': true;
|
|
15
|
+
readonly '::-moz-color-swatch': true;
|
|
16
|
+
readonly '::-moz-list-bullet': true;
|
|
17
|
+
readonly '::-moz-list-number': true;
|
|
18
|
+
readonly '::-moz-page-sequence': true;
|
|
19
|
+
readonly '::-moz-page': true;
|
|
20
|
+
readonly '::-moz-placeholder': true;
|
|
21
|
+
readonly '::-moz-progress-bar': true;
|
|
22
|
+
readonly '::-moz-range-progress': true;
|
|
23
|
+
readonly '::-moz-range-thumb': true;
|
|
24
|
+
readonly '::-moz-range-track': true;
|
|
25
|
+
readonly '::-moz-scrolled-page-sequence': true;
|
|
26
|
+
readonly '::-moz-selection': true;
|
|
27
|
+
readonly '::-ms-backdrop': true;
|
|
28
|
+
readonly '::-ms-browse': true;
|
|
29
|
+
readonly '::-ms-check': true;
|
|
30
|
+
readonly '::-ms-clear': true;
|
|
31
|
+
readonly '::-ms-fill-lower': true;
|
|
32
|
+
readonly '::-ms-fill-upper': true;
|
|
33
|
+
readonly '::-ms-fill': true;
|
|
34
|
+
readonly '::-ms-reveal': true;
|
|
35
|
+
readonly '::-ms-thumb': true;
|
|
36
|
+
readonly '::-ms-ticks-after': true;
|
|
37
|
+
readonly '::-ms-ticks-before': true;
|
|
38
|
+
readonly '::-ms-tooltip': true;
|
|
39
|
+
readonly '::-ms-track': true;
|
|
40
|
+
readonly '::-ms-value': true;
|
|
41
|
+
readonly '::-webkit-backdrop': true;
|
|
42
|
+
readonly '::-webkit-inner-spin-button': true;
|
|
43
|
+
readonly '::-webkit-input-placeholder': true;
|
|
44
|
+
readonly '::-webkit-meter-bar': true;
|
|
45
|
+
readonly '::-webkit-meter-even-less-good-value': true;
|
|
46
|
+
readonly '::-webkit-meter-inner-element': true;
|
|
47
|
+
readonly '::-webkit-meter-optimum-value': true;
|
|
48
|
+
readonly '::-webkit-meter-suboptimum-value': true;
|
|
49
|
+
readonly '::-webkit-outer-spin-button': true;
|
|
50
|
+
readonly '::-webkit-progress-bar': true;
|
|
51
|
+
readonly '::-webkit-progress-inner-element': true;
|
|
52
|
+
readonly '::-webkit-progress-inner-value': true;
|
|
53
|
+
readonly '::-webkit-progress-value': true;
|
|
54
|
+
readonly '::-webkit-resizer': true;
|
|
55
|
+
readonly '::-webkit-scrollbar-button': true;
|
|
56
|
+
readonly '::-webkit-scrollbar-corner': true;
|
|
57
|
+
readonly '::-webkit-scrollbar-thumb': true;
|
|
58
|
+
readonly '::-webkit-scrollbar-track-piece': true;
|
|
59
|
+
readonly '::-webkit-scrollbar-track': true;
|
|
60
|
+
readonly '::-webkit-scrollbar': true;
|
|
61
|
+
readonly '::-webkit-search-cancel-button': true;
|
|
62
|
+
readonly '::-webkit-search-results-button': true;
|
|
63
|
+
readonly '::-webkit-slider-runnable-track': true;
|
|
64
|
+
readonly '::-webkit-slider-thumb': true;
|
|
65
|
+
readonly '::after': true;
|
|
66
|
+
readonly '::backdrop': true;
|
|
67
|
+
readonly '::before': true;
|
|
68
|
+
readonly '::cue': true;
|
|
69
|
+
readonly '::file-selector-button': true;
|
|
70
|
+
readonly '::first-letter': true;
|
|
71
|
+
readonly '::first-line': true;
|
|
72
|
+
readonly '::grammar-error': true;
|
|
73
|
+
readonly '::marker': true;
|
|
74
|
+
readonly '::placeholder': true;
|
|
75
|
+
readonly '::selection': true;
|
|
76
|
+
readonly '::spelling-error': true;
|
|
77
|
+
readonly '::target-text': true;
|
|
78
|
+
readonly '::view-transition-group': true;
|
|
79
|
+
readonly '::view-transition-image-pair': true;
|
|
80
|
+
readonly '::view-transition-new': true;
|
|
81
|
+
readonly '::view-transition-old': true;
|
|
82
|
+
readonly '::view-transition': true;
|
|
83
|
+
readonly ':active': true;
|
|
84
|
+
readonly ':after': true;
|
|
85
|
+
readonly ':any-link': true;
|
|
86
|
+
readonly ':before': true;
|
|
87
|
+
readonly ':blank': true;
|
|
88
|
+
readonly ':checked': true;
|
|
89
|
+
readonly ':default': true;
|
|
90
|
+
readonly ':defined': true;
|
|
91
|
+
readonly ':disabled': true;
|
|
92
|
+
readonly ':empty': true;
|
|
93
|
+
readonly ':enabled': true;
|
|
94
|
+
readonly ':first-child': true;
|
|
95
|
+
readonly ':first-letter': true;
|
|
96
|
+
readonly ':first-line': true;
|
|
97
|
+
readonly ':first-of-type': true;
|
|
98
|
+
readonly ':first': true;
|
|
99
|
+
readonly ':focus-visible': true;
|
|
100
|
+
readonly ':focus-within': true;
|
|
101
|
+
readonly ':focus': true;
|
|
102
|
+
readonly ':fullscreen': true;
|
|
103
|
+
readonly ':hover': true;
|
|
104
|
+
readonly ':in-range': true;
|
|
105
|
+
readonly ':indeterminate': true;
|
|
106
|
+
readonly ':invalid': true;
|
|
107
|
+
readonly ':last-child': true;
|
|
108
|
+
readonly ':last-of-type': true;
|
|
109
|
+
readonly ':left': true;
|
|
110
|
+
readonly ':link': true;
|
|
111
|
+
readonly ':only-child': true;
|
|
112
|
+
readonly ':only-of-type': true;
|
|
113
|
+
readonly ':optional': true;
|
|
114
|
+
readonly ':out-of-range': true;
|
|
115
|
+
readonly ':placeholder-shown': true;
|
|
116
|
+
readonly ':read-only': true;
|
|
117
|
+
readonly ':read-write': true;
|
|
118
|
+
readonly ':required': true;
|
|
119
|
+
readonly ':right': true;
|
|
120
|
+
readonly ':root': true;
|
|
121
|
+
readonly ':scope': true;
|
|
122
|
+
readonly ':target': true;
|
|
123
|
+
readonly ':valid': true;
|
|
124
|
+
readonly ':visited': true;
|
|
125
|
+
};
|
|
126
|
+
type SimplePseudos = keyof typeof simplePseudoMap;
|
|
127
|
+
|
|
128
|
+
interface ContainerProperties {
|
|
129
|
+
container?: string;
|
|
130
|
+
containerType?: 'size' | 'inline-size' | (string & {});
|
|
131
|
+
containerName?: string;
|
|
132
|
+
}
|
|
133
|
+
type CSSTypeProperties = Properties<number | (string & {})> & ContainerProperties;
|
|
134
|
+
type CSSProperties = {
|
|
135
|
+
[Property in keyof CSSTypeProperties]: CSSTypeProperties[Property] | CSSVarFunction | Array<CSSVarFunction | CSSTypeProperties[Property]>;
|
|
136
|
+
};
|
|
137
|
+
type CSSPropertiesWithVars = CSSProperties & {
|
|
138
|
+
vars?: {
|
|
139
|
+
[key: string]: string;
|
|
140
|
+
};
|
|
141
|
+
};
|
|
142
|
+
type PseudoProperties = {
|
|
143
|
+
[key in SimplePseudos]?: CSSPropertiesWithVars;
|
|
144
|
+
};
|
|
145
|
+
type CSSPropertiesAndPseudos = CSSPropertiesWithVars & PseudoProperties;
|
|
146
|
+
type Query<Key extends string, StyleType> = {
|
|
147
|
+
[key in Key]?: {
|
|
148
|
+
[query: string]: Omit<StyleType, Key>;
|
|
149
|
+
};
|
|
150
|
+
};
|
|
151
|
+
type MediaQueries<StyleType> = Query<'@media', StyleType>;
|
|
152
|
+
type FeatureQueries<StyleType> = Query<'@supports', StyleType>;
|
|
153
|
+
type ContainerQueries<StyleType> = Query<'@container', StyleType>;
|
|
154
|
+
type Layers<StyleType> = Query<'@layer', StyleType>;
|
|
155
|
+
interface AllQueries<StyleType> extends MediaQueries<StyleType & AllQueries<StyleType>>, FeatureQueries<StyleType & AllQueries<StyleType>>, ContainerQueries<StyleType & AllQueries<StyleType>>, Layers<StyleType & AllQueries<StyleType>> {
|
|
156
|
+
}
|
|
157
|
+
type WithQueries<StyleType> = StyleType & AllQueries<StyleType>;
|
|
158
|
+
interface SelectorMap {
|
|
159
|
+
[selector: string]: CSSPropertiesWithVars & WithQueries<CSSPropertiesWithVars>;
|
|
160
|
+
}
|
|
161
|
+
interface StyleWithSelectors extends CSSPropertiesAndPseudos {
|
|
162
|
+
selectors?: SelectorMap;
|
|
163
|
+
}
|
|
164
|
+
type StyleRule = StyleWithSelectors & WithQueries<StyleWithSelectors>;
|
|
165
|
+
type ClassNames = string | Array<ClassNames>;
|
|
166
|
+
type ComplexStyleRule = StyleRule | Array<StyleRule | ClassNames>;
|
|
167
|
+
|
|
168
|
+
export type { CSSProperties, ComplexStyleRule, StyleRule };
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { ComplexStyleRule } from '../../css/dist/vanilla-extract-css.cjs.d.js';
|
|
2
|
+
|
|
3
|
+
type Resolve<T> = {
|
|
4
|
+
[Key in keyof T]: T[Key];
|
|
5
|
+
} & {};
|
|
6
|
+
type RecipeStyleRule = ComplexStyleRule | string;
|
|
7
|
+
type VariantDefinitions = Record<string, RecipeStyleRule>;
|
|
8
|
+
type BooleanMap<T> = T extends 'true' | 'false' ? boolean : T;
|
|
9
|
+
type VariantGroups = Record<string, VariantDefinitions>;
|
|
10
|
+
type VariantSelection<Variants extends VariantGroups> = {
|
|
11
|
+
[VariantGroup in keyof Variants]?: BooleanMap<keyof Variants[VariantGroup]>;
|
|
12
|
+
};
|
|
13
|
+
type VariantsClassNames<Variants extends VariantGroups> = {
|
|
14
|
+
[P in keyof Variants]: {
|
|
15
|
+
[PP in keyof Variants[P]]: string;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
type RecipeClassNames<Variants extends VariantGroups> = {
|
|
19
|
+
base: string;
|
|
20
|
+
variants: VariantsClassNames<Variants>;
|
|
21
|
+
};
|
|
22
|
+
type RuntimeFn<Variants extends VariantGroups> = ((options?: Resolve<VariantSelection<Variants>>) => string) & {
|
|
23
|
+
variants: () => (keyof Variants)[];
|
|
24
|
+
classNames: RecipeClassNames<Variants>;
|
|
25
|
+
};
|
|
26
|
+
type RecipeVariants<RecipeFn extends RuntimeFn<VariantGroups>> = Resolve<Parameters<RecipeFn>[0]>;
|
|
27
|
+
|
|
28
|
+
export type { RecipeVariants, RuntimeFn };
|