@televet/kibble-ui 1.3.0 → 1.3.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.
- package/build/components/Typography/Heading/heading.component.d.ts +4 -3
- package/build/components/Typography/Text/text.component.d.ts +6 -2
- package/build/components/Typography/Text/text.types.d.ts +1 -0
- package/build/components/Typography/index.d.ts +1 -0
- package/build/components/Typography/typography.types.d.ts +1 -0
- package/build/hocs/index.d.ts +2 -0
- package/build/hocs/withDarkMode.d.ts +2 -0
- package/build/hocs/withTheme.d.ts +3 -0
- package/build/index.d.ts +1 -0
- package/build/index.js +250 -220
- package/build/index.js.map +1 -1
- package/build/theme/theme.types.d.ts +1 -2
- package/build/theme/tokens/colors/color.types.d.ts +2 -23
- package/build/theme/tokens/fontWeights.d.ts +3 -12
- package/package.json +1 -1
package/build/index.js
CHANGED
|
@@ -2262,94 +2262,22 @@ function __rest(s, e) {
|
|
|
2262
2262
|
return t;
|
|
2263
2263
|
}
|
|
2264
2264
|
|
|
2265
|
-
var
|
|
2266
|
-
|
|
2267
|
-
var components = useTheme().components;
|
|
2268
|
-
var sizes = components.Heading.variants[variant].sizes;
|
|
2269
|
-
var sizeProps = !sizes ? undefined : sizes[size];
|
|
2270
|
-
return (React__default["default"].createElement(react.Heading, __assign({ variant: variant }, sizeProps, rest), children));
|
|
2265
|
+
var withDarkMode = function (children, darkMode) {
|
|
2266
|
+
return darkMode ? React__default["default"].createElement(react.DarkMode, null, children) : React__default["default"].createElement(React__default["default"].Fragment, null, children);
|
|
2271
2267
|
};
|
|
2272
2268
|
|
|
2273
|
-
var
|
|
2274
|
-
|
|
2275
|
-
large: {
|
|
2276
|
-
sizes: {
|
|
2277
|
-
xs: {
|
|
2278
|
-
fontSize: '14px',
|
|
2279
|
-
lineHeight: '120%',
|
|
2280
|
-
},
|
|
2281
|
-
sm: {
|
|
2282
|
-
fontSize: '16px',
|
|
2283
|
-
lineHeight: '120%',
|
|
2284
|
-
},
|
|
2285
|
-
md: {
|
|
2286
|
-
fontSize: '20px',
|
|
2287
|
-
lineHeight: '120%',
|
|
2288
|
-
},
|
|
2289
|
-
lg: {
|
|
2290
|
-
fontSize: '30px',
|
|
2291
|
-
lineHeight: '133%',
|
|
2292
|
-
},
|
|
2293
|
-
xl: {
|
|
2294
|
-
fontSize: '36px',
|
|
2295
|
-
lineHeight: '133%',
|
|
2296
|
-
},
|
|
2297
|
-
'2xl': {
|
|
2298
|
-
fontSize: '48px',
|
|
2299
|
-
lineHeight: '120%',
|
|
2300
|
-
},
|
|
2301
|
-
'3xl': {
|
|
2302
|
-
fontSize: '60px',
|
|
2303
|
-
lineHeight: '100%',
|
|
2304
|
-
},
|
|
2305
|
-
'4xl': {
|
|
2306
|
-
fontSize: '72px',
|
|
2307
|
-
lineHeight: '100%',
|
|
2308
|
-
},
|
|
2309
|
-
},
|
|
2310
|
-
},
|
|
2311
|
-
small: {
|
|
2312
|
-
sizes: {
|
|
2313
|
-
xs: {
|
|
2314
|
-
fontSize: '14px',
|
|
2315
|
-
lineHeight: '120%',
|
|
2316
|
-
},
|
|
2317
|
-
sm: {
|
|
2318
|
-
fontSize: '16px',
|
|
2319
|
-
lineHeight: '120%',
|
|
2320
|
-
},
|
|
2321
|
-
md: {
|
|
2322
|
-
fontSize: '20px',
|
|
2323
|
-
lineHeight: '120%',
|
|
2324
|
-
},
|
|
2325
|
-
lg: {
|
|
2326
|
-
fontSize: '24px',
|
|
2327
|
-
lineHeight: '133%',
|
|
2328
|
-
},
|
|
2329
|
-
xl: {
|
|
2330
|
-
fontSize: '30px',
|
|
2331
|
-
lineHeight: '133%',
|
|
2332
|
-
},
|
|
2333
|
-
'2xl': {
|
|
2334
|
-
fontSize: '36px',
|
|
2335
|
-
lineHeight: '120%',
|
|
2336
|
-
},
|
|
2337
|
-
'3xl': {
|
|
2338
|
-
fontSize: '48px',
|
|
2339
|
-
lineHeight: '100%',
|
|
2340
|
-
},
|
|
2341
|
-
'4xl': {
|
|
2342
|
-
fontSize: '60px',
|
|
2343
|
-
lineHeight: '100%',
|
|
2344
|
-
},
|
|
2345
|
-
},
|
|
2346
|
-
},
|
|
2347
|
-
},
|
|
2269
|
+
var withTheme = function (children, theme) {
|
|
2270
|
+
return theme ? React__default["default"].createElement(react.ChakraProvider, { theme: theme }, children) : React__default["default"].createElement(React__default["default"].Fragment, null, children);
|
|
2348
2271
|
};
|
|
2349
2272
|
|
|
2350
|
-
var
|
|
2351
|
-
var children = _a.children, _b = _a.
|
|
2352
|
-
|
|
2273
|
+
var Heading = function (_a) {
|
|
2274
|
+
var children = _a.children, _b = _a.size, size = _b === void 0 ? 'lg' : _b, _c = _a.color, color = _c === void 0 ? 'headline' : _c, darkMode = _a.darkMode, rest = __rest(_a, ["children", "size", "color", "darkMode"]);
|
|
2275
|
+
var _d = useTheme(), components = _d.components, colors = _d.colors;
|
|
2276
|
+
var adaptiveColor = useAdaptiveColorMap(colors.text, color);
|
|
2277
|
+
var variant = react.useBreakpointValue({ base: 'small', md: 'large' }) || 'small';
|
|
2278
|
+
var sizes = components.Heading.variants[variant].sizes;
|
|
2279
|
+
var sizeProps = !sizes ? undefined : sizes[size];
|
|
2280
|
+
return withDarkMode(React__default["default"].createElement(react.Heading, __assign({ variant: variant }, sizeProps, { color: adaptiveColor }, rest), children), !!darkMode);
|
|
2353
2281
|
};
|
|
2354
2282
|
|
|
2355
2283
|
var blur = {
|
|
@@ -2510,28 +2438,6 @@ var coreColors = {
|
|
|
2510
2438
|
},
|
|
2511
2439
|
};
|
|
2512
2440
|
var semanticColors = {
|
|
2513
|
-
text: {
|
|
2514
|
-
light: {
|
|
2515
|
-
default: coreColors.comet[700],
|
|
2516
|
-
headline: coreColors.blue[800],
|
|
2517
|
-
subtle: coreColors.gray[800],
|
|
2518
|
-
link: coreColors.teal[600],
|
|
2519
|
-
placeholder: coreColors.blackAlpha[500],
|
|
2520
|
-
success: coreColors.green[600],
|
|
2521
|
-
warning: coreColors.yellow[600],
|
|
2522
|
-
error: coreColors.red[500],
|
|
2523
|
-
},
|
|
2524
|
-
dark: {
|
|
2525
|
-
default: coreColors.white,
|
|
2526
|
-
headline: coreColors.white,
|
|
2527
|
-
subtle: coreColors.comet[300],
|
|
2528
|
-
link: coreColors.teal[400],
|
|
2529
|
-
success: coreColors.green[400],
|
|
2530
|
-
warning: coreColors.yellow[300],
|
|
2531
|
-
error: coreColors.red[300],
|
|
2532
|
-
placeholder: coreColors.whiteAlpha[600],
|
|
2533
|
-
},
|
|
2534
|
-
},
|
|
2535
2441
|
background: {
|
|
2536
2442
|
light: coreColors.white,
|
|
2537
2443
|
grayLight: coreColors.gray[50],
|
|
@@ -2609,6 +2515,28 @@ var adaptiveColors = {
|
|
|
2609
2515
|
error: coreColors.red[300],
|
|
2610
2516
|
},
|
|
2611
2517
|
},
|
|
2518
|
+
text: {
|
|
2519
|
+
light: {
|
|
2520
|
+
default: coreColors.comet[700],
|
|
2521
|
+
headline: coreColors.blue[800],
|
|
2522
|
+
subtle: coreColors.gray[800],
|
|
2523
|
+
link: coreColors.teal[600],
|
|
2524
|
+
success: coreColors.green[600],
|
|
2525
|
+
warning: coreColors.yellow[600],
|
|
2526
|
+
error: coreColors.red[500],
|
|
2527
|
+
placeholder: coreColors.blackAlpha[500],
|
|
2528
|
+
},
|
|
2529
|
+
dark: {
|
|
2530
|
+
default: coreColors.white,
|
|
2531
|
+
headline: coreColors.white,
|
|
2532
|
+
subtle: coreColors.comet[300],
|
|
2533
|
+
link: coreColors.teal[400],
|
|
2534
|
+
success: coreColors.green[400],
|
|
2535
|
+
warning: coreColors.yellow[300],
|
|
2536
|
+
error: coreColors.red[300],
|
|
2537
|
+
placeholder: coreColors.whiteAlpha[600],
|
|
2538
|
+
},
|
|
2539
|
+
},
|
|
2612
2540
|
};
|
|
2613
2541
|
var colors = __assign(__assign(__assign({}, coreColors), semanticColors), adaptiveColors);
|
|
2614
2542
|
|
|
@@ -2732,6 +2660,106 @@ var zIndices = {
|
|
|
2732
2660
|
tooltip: 1800,
|
|
2733
2661
|
};
|
|
2734
2662
|
|
|
2663
|
+
var HeadingConfig = {
|
|
2664
|
+
variants: {
|
|
2665
|
+
large: {
|
|
2666
|
+
sizes: {
|
|
2667
|
+
xs: {
|
|
2668
|
+
fontSize: '14px',
|
|
2669
|
+
lineHeight: '120%',
|
|
2670
|
+
fontWeight: fontWeights.semibold,
|
|
2671
|
+
},
|
|
2672
|
+
sm: {
|
|
2673
|
+
fontSize: '16px',
|
|
2674
|
+
lineHeight: '120%',
|
|
2675
|
+
fontWeight: fontWeights.semibold,
|
|
2676
|
+
},
|
|
2677
|
+
md: {
|
|
2678
|
+
fontSize: '20px',
|
|
2679
|
+
lineHeight: '120%',
|
|
2680
|
+
fontWeight: fontWeights.semibold,
|
|
2681
|
+
},
|
|
2682
|
+
lg: {
|
|
2683
|
+
fontSize: '30px',
|
|
2684
|
+
lineHeight: '133%',
|
|
2685
|
+
fontWeight: fontWeights.semibold,
|
|
2686
|
+
},
|
|
2687
|
+
xl: {
|
|
2688
|
+
fontSize: '36px',
|
|
2689
|
+
lineHeight: '133%',
|
|
2690
|
+
fontWeight: fontWeights.semibold,
|
|
2691
|
+
},
|
|
2692
|
+
'2xl': {
|
|
2693
|
+
fontSize: '48px',
|
|
2694
|
+
lineHeight: '120%',
|
|
2695
|
+
fontWeight: fontWeights.semibold,
|
|
2696
|
+
},
|
|
2697
|
+
'3xl': {
|
|
2698
|
+
fontSize: '60px',
|
|
2699
|
+
lineHeight: '100%',
|
|
2700
|
+
fontWeight: fontWeights.semibold,
|
|
2701
|
+
},
|
|
2702
|
+
'4xl': {
|
|
2703
|
+
fontSize: '72px',
|
|
2704
|
+
lineHeight: '100%',
|
|
2705
|
+
fontWeight: fontWeights.semibold,
|
|
2706
|
+
},
|
|
2707
|
+
},
|
|
2708
|
+
},
|
|
2709
|
+
small: {
|
|
2710
|
+
sizes: {
|
|
2711
|
+
xs: {
|
|
2712
|
+
fontSize: '14px',
|
|
2713
|
+
lineHeight: '120%',
|
|
2714
|
+
fontWeight: fontWeights.semibold,
|
|
2715
|
+
},
|
|
2716
|
+
sm: {
|
|
2717
|
+
fontSize: '16px',
|
|
2718
|
+
lineHeight: '120%',
|
|
2719
|
+
fontWeight: fontWeights.semibold,
|
|
2720
|
+
},
|
|
2721
|
+
md: {
|
|
2722
|
+
fontSize: '20px',
|
|
2723
|
+
lineHeight: '120%',
|
|
2724
|
+
fontWeight: fontWeights.semibold,
|
|
2725
|
+
},
|
|
2726
|
+
lg: {
|
|
2727
|
+
fontSize: '24px',
|
|
2728
|
+
lineHeight: '133%',
|
|
2729
|
+
fontWeight: fontWeights.semibold,
|
|
2730
|
+
},
|
|
2731
|
+
xl: {
|
|
2732
|
+
fontSize: '30px',
|
|
2733
|
+
lineHeight: '133%',
|
|
2734
|
+
fontWeight: fontWeights.semibold,
|
|
2735
|
+
},
|
|
2736
|
+
'2xl': {
|
|
2737
|
+
fontSize: '36px',
|
|
2738
|
+
lineHeight: '120%',
|
|
2739
|
+
fontWeight: fontWeights.semibold,
|
|
2740
|
+
},
|
|
2741
|
+
'3xl': {
|
|
2742
|
+
fontSize: '48px',
|
|
2743
|
+
lineHeight: '100%',
|
|
2744
|
+
fontWeight: fontWeights.semibold,
|
|
2745
|
+
},
|
|
2746
|
+
'4xl': {
|
|
2747
|
+
fontSize: '60px',
|
|
2748
|
+
lineHeight: '100%',
|
|
2749
|
+
fontWeight: fontWeights.semibold,
|
|
2750
|
+
},
|
|
2751
|
+
},
|
|
2752
|
+
},
|
|
2753
|
+
},
|
|
2754
|
+
};
|
|
2755
|
+
|
|
2756
|
+
var Text = function (_a) {
|
|
2757
|
+
var children = _a.children, _b = _a.variant, variant = _b === void 0 ? 'regular' : _b, _c = _a.as, as = _c === void 0 ? 'span' : _c, _d = _a.color, color = _d === void 0 ? 'default' : _d, darkMode = _a.darkMode, rest = __rest(_a, ["children", "variant", "as", "color", "darkMode"]);
|
|
2758
|
+
var colors = useTheme().colors;
|
|
2759
|
+
var adaptiveColor = useAdaptiveColorMap(colors.text, color);
|
|
2760
|
+
return withDarkMode(React__default["default"].createElement(react.Text, __assign({ variant: variant, as: as, color: adaptiveColor }, rest), children), !!darkMode);
|
|
2761
|
+
};
|
|
2762
|
+
|
|
2735
2763
|
var TextConfig = {
|
|
2736
2764
|
variants: {
|
|
2737
2765
|
regular: {
|
|
@@ -2793,7 +2821,7 @@ var Textarea = function (props) {
|
|
|
2793
2821
|
var TextareaConfig = {
|
|
2794
2822
|
baseStyle: {
|
|
2795
2823
|
borderRadius: borders['4px'],
|
|
2796
|
-
color:
|
|
2824
|
+
color: adaptiveColors.text.light.default,
|
|
2797
2825
|
},
|
|
2798
2826
|
variants: {
|
|
2799
2827
|
outline: {
|
|
@@ -3087,8 +3115,8 @@ var AvatarConfig = {
|
|
|
3087
3115
|
};
|
|
3088
3116
|
|
|
3089
3117
|
var Button = React.forwardRef(function (props, ref) {
|
|
3090
|
-
var
|
|
3091
|
-
var
|
|
3118
|
+
var _a = useTheme(), components = _a.components, fontWeights = _a.fontWeights;
|
|
3119
|
+
var _b = components.Button[props.variant || 'primary'], variant = _b.variant, light = _b.light, dark = _b.dark;
|
|
3092
3120
|
var modeColor = props.darkMode ? dark : light;
|
|
3093
3121
|
var bg = react.useColorModeValue(modeColor.default, dark.default);
|
|
3094
3122
|
var color = react.useColorModeValue(modeColor.content, dark.content);
|
|
@@ -3112,7 +3140,7 @@ var Button = React.forwardRef(function (props, ref) {
|
|
|
3112
3140
|
p[position] = ButtonIcon;
|
|
3113
3141
|
}
|
|
3114
3142
|
}
|
|
3115
|
-
return (React__default["default"].createElement(react.Button, __assign({ ref: ref, _hover: hoverClass, _active: activeClass, whiteSpace: "normal", wordWrap: "break-word", iconSpacing: p.size === 'sm' || p.size === 'xs' ? '4px' : '8px' }, p), props.children));
|
|
3143
|
+
return (React__default["default"].createElement(react.Button, __assign({ fontWeight: fontWeights.semibold, ref: ref, _hover: hoverClass, _active: activeClass, whiteSpace: "normal", wordWrap: "break-word", iconSpacing: p.size === 'sm' || p.size === 'xs' ? '4px' : '8px' }, p), props.children));
|
|
3116
3144
|
});
|
|
3117
3145
|
Button.displayName = 'Button';
|
|
3118
3146
|
|
|
@@ -3120,188 +3148,188 @@ var ButtonVariantConfig = {
|
|
|
3120
3148
|
primary: {
|
|
3121
3149
|
variant: 'solid',
|
|
3122
3150
|
light: {
|
|
3123
|
-
content:
|
|
3124
|
-
default:
|
|
3125
|
-
hover:
|
|
3126
|
-
active:
|
|
3127
|
-
border:
|
|
3151
|
+
content: colors.text.dark.headline,
|
|
3152
|
+
default: colors.teal['600'],
|
|
3153
|
+
hover: colors.teal['700'],
|
|
3154
|
+
active: colors.teal['800'],
|
|
3155
|
+
border: colors.transparent,
|
|
3128
3156
|
},
|
|
3129
3157
|
dark: {
|
|
3130
|
-
content:
|
|
3131
|
-
default:
|
|
3132
|
-
hover:
|
|
3133
|
-
active:
|
|
3134
|
-
border:
|
|
3158
|
+
content: colors.text.light.headline,
|
|
3159
|
+
default: colors.teal['400'],
|
|
3160
|
+
hover: colors.teal['300'],
|
|
3161
|
+
active: colors.teal['100'],
|
|
3162
|
+
border: colors.transparent,
|
|
3135
3163
|
},
|
|
3136
3164
|
},
|
|
3137
3165
|
primaryDestructive: {
|
|
3138
3166
|
variant: 'solid',
|
|
3139
3167
|
light: {
|
|
3140
|
-
content:
|
|
3141
|
-
default:
|
|
3142
|
-
hover:
|
|
3143
|
-
active:
|
|
3144
|
-
border:
|
|
3168
|
+
content: colors.text.dark.headline,
|
|
3169
|
+
default: colors.red['500'],
|
|
3170
|
+
hover: colors.red['600'],
|
|
3171
|
+
active: colors.red['700'],
|
|
3172
|
+
border: colors.transparent,
|
|
3145
3173
|
},
|
|
3146
3174
|
dark: {
|
|
3147
|
-
content:
|
|
3148
|
-
default:
|
|
3149
|
-
hover:
|
|
3150
|
-
active:
|
|
3151
|
-
border:
|
|
3175
|
+
content: colors.text.light.headline,
|
|
3176
|
+
default: colors.red['200'],
|
|
3177
|
+
hover: colors.red['100'],
|
|
3178
|
+
active: colors.red['50'],
|
|
3179
|
+
border: colors.transparent,
|
|
3152
3180
|
},
|
|
3153
3181
|
},
|
|
3154
3182
|
secondary: {
|
|
3155
3183
|
variant: 'outline',
|
|
3156
3184
|
light: {
|
|
3157
|
-
content:
|
|
3158
|
-
default:
|
|
3159
|
-
hover:
|
|
3160
|
-
active:
|
|
3161
|
-
border:
|
|
3185
|
+
content: colors.text.light.default,
|
|
3186
|
+
default: colors.transparent,
|
|
3187
|
+
hover: colors.teal['100'],
|
|
3188
|
+
active: colors.teal['200'],
|
|
3189
|
+
border: colors.border.light.heavy,
|
|
3162
3190
|
},
|
|
3163
3191
|
dark: {
|
|
3164
|
-
content:
|
|
3165
|
-
default:
|
|
3166
|
-
hover:
|
|
3167
|
-
active:
|
|
3168
|
-
border:
|
|
3192
|
+
content: colors.white,
|
|
3193
|
+
default: colors.transparent,
|
|
3194
|
+
hover: colors.whiteAlpha['300'],
|
|
3195
|
+
active: colors.whiteAlpha['400'],
|
|
3196
|
+
border: colors.white,
|
|
3169
3197
|
},
|
|
3170
3198
|
},
|
|
3171
3199
|
secondaryDestructive: {
|
|
3172
3200
|
variant: 'outline',
|
|
3173
3201
|
light: {
|
|
3174
|
-
content:
|
|
3175
|
-
default:
|
|
3176
|
-
hover:
|
|
3177
|
-
active:
|
|
3178
|
-
border:
|
|
3202
|
+
content: colors.text.light.error,
|
|
3203
|
+
default: colors.transparent,
|
|
3204
|
+
hover: colors.red['50'],
|
|
3205
|
+
active: colors.red['100'],
|
|
3206
|
+
border: colors.border.light.error,
|
|
3179
3207
|
},
|
|
3180
3208
|
dark: {
|
|
3181
|
-
content:
|
|
3182
|
-
default:
|
|
3183
|
-
hover:
|
|
3184
|
-
active:
|
|
3185
|
-
border:
|
|
3209
|
+
content: colors.red['300'],
|
|
3210
|
+
default: colors.transparent,
|
|
3211
|
+
hover: colors.whiteAlpha['300'],
|
|
3212
|
+
active: colors.whiteAlpha['400'],
|
|
3213
|
+
border: colors.red['300'],
|
|
3186
3214
|
},
|
|
3187
3215
|
},
|
|
3188
3216
|
secondarySubtle: {
|
|
3189
3217
|
variant: 'outline',
|
|
3190
3218
|
light: {
|
|
3191
|
-
content:
|
|
3192
|
-
default:
|
|
3193
|
-
hover:
|
|
3194
|
-
active:
|
|
3195
|
-
border:
|
|
3219
|
+
content: colors.text.light.default,
|
|
3220
|
+
default: colors.white,
|
|
3221
|
+
hover: colors.gray['50'],
|
|
3222
|
+
active: colors.gray['100'],
|
|
3223
|
+
border: colors.border.light.default,
|
|
3196
3224
|
},
|
|
3197
3225
|
dark: {
|
|
3198
|
-
content:
|
|
3199
|
-
default:
|
|
3200
|
-
hover:
|
|
3201
|
-
active:
|
|
3202
|
-
border:
|
|
3226
|
+
content: colors.text.dark.default,
|
|
3227
|
+
default: colors.transparent,
|
|
3228
|
+
hover: colors.whiteAlpha['300'],
|
|
3229
|
+
active: colors.whiteAlpha['400'],
|
|
3230
|
+
border: colors.text.dark.default,
|
|
3203
3231
|
},
|
|
3204
3232
|
},
|
|
3205
3233
|
secondarySubtleDestructive: {
|
|
3206
3234
|
variant: 'outline',
|
|
3207
3235
|
light: {
|
|
3208
|
-
content:
|
|
3209
|
-
default:
|
|
3210
|
-
hover:
|
|
3211
|
-
active:
|
|
3212
|
-
border:
|
|
3236
|
+
content: colors.text.light.error,
|
|
3237
|
+
default: colors.white,
|
|
3238
|
+
hover: colors.red['50'],
|
|
3239
|
+
active: colors.red['100'],
|
|
3240
|
+
border: colors.border.light.default,
|
|
3213
3241
|
},
|
|
3214
3242
|
dark: {
|
|
3215
|
-
content:
|
|
3216
|
-
default:
|
|
3217
|
-
hover:
|
|
3218
|
-
active:
|
|
3219
|
-
border:
|
|
3243
|
+
content: colors.red['300'],
|
|
3244
|
+
default: colors.transparent,
|
|
3245
|
+
hover: colors.whiteAlpha['300'],
|
|
3246
|
+
active: colors.whiteAlpha['400'],
|
|
3247
|
+
border: colors.whiteAlpha['500'],
|
|
3220
3248
|
},
|
|
3221
3249
|
},
|
|
3222
3250
|
tertiary: {
|
|
3223
3251
|
variant: 'solid',
|
|
3224
3252
|
light: {
|
|
3225
|
-
content:
|
|
3226
|
-
default:
|
|
3227
|
-
hover:
|
|
3228
|
-
active:
|
|
3229
|
-
border:
|
|
3253
|
+
content: colors.text.light.default,
|
|
3254
|
+
default: colors.gray['100'],
|
|
3255
|
+
hover: colors.gray['200'],
|
|
3256
|
+
active: colors.gray['300'],
|
|
3257
|
+
border: colors.transparent,
|
|
3230
3258
|
},
|
|
3231
3259
|
dark: {
|
|
3232
|
-
content:
|
|
3233
|
-
default:
|
|
3234
|
-
hover:
|
|
3235
|
-
active:
|
|
3236
|
-
border:
|
|
3260
|
+
content: colors.text.dark.headline,
|
|
3261
|
+
default: colors.whiteAlpha[200],
|
|
3262
|
+
hover: colors.whiteAlpha[300],
|
|
3263
|
+
active: colors.whiteAlpha[400],
|
|
3264
|
+
border: colors.transparent,
|
|
3237
3265
|
},
|
|
3238
3266
|
},
|
|
3239
3267
|
tertiaryDestructive: {
|
|
3240
3268
|
variant: 'solid',
|
|
3241
3269
|
light: {
|
|
3242
|
-
content:
|
|
3243
|
-
default:
|
|
3244
|
-
hover:
|
|
3245
|
-
active:
|
|
3246
|
-
border:
|
|
3270
|
+
content: colors.text.light.error,
|
|
3271
|
+
default: colors.red['100'],
|
|
3272
|
+
hover: colors.red['200'],
|
|
3273
|
+
active: colors.red['300'],
|
|
3274
|
+
border: colors.transparent,
|
|
3247
3275
|
},
|
|
3248
3276
|
dark: {
|
|
3249
|
-
content:
|
|
3250
|
-
default:
|
|
3251
|
-
hover:
|
|
3252
|
-
active:
|
|
3253
|
-
border:
|
|
3277
|
+
content: colors.red['300'],
|
|
3278
|
+
default: colors.whiteAlpha['200'],
|
|
3279
|
+
hover: colors.whiteAlpha['300'],
|
|
3280
|
+
active: colors.whiteAlpha['400'],
|
|
3281
|
+
border: colors.transparent,
|
|
3254
3282
|
},
|
|
3255
3283
|
},
|
|
3256
3284
|
ghost: {
|
|
3257
3285
|
variant: 'ghost',
|
|
3258
3286
|
light: {
|
|
3259
|
-
content:
|
|
3260
|
-
default:
|
|
3261
|
-
hover:
|
|
3262
|
-
active:
|
|
3263
|
-
border:
|
|
3287
|
+
content: colors.text.light.link,
|
|
3288
|
+
default: colors.transparent,
|
|
3289
|
+
hover: colors.teal['100'],
|
|
3290
|
+
active: colors.teal['200'],
|
|
3291
|
+
border: colors.transparent,
|
|
3264
3292
|
},
|
|
3265
3293
|
dark: {
|
|
3266
|
-
content:
|
|
3267
|
-
default:
|
|
3268
|
-
hover:
|
|
3269
|
-
active:
|
|
3270
|
-
border:
|
|
3294
|
+
content: colors.teal['400'],
|
|
3295
|
+
default: colors.transparent,
|
|
3296
|
+
hover: colors.whiteAlpha['300'],
|
|
3297
|
+
active: colors.whiteAlpha['400'],
|
|
3298
|
+
border: colors.transparent,
|
|
3271
3299
|
},
|
|
3272
3300
|
},
|
|
3273
3301
|
ghostNeutral: {
|
|
3274
3302
|
variant: 'ghost',
|
|
3275
3303
|
light: {
|
|
3276
|
-
content:
|
|
3277
|
-
default:
|
|
3278
|
-
hover:
|
|
3279
|
-
active:
|
|
3280
|
-
border:
|
|
3304
|
+
content: colors.text.light.default,
|
|
3305
|
+
default: colors.transparent,
|
|
3306
|
+
hover: colors.blackAlpha['100'],
|
|
3307
|
+
active: colors.blackAlpha['200'],
|
|
3308
|
+
border: colors.transparent,
|
|
3281
3309
|
},
|
|
3282
3310
|
dark: {
|
|
3283
|
-
content:
|
|
3284
|
-
default:
|
|
3285
|
-
hover:
|
|
3286
|
-
active:
|
|
3287
|
-
border:
|
|
3311
|
+
content: colors.text.dark.headline,
|
|
3312
|
+
default: colors.transparent,
|
|
3313
|
+
hover: colors.whiteAlpha['300'],
|
|
3314
|
+
active: colors.whiteAlpha['400'],
|
|
3315
|
+
border: colors.transparent,
|
|
3288
3316
|
},
|
|
3289
3317
|
},
|
|
3290
3318
|
ghostDestructive: {
|
|
3291
3319
|
variant: 'ghost',
|
|
3292
3320
|
light: {
|
|
3293
|
-
content:
|
|
3294
|
-
default:
|
|
3295
|
-
hover:
|
|
3296
|
-
active:
|
|
3297
|
-
border:
|
|
3321
|
+
content: colors.text.light.error,
|
|
3322
|
+
default: colors.transparent,
|
|
3323
|
+
hover: colors.red['100'],
|
|
3324
|
+
active: colors.red['200'],
|
|
3325
|
+
border: colors.transparent,
|
|
3298
3326
|
},
|
|
3299
3327
|
dark: {
|
|
3300
|
-
content:
|
|
3301
|
-
default:
|
|
3302
|
-
hover:
|
|
3303
|
-
active:
|
|
3304
|
-
border:
|
|
3328
|
+
content: colors.red['300'],
|
|
3329
|
+
default: colors.transparent,
|
|
3330
|
+
hover: colors.whiteAlpha['300'],
|
|
3331
|
+
active: colors.whiteAlpha['400'],
|
|
3332
|
+
border: colors.transparent,
|
|
3305
3333
|
},
|
|
3306
3334
|
},
|
|
3307
3335
|
};
|
|
@@ -3430,4 +3458,6 @@ exports.TooltipConfig = TooltipConfig;
|
|
|
3430
3458
|
exports.TooltipGlobalStyle = TooltipGlobalStyle;
|
|
3431
3459
|
exports.theme = theme;
|
|
3432
3460
|
exports.useTheme = useTheme;
|
|
3461
|
+
exports.withDarkMode = withDarkMode;
|
|
3462
|
+
exports.withTheme = withTheme;
|
|
3433
3463
|
//# sourceMappingURL=index.js.map
|