@tosui/react 0.1.1 → 0.1.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/components/Accordion/Accordion.d.ts.map +1 -1
- package/dist/components/Accordion/Accordion.js +109 -0
- package/dist/components/Accordion/Accordion.js.map +1 -0
- package/dist/components/Accordion/accordion.module.css +36 -0
- package/dist/components/Accordion/accordion.module.css.js +27 -0
- package/dist/components/Accordion/accordion.module.css.js.map +1 -0
- package/dist/components/Alert/Alert.js +109 -0
- package/dist/components/Alert/Alert.js.map +1 -0
- package/dist/components/Alert/alert.module.css +27 -0
- package/dist/components/Alert/alert.module.css.js +24 -0
- package/dist/components/Alert/alert.module.css.js.map +1 -0
- package/dist/components/Avatar/Avatar.d.ts.map +1 -1
- package/dist/components/Avatar/Avatar.js +72 -0
- package/dist/components/Avatar/Avatar.js.map +1 -0
- package/dist/components/Avatar/avatar.module.css +14 -0
- package/dist/components/Avatar/avatar.module.css.js +15 -0
- package/dist/components/Avatar/avatar.module.css.js.map +1 -0
- package/dist/components/Badge/Badge.js +66 -0
- package/dist/components/Badge/Badge.js.map +1 -0
- package/dist/components/Badge/badge.module.css +3 -0
- package/dist/components/Badge/badge.module.css.js +9 -0
- package/dist/components/Badge/badge.module.css.js.map +1 -0
- package/dist/components/Box/Box.js +217 -0
- package/dist/components/Box/Box.js.map +1 -0
- package/dist/components/Box/borders/borders.js +91 -0
- package/dist/components/Box/borders/borders.js.map +1 -0
- package/dist/components/Box/borders/borders.module.css +49 -0
- package/dist/components/Box/borders/borders.module.css.js +46 -0
- package/dist/components/Box/borders/borders.module.css.js.map +1 -0
- package/dist/components/Box/colors/colors.js +45 -0
- package/dist/components/Box/colors/colors.js.map +1 -0
- package/dist/components/Box/colors/colors.module.css +113 -0
- package/dist/components/Box/colors/colors.module.css.js +114 -0
- package/dist/components/Box/colors/colors.module.css.js.map +1 -0
- package/dist/components/Box/display/display.js +52 -0
- package/dist/components/Box/display/display.js.map +1 -0
- package/dist/components/Box/display/display.module.css +375 -0
- package/dist/components/Box/display/display.module.css.js +318 -0
- package/dist/components/Box/display/display.module.css.js.map +1 -0
- package/dist/components/Box/flexbox/flexbox.js +139 -0
- package/dist/components/Box/flexbox/flexbox.js.map +1 -0
- package/dist/components/Box/flexbox/flexbox.module.css +65 -0
- package/dist/components/Box/flexbox/flexbox.module.css.js +62 -0
- package/dist/components/Box/flexbox/flexbox.module.css.js.map +1 -0
- package/dist/components/Box/grid/grid.js +49 -0
- package/dist/components/Box/grid/grid.js.map +1 -0
- package/dist/components/Box/grid/grid.module.css +19 -0
- package/dist/components/Box/grid/grid.module.css.js +20 -0
- package/dist/components/Box/grid/grid.module.css.js.map +1 -0
- package/dist/components/Box/inset/inset.js +96 -0
- package/dist/components/Box/inset/inset.js.map +1 -0
- package/dist/components/Box/inset/inset.module.css +187 -0
- package/dist/components/Box/inset/inset.module.css.js +174 -0
- package/dist/components/Box/inset/inset.module.css.js.map +1 -0
- package/dist/components/Box/interactions/interactions.js +45 -0
- package/dist/components/Box/interactions/interactions.js.map +1 -0
- package/dist/components/Box/interactions/interactions.module.css +43 -0
- package/dist/components/Box/interactions/interactions.module.css.js +44 -0
- package/dist/components/Box/interactions/interactions.module.css.js.map +1 -0
- package/dist/components/Box/margin/margin.js +96 -0
- package/dist/components/Box/margin/margin.js.map +1 -0
- package/dist/components/Box/margin/margin.module.css +187 -0
- package/dist/components/Box/margin/margin.module.css.js +174 -0
- package/dist/components/Box/margin/margin.module.css.js.map +1 -0
- package/dist/components/Box/opacity/opacity.js +52 -0
- package/dist/components/Box/opacity/opacity.js.map +1 -0
- package/dist/components/Box/opacity/opacity.module.css +51 -0
- package/dist/components/Box/opacity/opacity.module.css.js +174 -0
- package/dist/components/Box/opacity/opacity.module.css.js.map +1 -0
- package/dist/components/Box/overflow/overflow.js +69 -0
- package/dist/components/Box/overflow/overflow.js.map +1 -0
- package/dist/components/Box/overflow/overflow.module.css +155 -0
- package/dist/components/Box/overflow/overflow.module.css.js +510 -0
- package/dist/components/Box/overflow/overflow.module.css.js.map +1 -0
- package/dist/components/Box/padding/padding.js +96 -0
- package/dist/components/Box/padding/padding.js.map +1 -0
- package/dist/components/Box/padding/padding.module.css +187 -0
- package/dist/components/Box/padding/padding.module.css.js +174 -0
- package/dist/components/Box/padding/padding.module.css.js.map +1 -0
- package/dist/components/Box/position/position.js +52 -0
- package/dist/components/Box/position/position.js.map +1 -0
- package/dist/components/Box/position/position.module.css +234 -0
- package/dist/components/Box/position/position.module.css.js +214 -0
- package/dist/components/Box/position/position.module.css.js.map +1 -0
- package/dist/components/Box/reset/reset.js +6 -0
- package/dist/components/Box/reset/reset.js.map +1 -0
- package/dist/components/Box/reset/reset.module.css +23 -0
- package/dist/components/Box/reset/reset.module.css.js +9 -0
- package/dist/components/Box/reset/reset.module.css.js.map +1 -0
- package/dist/components/Box/roundness/roundness.js +92 -0
- package/dist/components/Box/roundness/roundness.js.map +1 -0
- package/dist/components/Box/roundness/roundness.module.css +47 -0
- package/dist/components/Box/roundness/roundness.module.css.js +46 -0
- package/dist/components/Box/roundness/roundness.module.css.js.map +1 -0
- package/dist/components/Box/shadows/shadows.js +52 -0
- package/dist/components/Box/shadows/shadows.js.map +1 -0
- package/dist/components/Box/shadows/shadows.module.css +51 -0
- package/dist/components/Box/shadows/shadows.module.css.js +174 -0
- package/dist/components/Box/shadows/shadows.module.css.js.map +1 -0
- package/dist/components/Box/shared/constants.js +21 -0
- package/dist/components/Box/shared/constants.js.map +1 -0
- package/dist/components/Box/shared/spacing.js +10 -0
- package/dist/components/Box/shared/spacing.js.map +1 -0
- package/dist/components/Box/sizing/sizing.js +75 -0
- package/dist/components/Box/sizing/sizing.js.map +1 -0
- package/dist/components/Box/sizing/sizing.module.css +281 -0
- package/dist/components/Box/sizing/sizing.module.css.js +258 -0
- package/dist/components/Box/sizing/sizing.module.css.js.map +1 -0
- package/dist/components/Box/text/text.js +45 -0
- package/dist/components/Box/text/text.js.map +1 -0
- package/dist/components/Box/text/text.module.css +29 -0
- package/dist/components/Box/text/text.module.css.js +30 -0
- package/dist/components/Box/text/text.module.css.js.map +1 -0
- package/dist/components/Box/typography/typography.js +27 -0
- package/dist/components/Box/typography/typography.js.map +1 -0
- package/dist/components/Box/typography/typography.module.css +26 -0
- package/dist/components/Box/typography/typography.module.css.js +25 -0
- package/dist/components/Box/typography/typography.module.css.js.map +1 -0
- package/dist/components/Box/zIndex/zIndex.js +52 -0
- package/dist/components/Box/zIndex/zIndex.js.map +1 -0
- package/dist/components/Box/zIndex/zIndex.module.css +90 -0
- package/dist/components/Box/zIndex/zIndex.module.css.js +300 -0
- package/dist/components/Box/zIndex/zIndex.module.css.js.map +1 -0
- package/dist/components/Breadcrumb/Breadcrumb.js +78 -0
- package/dist/components/Breadcrumb/Breadcrumb.js.map +1 -0
- package/dist/components/Breadcrumb/breadcrumb.module.css +25 -0
- package/dist/components/Breadcrumb/breadcrumb.module.css.js +21 -0
- package/dist/components/Breadcrumb/breadcrumb.module.css.js.map +1 -0
- package/dist/components/Button/Button.js +129 -0
- package/dist/components/Button/Button.js.map +1 -0
- package/dist/components/Button/button.module.css +17 -0
- package/dist/components/Button/button.module.css.js +18 -0
- package/dist/components/Button/button.module.css.js.map +1 -0
- package/dist/components/Card/Card.js +60 -0
- package/dist/components/Card/Card.js.map +1 -0
- package/dist/components/Card/card.module.css +16 -0
- package/dist/components/Card/card.module.css.js +18 -0
- package/dist/components/Card/card.module.css.js.map +1 -0
- package/dist/components/Checkbox/Checkbox.js +74 -0
- package/dist/components/Checkbox/Checkbox.js.map +1 -0
- package/dist/components/Checkbox/checkbox.module.css +65 -0
- package/dist/components/Checkbox/checkbox.module.css.js +15 -0
- package/dist/components/Checkbox/checkbox.module.css.js.map +1 -0
- package/dist/components/Code/Code.js +32 -0
- package/dist/components/Code/Code.js.map +1 -0
- package/dist/components/Container/Container.js +44 -0
- package/dist/components/Container/Container.js.map +1 -0
- package/dist/components/Divider/Divider.js +48 -0
- package/dist/components/Divider/Divider.js.map +1 -0
- package/dist/components/Flex/Flex.js +48 -0
- package/dist/components/Flex/Flex.js.map +1 -0
- package/dist/components/FormField/FormField.js +52 -0
- package/dist/components/FormField/FormField.js.map +1 -0
- package/dist/components/Grid/Grid.js +41 -0
- package/dist/components/Grid/Grid.js.map +1 -0
- package/dist/components/HStack/HStack.js +17 -0
- package/dist/components/HStack/HStack.js.map +1 -0
- package/dist/components/Heading/Heading.js +42 -0
- package/dist/components/Heading/Heading.js.map +1 -0
- package/dist/components/IconButton/IconButton.js +93 -0
- package/dist/components/IconButton/IconButton.js.map +1 -0
- package/dist/components/IconButton/iconbutton.module.css +18 -0
- package/dist/components/IconButton/iconbutton.module.css.js +18 -0
- package/dist/components/IconButton/iconbutton.module.css.js.map +1 -0
- package/dist/components/Image/Image.d.ts.map +1 -1
- package/dist/components/Image/Image.js +101 -0
- package/dist/components/Image/Image.js.map +1 -0
- package/dist/components/Image/image.module.css +44 -0
- package/dist/components/Image/image.module.css.js +36 -0
- package/dist/components/Image/image.module.css.js.map +1 -0
- package/dist/components/Input/Input.js +57 -0
- package/dist/components/Input/Input.js.map +1 -0
- package/dist/components/Input/input.module.css +29 -0
- package/dist/components/Input/input.module.css.js +12 -0
- package/dist/components/Input/input.module.css.js.map +1 -0
- package/dist/components/Label/Label.js +36 -0
- package/dist/components/Label/Label.js.map +1 -0
- package/dist/components/Link/Link.js +38 -0
- package/dist/components/Link/Link.js.map +1 -0
- package/dist/components/Link/link.module.css +28 -0
- package/dist/components/Link/link.module.css.js +16 -0
- package/dist/components/Link/link.module.css.js.map +1 -0
- package/dist/components/List/List.js +51 -0
- package/dist/components/List/List.js.map +1 -0
- package/dist/components/List/list.module.css +45 -0
- package/dist/components/List/list.module.css.js +24 -0
- package/dist/components/List/list.module.css.js.map +1 -0
- package/dist/components/Menu/Menu.d.ts.map +1 -1
- package/dist/components/Menu/Menu.js +143 -0
- package/dist/components/Menu/Menu.js.map +1 -0
- package/dist/components/Menu/menu.module.css +24 -0
- package/dist/components/Menu/menu.module.css.js +18 -0
- package/dist/components/Menu/menu.module.css.js.map +1 -0
- package/dist/components/Modal/Modal.d.ts.map +1 -1
- package/dist/components/Modal/Modal.js +130 -0
- package/dist/components/Modal/Modal.js.map +1 -0
- package/dist/components/Modal/modal.module.css +26 -0
- package/dist/components/Modal/modal.module.css.js +21 -0
- package/dist/components/Modal/modal.module.css.js.map +1 -0
- package/dist/components/Pagination/Pagination.js +125 -0
- package/dist/components/Pagination/Pagination.js.map +1 -0
- package/dist/components/Pagination/pagination.module.css +3 -0
- package/dist/components/Pagination/pagination.module.css.js +9 -0
- package/dist/components/Pagination/pagination.module.css.js.map +1 -0
- package/dist/components/Popover/Popover.d.ts.map +1 -1
- package/dist/components/Popover/Popover.js +144 -0
- package/dist/components/Popover/Popover.js.map +1 -0
- package/dist/components/Popover/popover.module.css +11 -0
- package/dist/components/Popover/popover.module.css.js +15 -0
- package/dist/components/Popover/popover.module.css.js.map +1 -0
- package/dist/components/Progress/Progress.js +54 -0
- package/dist/components/Progress/Progress.js.map +1 -0
- package/dist/components/Progress/progress.module.css +24 -0
- package/dist/components/Progress/progress.module.css.js +15 -0
- package/dist/components/Progress/progress.module.css.js.map +1 -0
- package/dist/components/Radio/Radio.js +70 -0
- package/dist/components/Radio/Radio.js.map +1 -0
- package/dist/components/Radio/radio.module.css +48 -0
- package/dist/components/Radio/radio.module.css.js +12 -0
- package/dist/components/Radio/radio.module.css.js.map +1 -0
- package/dist/components/Select/Select.js +57 -0
- package/dist/components/Select/Select.js.map +1 -0
- package/dist/components/Select/select.module.css +43 -0
- package/dist/components/Select/select.module.css.js +12 -0
- package/dist/components/Select/select.module.css.js.map +1 -0
- package/dist/components/Skeleton/Skeleton.js +37 -0
- package/dist/components/Skeleton/Skeleton.js.map +1 -0
- package/dist/components/Skeleton/skeleton.module.css +26 -0
- package/dist/components/Skeleton/skeleton.module.css.js +9 -0
- package/dist/components/Skeleton/skeleton.module.css.js.map +1 -0
- package/dist/components/Spacer/Spacer.js +16 -0
- package/dist/components/Spacer/Spacer.js.map +1 -0
- package/dist/components/Spinner/Spinner.js +41 -0
- package/dist/components/Spinner/Spinner.js.map +1 -0
- package/dist/components/Spinner/spinner.module.css +21 -0
- package/dist/components/Spinner/spinner.module.css.js +9 -0
- package/dist/components/Spinner/spinner.module.css.js.map +1 -0
- package/dist/components/Stack/Stack.js +35 -0
- package/dist/components/Stack/Stack.js.map +1 -0
- package/dist/components/Switch/Switch.js +83 -0
- package/dist/components/Switch/Switch.js.map +1 -0
- package/dist/components/Switch/switch.module.css +48 -0
- package/dist/components/Switch/switch.module.css.js +15 -0
- package/dist/components/Switch/switch.module.css.js.map +1 -0
- package/dist/components/Tabs/Tabs.d.ts.map +1 -1
- package/dist/components/Tabs/Tabs.js +87 -0
- package/dist/components/Tabs/Tabs.js.map +1 -0
- package/dist/components/Tabs/tabs.module.css +55 -0
- package/dist/components/Tabs/tabs.module.css.js +27 -0
- package/dist/components/Tabs/tabs.module.css.js.map +1 -0
- package/dist/components/Text/Text.js +40 -0
- package/dist/components/Text/Text.js.map +1 -0
- package/dist/components/Text/text.module.css +9 -0
- package/dist/components/Text/text.module.css.js +12 -0
- package/dist/components/Text/text.module.css.js.map +1 -0
- package/dist/components/Textarea/Textarea.js +70 -0
- package/dist/components/Textarea/Textarea.js.map +1 -0
- package/dist/components/Textarea/textarea.module.css +46 -0
- package/dist/components/Textarea/textarea.module.css.js +24 -0
- package/dist/components/Textarea/textarea.module.css.js.map +1 -0
- package/dist/components/Tooltip/Tooltip.d.ts.map +1 -1
- package/dist/components/Tooltip/Tooltip.js +135 -0
- package/dist/components/Tooltip/Tooltip.js.map +1 -0
- package/dist/components/Tooltip/tooltip.module.css +4 -0
- package/dist/components/Tooltip/tooltip.module.css.js +9 -0
- package/dist/components/Tooltip/tooltip.module.css.js.map +1 -0
- package/dist/components/VStack/VStack.js +17 -0
- package/dist/components/VStack/VStack.js.map +1 -0
- package/dist/fonts.css +23 -1
- package/dist/index.css +3320 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +99 -5521
- package/dist/index.js.map +1 -1
- package/dist/styles/styles.css +353 -0
- package/package.json +8 -4
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import { STATE_SUFFIXES, STATE_CLASS_SUFFIXES, RESPONSIVE_KEYS } from "../shared/constants.js";
|
|
2
|
+
import { getRawValue } from "../shared/spacing.js";
|
|
3
|
+
import styles from "./margin.module.css.js";
|
|
4
|
+
import clsx from "clsx";
|
|
5
|
+
function getSpacingProps(key, value, state = "base") {
|
|
6
|
+
const result = { className: "", style: {} };
|
|
7
|
+
if (value === void 0) return result;
|
|
8
|
+
const stateSuffix = STATE_SUFFIXES[state];
|
|
9
|
+
const stateClassSuffix = STATE_CLASS_SUFFIXES[state];
|
|
10
|
+
if (typeof value !== "object") {
|
|
11
|
+
const rawValue = getRawValue(value);
|
|
12
|
+
if (rawValue !== void 0) {
|
|
13
|
+
const className = stateClassSuffix ? styles[`${key}${stateClassSuffix}`] : styles[key];
|
|
14
|
+
result.className = className || "";
|
|
15
|
+
result.style[`--t-${key}${stateSuffix}`] = rawValue;
|
|
16
|
+
}
|
|
17
|
+
return result;
|
|
18
|
+
}
|
|
19
|
+
for (const responsiveKey of RESPONSIVE_KEYS) {
|
|
20
|
+
const rawValue = getRawValue(value[responsiveKey]);
|
|
21
|
+
if (rawValue === void 0) continue;
|
|
22
|
+
let className;
|
|
23
|
+
let varName;
|
|
24
|
+
if (responsiveKey === "base") {
|
|
25
|
+
className = stateClassSuffix ? styles[`${key}${stateClassSuffix}`] : styles[key];
|
|
26
|
+
varName = `--t-${key}${stateSuffix}`;
|
|
27
|
+
} else {
|
|
28
|
+
className = stateClassSuffix ? styles[`${key}_${responsiveKey}${stateClassSuffix}`] : styles[`${key}_${responsiveKey}`];
|
|
29
|
+
varName = `--t-${key}_${responsiveKey}${stateSuffix}`;
|
|
30
|
+
}
|
|
31
|
+
if (className) {
|
|
32
|
+
result.className = clsx(result.className, className);
|
|
33
|
+
}
|
|
34
|
+
result.style[varName] = rawValue;
|
|
35
|
+
}
|
|
36
|
+
return result;
|
|
37
|
+
}
|
|
38
|
+
function resolveMarginValue(key, props) {
|
|
39
|
+
const shorthandMap = {
|
|
40
|
+
mt: "my",
|
|
41
|
+
mb: "my",
|
|
42
|
+
mr: "mx",
|
|
43
|
+
ml: "mx"
|
|
44
|
+
};
|
|
45
|
+
return props[key] ?? props[shorthandMap[key]] ?? props.m;
|
|
46
|
+
}
|
|
47
|
+
function getMarginStylesForState(props, state) {
|
|
48
|
+
const result = { className: "", style: {} };
|
|
49
|
+
if (!props) return result;
|
|
50
|
+
const marginTop = getSpacingProps("mt", resolveMarginValue("mt", props), state);
|
|
51
|
+
const marginRight = getSpacingProps("mr", resolveMarginValue("mr", props), state);
|
|
52
|
+
const marginBottom = getSpacingProps("mb", resolveMarginValue("mb", props), state);
|
|
53
|
+
const marginLeft = getSpacingProps("ml", resolveMarginValue("ml", props), state);
|
|
54
|
+
return {
|
|
55
|
+
className: clsx(
|
|
56
|
+
marginTop.className,
|
|
57
|
+
marginRight.className,
|
|
58
|
+
marginBottom.className,
|
|
59
|
+
marginLeft.className
|
|
60
|
+
),
|
|
61
|
+
style: {
|
|
62
|
+
...marginTop.style,
|
|
63
|
+
...marginRight.style,
|
|
64
|
+
...marginBottom.style,
|
|
65
|
+
...marginLeft.style
|
|
66
|
+
}
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
function getMarginStyles(props) {
|
|
70
|
+
const { _hover, _focus, _active, _disabled, ...baseProps } = props;
|
|
71
|
+
const baseStyles = getMarginStylesForState(baseProps, "base");
|
|
72
|
+
const hoverStyles = getMarginStylesForState(_hover, "hover");
|
|
73
|
+
const focusStyles = getMarginStylesForState(_focus, "focus");
|
|
74
|
+
const activeStyles = getMarginStylesForState(_active, "active");
|
|
75
|
+
const disabledStyles = getMarginStylesForState(_disabled, "disabled");
|
|
76
|
+
return {
|
|
77
|
+
className: clsx(
|
|
78
|
+
baseStyles.className,
|
|
79
|
+
hoverStyles.className,
|
|
80
|
+
focusStyles.className,
|
|
81
|
+
activeStyles.className,
|
|
82
|
+
disabledStyles.className
|
|
83
|
+
),
|
|
84
|
+
style: {
|
|
85
|
+
...baseStyles.style,
|
|
86
|
+
...hoverStyles.style,
|
|
87
|
+
...focusStyles.style,
|
|
88
|
+
...activeStyles.style,
|
|
89
|
+
...disabledStyles.style
|
|
90
|
+
}
|
|
91
|
+
};
|
|
92
|
+
}
|
|
93
|
+
export {
|
|
94
|
+
getMarginStyles
|
|
95
|
+
};
|
|
96
|
+
//# sourceMappingURL=margin.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"margin.js","sources":["../../../../src/components/Box/margin/margin.ts"],"sourcesContent":["import type { ResponsiveValue } from \"@/utils/breakpoints\";\nimport {\n RESPONSIVE_KEYS,\n STATE_SUFFIXES,\n STATE_CLASS_SUFFIXES,\n type StateKey,\n type StyleResult,\n getRawValue,\n} from \"../shared\";\nimport styles from \"./margin.module.css\";\nimport clsx from \"clsx\";\n\ntype SpacingValue = string | number;\ntype MarginKey = \"mt\" | \"mr\" | \"mb\" | \"ml\";\ntype MarginShorthandKey = \"m\" | \"mx\" | \"my\";\n\nexport type MarginProps = {\n m?: ResponsiveValue<SpacingValue>;\n mt?: ResponsiveValue<SpacingValue>;\n mr?: ResponsiveValue<SpacingValue>;\n mb?: ResponsiveValue<SpacingValue>;\n ml?: ResponsiveValue<SpacingValue>;\n mx?: ResponsiveValue<SpacingValue>;\n my?: ResponsiveValue<SpacingValue>;\n};\n\nexport type MarginStateProps = {\n _hover?: MarginProps;\n _focus?: MarginProps;\n _active?: MarginProps;\n _disabled?: MarginProps;\n};\n\nfunction getSpacingProps(\n key: MarginKey,\n value: ResponsiveValue<SpacingValue> | undefined,\n state: StateKey = \"base\"\n): StyleResult {\n const result: StyleResult = { className: \"\", style: {} };\n\n if (value === undefined) return result;\n\n const stateSuffix = STATE_SUFFIXES[state];\n const stateClassSuffix = STATE_CLASS_SUFFIXES[state];\n\n if (typeof value !== \"object\") {\n const rawValue = getRawValue(value);\n if (rawValue !== undefined) {\n const className = stateClassSuffix\n ? styles[`${key}${stateClassSuffix}`]\n : styles[key];\n result.className = className || \"\";\n result.style[`--t-${key}${stateSuffix}`] = rawValue;\n }\n return result;\n }\n\n for (const responsiveKey of RESPONSIVE_KEYS) {\n const rawValue = getRawValue(value[responsiveKey]);\n if (rawValue === undefined) continue;\n\n let className: string | undefined;\n let varName: string;\n\n if (responsiveKey === \"base\") {\n className = stateClassSuffix\n ? styles[`${key}${stateClassSuffix}`]\n : styles[key];\n varName = `--t-${key}${stateSuffix}`;\n } else {\n className = stateClassSuffix\n ? styles[`${key}_${responsiveKey}${stateClassSuffix}`]\n : styles[`${key}_${responsiveKey}`];\n varName = `--t-${key}_${responsiveKey}${stateSuffix}`;\n }\n\n if (className) {\n result.className = clsx(result.className, className);\n }\n result.style[varName] = rawValue;\n }\n\n return result;\n}\n\nfunction resolveMarginValue(\n key: MarginKey,\n props: MarginProps\n): ResponsiveValue<SpacingValue> | undefined {\n const shorthandMap: Record<MarginKey, MarginShorthandKey> = {\n mt: \"my\",\n mb: \"my\",\n mr: \"mx\",\n ml: \"mx\",\n };\n return props[key] ?? props[shorthandMap[key]] ?? props.m;\n}\n\nfunction getMarginStylesForState(\n props: MarginProps | undefined,\n state: StateKey\n): StyleResult {\n const result: StyleResult = { className: \"\", style: {} };\n\n if (!props) return result;\n\n const marginTop = getSpacingProps(\"mt\", resolveMarginValue(\"mt\", props), state);\n const marginRight = getSpacingProps(\"mr\", resolveMarginValue(\"mr\", props), state);\n const marginBottom = getSpacingProps(\"mb\", resolveMarginValue(\"mb\", props), state);\n const marginLeft = getSpacingProps(\"ml\", resolveMarginValue(\"ml\", props), state);\n\n return {\n className: clsx(\n marginTop.className,\n marginRight.className,\n marginBottom.className,\n marginLeft.className\n ),\n style: {\n ...marginTop.style,\n ...marginRight.style,\n ...marginBottom.style,\n ...marginLeft.style,\n },\n };\n}\n\nexport function getMarginStyles(\n props: MarginProps & MarginStateProps\n): StyleResult {\n const { _hover, _focus, _active, _disabled, ...baseProps } = props;\n\n const baseStyles = getMarginStylesForState(baseProps, \"base\");\n const hoverStyles = getMarginStylesForState(_hover, \"hover\");\n const focusStyles = getMarginStylesForState(_focus, \"focus\");\n const activeStyles = getMarginStylesForState(_active, \"active\");\n const disabledStyles = getMarginStylesForState(_disabled, \"disabled\");\n\n return {\n className: clsx(\n baseStyles.className,\n hoverStyles.className,\n focusStyles.className,\n activeStyles.className,\n disabledStyles.className\n ),\n style: {\n ...baseStyles.style,\n ...hoverStyles.style,\n ...focusStyles.style,\n ...activeStyles.style,\n ...disabledStyles.style,\n },\n };\n}\n"],"names":[],"mappings":";;;;AAiCA,SAAS,gBACP,KACA,OACA,QAAkB,QACL;AACb,QAAM,SAAsB,EAAE,WAAW,IAAI,OAAO,CAAA,EAAC;AAErD,MAAI,UAAU,OAAW,QAAO;AAEhC,QAAM,cAAc,eAAe,KAAK;AACxC,QAAM,mBAAmB,qBAAqB,KAAK;AAEnD,MAAI,OAAO,UAAU,UAAU;AAC7B,UAAM,WAAW,YAAY,KAAK;AAClC,QAAI,aAAa,QAAW;AAC1B,YAAM,YAAY,mBACd,OAAO,GAAG,GAAG,GAAG,gBAAgB,EAAE,IAClC,OAAO,GAAG;AACd,aAAO,YAAY,aAAa;AAChC,aAAO,MAAM,OAAO,GAAG,GAAG,WAAW,EAAE,IAAI;AAAA,IAC7C;AACA,WAAO;AAAA,EACT;AAEA,aAAW,iBAAiB,iBAAiB;AAC3C,UAAM,WAAW,YAAY,MAAM,aAAa,CAAC;AACjD,QAAI,aAAa,OAAW;AAE5B,QAAI;AACJ,QAAI;AAEJ,QAAI,kBAAkB,QAAQ;AAC5B,kBAAY,mBACR,OAAO,GAAG,GAAG,GAAG,gBAAgB,EAAE,IAClC,OAAO,GAAG;AACd,gBAAU,OAAO,GAAG,GAAG,WAAW;AAAA,IACpC,OAAO;AACL,kBAAY,mBACR,OAAO,GAAG,GAAG,IAAI,aAAa,GAAG,gBAAgB,EAAE,IACnD,OAAO,GAAG,GAAG,IAAI,aAAa,EAAE;AACpC,gBAAU,OAAO,GAAG,IAAI,aAAa,GAAG,WAAW;AAAA,IACrD;AAEA,QAAI,WAAW;AACb,aAAO,YAAY,KAAK,OAAO,WAAW,SAAS;AAAA,IACrD;AACA,WAAO,MAAM,OAAO,IAAI;AAAA,EAC1B;AAEA,SAAO;AACT;AAEA,SAAS,mBACP,KACA,OAC2C;AAC3C,QAAM,eAAsD;AAAA,IAC1D,IAAI;AAAA,IACJ,IAAI;AAAA,IACJ,IAAI;AAAA,IACJ,IAAI;AAAA,EAAA;AAEN,SAAO,MAAM,GAAG,KAAK,MAAM,aAAa,GAAG,CAAC,KAAK,MAAM;AACzD;AAEA,SAAS,wBACP,OACA,OACa;AACb,QAAM,SAAsB,EAAE,WAAW,IAAI,OAAO,CAAA,EAAC;AAErD,MAAI,CAAC,MAAO,QAAO;AAEnB,QAAM,YAAY,gBAAgB,MAAM,mBAAmB,MAAM,KAAK,GAAG,KAAK;AAC9E,QAAM,cAAc,gBAAgB,MAAM,mBAAmB,MAAM,KAAK,GAAG,KAAK;AAChF,QAAM,eAAe,gBAAgB,MAAM,mBAAmB,MAAM,KAAK,GAAG,KAAK;AACjF,QAAM,aAAa,gBAAgB,MAAM,mBAAmB,MAAM,KAAK,GAAG,KAAK;AAE/E,SAAO;AAAA,IACL,WAAW;AAAA,MACT,UAAU;AAAA,MACV,YAAY;AAAA,MACZ,aAAa;AAAA,MACb,WAAW;AAAA,IAAA;AAAA,IAEb,OAAO;AAAA,MACL,GAAG,UAAU;AAAA,MACb,GAAG,YAAY;AAAA,MACf,GAAG,aAAa;AAAA,MAChB,GAAG,WAAW;AAAA,IAAA;AAAA,EAChB;AAEJ;AAEO,SAAS,gBACd,OACa;AACb,QAAM,EAAE,QAAQ,QAAQ,SAAS,WAAW,GAAG,cAAc;AAE7D,QAAM,aAAa,wBAAwB,WAAW,MAAM;AAC5D,QAAM,cAAc,wBAAwB,QAAQ,OAAO;AAC3D,QAAM,cAAc,wBAAwB,QAAQ,OAAO;AAC3D,QAAM,eAAe,wBAAwB,SAAS,QAAQ;AAC9D,QAAM,iBAAiB,wBAAwB,WAAW,UAAU;AAEpE,SAAO;AAAA,IACL,WAAW;AAAA,MACT,WAAW;AAAA,MACX,YAAY;AAAA,MACZ,YAAY;AAAA,MACZ,aAAa;AAAA,MACb,eAAe;AAAA,IAAA;AAAA,IAEjB,OAAO;AAAA,MACL,GAAG,WAAW;AAAA,MACd,GAAG,YAAY;AAAA,MACf,GAAG,YAAY;AAAA,MACf,GAAG,aAAa;AAAA,MAChB,GAAG,eAAe;AAAA,IAAA;AAAA,EACpB;AAEJ;"}
|
|
@@ -0,0 +1,187 @@
|
|
|
1
|
+
/* margin-top */
|
|
2
|
+
._mt_17rt1_2 { margin-top: var(--t-mt); }
|
|
3
|
+
._mt\:h_17rt1_3:hover { margin-top: var(--t-mt-h); }
|
|
4
|
+
._mt\:f_17rt1_4:focus { margin-top: var(--t-mt-f); }
|
|
5
|
+
._mt\:a_17rt1_5:active { margin-top: var(--t-mt-a); }
|
|
6
|
+
._mt\:d_17rt1_6:disabled { margin-top: var(--t-mt-d); }
|
|
7
|
+
|
|
8
|
+
@media (min-width: 640px) {
|
|
9
|
+
._mt_sm_17rt1_9 { margin-top: var(--t-mt_sm); }
|
|
10
|
+
._mt_sm\:h_17rt1_10:hover { margin-top: var(--t-mt_sm-h); }
|
|
11
|
+
._mt_sm\:f_17rt1_11:focus { margin-top: var(--t-mt_sm-f); }
|
|
12
|
+
._mt_sm\:a_17rt1_12:active { margin-top: var(--t-mt_sm-a); }
|
|
13
|
+
._mt_sm\:d_17rt1_13:disabled { margin-top: var(--t-mt_sm-d); }
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
@media (min-width: 768px) {
|
|
17
|
+
._mt_md_17rt1_17 { margin-top: var(--t-mt_md); }
|
|
18
|
+
._mt_md\:h_17rt1_18:hover { margin-top: var(--t-mt_md-h); }
|
|
19
|
+
._mt_md\:f_17rt1_19:focus { margin-top: var(--t-mt_md-f); }
|
|
20
|
+
._mt_md\:a_17rt1_20:active { margin-top: var(--t-mt_md-a); }
|
|
21
|
+
._mt_md\:d_17rt1_21:disabled { margin-top: var(--t-mt_md-d); }
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
@media (min-width: 1024px) {
|
|
25
|
+
._mt_lg_17rt1_25 { margin-top: var(--t-mt_lg); }
|
|
26
|
+
._mt_lg\:h_17rt1_26:hover { margin-top: var(--t-mt_lg-h); }
|
|
27
|
+
._mt_lg\:f_17rt1_27:focus { margin-top: var(--t-mt_lg-f); }
|
|
28
|
+
._mt_lg\:a_17rt1_28:active { margin-top: var(--t-mt_lg-a); }
|
|
29
|
+
._mt_lg\:d_17rt1_29:disabled { margin-top: var(--t-mt_lg-d); }
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
@media (min-width: 1280px) {
|
|
33
|
+
._mt_xl_17rt1_33 { margin-top: var(--t-mt_xl); }
|
|
34
|
+
._mt_xl\:h_17rt1_34:hover { margin-top: var(--t-mt_xl-h); }
|
|
35
|
+
._mt_xl\:f_17rt1_35:focus { margin-top: var(--t-mt_xl-f); }
|
|
36
|
+
._mt_xl\:a_17rt1_36:active { margin-top: var(--t-mt_xl-a); }
|
|
37
|
+
._mt_xl\:d_17rt1_37:disabled { margin-top: var(--t-mt_xl-d); }
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
@media (min-width: 1536px) {
|
|
41
|
+
._mt_2xl_17rt1_41 { margin-top: var(--t-mt_2xl); }
|
|
42
|
+
._mt_2xl\:h_17rt1_42:hover { margin-top: var(--t-mt_2xl-h); }
|
|
43
|
+
._mt_2xl\:f_17rt1_43:focus { margin-top: var(--t-mt_2xl-f); }
|
|
44
|
+
._mt_2xl\:a_17rt1_44:active { margin-top: var(--t-mt_2xl-a); }
|
|
45
|
+
._mt_2xl\:d_17rt1_45:disabled { margin-top: var(--t-mt_2xl-d); }
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/* margin-right */
|
|
49
|
+
._mr_17rt1_49 { margin-right: var(--t-mr); }
|
|
50
|
+
._mr\:h_17rt1_50:hover { margin-right: var(--t-mr-h); }
|
|
51
|
+
._mr\:f_17rt1_51:focus { margin-right: var(--t-mr-f); }
|
|
52
|
+
._mr\:a_17rt1_52:active { margin-right: var(--t-mr-a); }
|
|
53
|
+
._mr\:d_17rt1_53:disabled { margin-right: var(--t-mr-d); }
|
|
54
|
+
|
|
55
|
+
@media (min-width: 640px) {
|
|
56
|
+
._mr_sm_17rt1_56 { margin-right: var(--t-mr_sm); }
|
|
57
|
+
._mr_sm\:h_17rt1_57:hover { margin-right: var(--t-mr_sm-h); }
|
|
58
|
+
._mr_sm\:f_17rt1_58:focus { margin-right: var(--t-mr_sm-f); }
|
|
59
|
+
._mr_sm\:a_17rt1_59:active { margin-right: var(--t-mr_sm-a); }
|
|
60
|
+
._mr_sm\:d_17rt1_60:disabled { margin-right: var(--t-mr_sm-d); }
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
@media (min-width: 768px) {
|
|
64
|
+
._mr_md_17rt1_64 { margin-right: var(--t-mr_md); }
|
|
65
|
+
._mr_md\:h_17rt1_65:hover { margin-right: var(--t-mr_md-h); }
|
|
66
|
+
._mr_md\:f_17rt1_66:focus { margin-right: var(--t-mr_md-f); }
|
|
67
|
+
._mr_md\:a_17rt1_67:active { margin-right: var(--t-mr_md-a); }
|
|
68
|
+
._mr_md\:d_17rt1_68:disabled { margin-right: var(--t-mr_md-d); }
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
@media (min-width: 1024px) {
|
|
72
|
+
._mr_lg_17rt1_72 { margin-right: var(--t-mr_lg); }
|
|
73
|
+
._mr_lg\:h_17rt1_73:hover { margin-right: var(--t-mr_lg-h); }
|
|
74
|
+
._mr_lg\:f_17rt1_74:focus { margin-right: var(--t-mr_lg-f); }
|
|
75
|
+
._mr_lg\:a_17rt1_75:active { margin-right: var(--t-mr_lg-a); }
|
|
76
|
+
._mr_lg\:d_17rt1_76:disabled { margin-right: var(--t-mr_lg-d); }
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
@media (min-width: 1280px) {
|
|
80
|
+
._mr_xl_17rt1_80 { margin-right: var(--t-mr_xl); }
|
|
81
|
+
._mr_xl\:h_17rt1_81:hover { margin-right: var(--t-mr_xl-h); }
|
|
82
|
+
._mr_xl\:f_17rt1_82:focus { margin-right: var(--t-mr_xl-f); }
|
|
83
|
+
._mr_xl\:a_17rt1_83:active { margin-right: var(--t-mr_xl-a); }
|
|
84
|
+
._mr_xl\:d_17rt1_84:disabled { margin-right: var(--t-mr_xl-d); }
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
@media (min-width: 1536px) {
|
|
88
|
+
._mr_2xl_17rt1_88 { margin-right: var(--t-mr_2xl); }
|
|
89
|
+
._mr_2xl\:h_17rt1_89:hover { margin-right: var(--t-mr_2xl-h); }
|
|
90
|
+
._mr_2xl\:f_17rt1_90:focus { margin-right: var(--t-mr_2xl-f); }
|
|
91
|
+
._mr_2xl\:a_17rt1_91:active { margin-right: var(--t-mr_2xl-a); }
|
|
92
|
+
._mr_2xl\:d_17rt1_92:disabled { margin-right: var(--t-mr_2xl-d); }
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
/* margin-bottom */
|
|
96
|
+
._mb_17rt1_96 { margin-bottom: var(--t-mb); }
|
|
97
|
+
._mb\:h_17rt1_97:hover { margin-bottom: var(--t-mb-h); }
|
|
98
|
+
._mb\:f_17rt1_98:focus { margin-bottom: var(--t-mb-f); }
|
|
99
|
+
._mb\:a_17rt1_99:active { margin-bottom: var(--t-mb-a); }
|
|
100
|
+
._mb\:d_17rt1_100:disabled { margin-bottom: var(--t-mb-d); }
|
|
101
|
+
|
|
102
|
+
@media (min-width: 640px) {
|
|
103
|
+
._mb_sm_17rt1_103 { margin-bottom: var(--t-mb_sm); }
|
|
104
|
+
._mb_sm\:h_17rt1_104:hover { margin-bottom: var(--t-mb_sm-h); }
|
|
105
|
+
._mb_sm\:f_17rt1_105:focus { margin-bottom: var(--t-mb_sm-f); }
|
|
106
|
+
._mb_sm\:a_17rt1_106:active { margin-bottom: var(--t-mb_sm-a); }
|
|
107
|
+
._mb_sm\:d_17rt1_107:disabled { margin-bottom: var(--t-mb_sm-d); }
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
@media (min-width: 768px) {
|
|
111
|
+
._mb_md_17rt1_111 { margin-bottom: var(--t-mb_md); }
|
|
112
|
+
._mb_md\:h_17rt1_112:hover { margin-bottom: var(--t-mb_md-h); }
|
|
113
|
+
._mb_md\:f_17rt1_113:focus { margin-bottom: var(--t-mb_md-f); }
|
|
114
|
+
._mb_md\:a_17rt1_114:active { margin-bottom: var(--t-mb_md-a); }
|
|
115
|
+
._mb_md\:d_17rt1_115:disabled { margin-bottom: var(--t-mb_md-d); }
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
@media (min-width: 1024px) {
|
|
119
|
+
._mb_lg_17rt1_119 { margin-bottom: var(--t-mb_lg); }
|
|
120
|
+
._mb_lg\:h_17rt1_120:hover { margin-bottom: var(--t-mb_lg-h); }
|
|
121
|
+
._mb_lg\:f_17rt1_121:focus { margin-bottom: var(--t-mb_lg-f); }
|
|
122
|
+
._mb_lg\:a_17rt1_122:active { margin-bottom: var(--t-mb_lg-a); }
|
|
123
|
+
._mb_lg\:d_17rt1_123:disabled { margin-bottom: var(--t-mb_lg-d); }
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
@media (min-width: 1280px) {
|
|
127
|
+
._mb_xl_17rt1_127 { margin-bottom: var(--t-mb_xl); }
|
|
128
|
+
._mb_xl\:h_17rt1_128:hover { margin-bottom: var(--t-mb_xl-h); }
|
|
129
|
+
._mb_xl\:f_17rt1_129:focus { margin-bottom: var(--t-mb_xl-f); }
|
|
130
|
+
._mb_xl\:a_17rt1_130:active { margin-bottom: var(--t-mb_xl-a); }
|
|
131
|
+
._mb_xl\:d_17rt1_131:disabled { margin-bottom: var(--t-mb_xl-d); }
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
@media (min-width: 1536px) {
|
|
135
|
+
._mb_2xl_17rt1_135 { margin-bottom: var(--t-mb_2xl); }
|
|
136
|
+
._mb_2xl\:h_17rt1_136:hover { margin-bottom: var(--t-mb_2xl-h); }
|
|
137
|
+
._mb_2xl\:f_17rt1_137:focus { margin-bottom: var(--t-mb_2xl-f); }
|
|
138
|
+
._mb_2xl\:a_17rt1_138:active { margin-bottom: var(--t-mb_2xl-a); }
|
|
139
|
+
._mb_2xl\:d_17rt1_139:disabled { margin-bottom: var(--t-mb_2xl-d); }
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
/* margin-left */
|
|
143
|
+
._ml_17rt1_143 { margin-left: var(--t-ml); }
|
|
144
|
+
._ml\:h_17rt1_144:hover { margin-left: var(--t-ml-h); }
|
|
145
|
+
._ml\:f_17rt1_145:focus { margin-left: var(--t-ml-f); }
|
|
146
|
+
._ml\:a_17rt1_146:active { margin-left: var(--t-ml-a); }
|
|
147
|
+
._ml\:d_17rt1_147:disabled { margin-left: var(--t-ml-d); }
|
|
148
|
+
|
|
149
|
+
@media (min-width: 640px) {
|
|
150
|
+
._ml_sm_17rt1_150 { margin-left: var(--t-ml_sm); }
|
|
151
|
+
._ml_sm\:h_17rt1_151:hover { margin-left: var(--t-ml_sm-h); }
|
|
152
|
+
._ml_sm\:f_17rt1_152:focus { margin-left: var(--t-ml_sm-f); }
|
|
153
|
+
._ml_sm\:a_17rt1_153:active { margin-left: var(--t-ml_sm-a); }
|
|
154
|
+
._ml_sm\:d_17rt1_154:disabled { margin-left: var(--t-ml_sm-d); }
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
@media (min-width: 768px) {
|
|
158
|
+
._ml_md_17rt1_158 { margin-left: var(--t-ml_md); }
|
|
159
|
+
._ml_md\:h_17rt1_159:hover { margin-left: var(--t-ml_md-h); }
|
|
160
|
+
._ml_md\:f_17rt1_160:focus { margin-left: var(--t-ml_md-f); }
|
|
161
|
+
._ml_md\:a_17rt1_161:active { margin-left: var(--t-ml_md-a); }
|
|
162
|
+
._ml_md\:d_17rt1_162:disabled { margin-left: var(--t-ml_md-d); }
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
@media (min-width: 1024px) {
|
|
166
|
+
._ml_lg_17rt1_166 { margin-left: var(--t-ml_lg); }
|
|
167
|
+
._ml_lg\:h_17rt1_167:hover { margin-left: var(--t-ml_lg-h); }
|
|
168
|
+
._ml_lg\:f_17rt1_168:focus { margin-left: var(--t-ml_lg-f); }
|
|
169
|
+
._ml_lg\:a_17rt1_169:active { margin-left: var(--t-ml_lg-a); }
|
|
170
|
+
._ml_lg\:d_17rt1_170:disabled { margin-left: var(--t-ml_lg-d); }
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
@media (min-width: 1280px) {
|
|
174
|
+
._ml_xl_17rt1_174 { margin-left: var(--t-ml_xl); }
|
|
175
|
+
._ml_xl\:h_17rt1_175:hover { margin-left: var(--t-ml_xl-h); }
|
|
176
|
+
._ml_xl\:f_17rt1_176:focus { margin-left: var(--t-ml_xl-f); }
|
|
177
|
+
._ml_xl\:a_17rt1_177:active { margin-left: var(--t-ml_xl-a); }
|
|
178
|
+
._ml_xl\:d_17rt1_178:disabled { margin-left: var(--t-ml_xl-d); }
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
@media (min-width: 1536px) {
|
|
182
|
+
._ml_2xl_17rt1_182 { margin-left: var(--t-ml_2xl); }
|
|
183
|
+
._ml_2xl\:h_17rt1_183:hover { margin-left: var(--t-ml_2xl-h); }
|
|
184
|
+
._ml_2xl\:f_17rt1_184:focus { margin-left: var(--t-ml_2xl-f); }
|
|
185
|
+
._ml_2xl\:a_17rt1_185:active { margin-left: var(--t-ml_2xl-a); }
|
|
186
|
+
._ml_2xl\:d_17rt1_186:disabled { margin-left: var(--t-ml_2xl-d); }
|
|
187
|
+
}
|
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
const mt = "_mt_17rt1_2";
|
|
2
|
+
const mt_sm = "_mt_sm_17rt1_9";
|
|
3
|
+
const mt_md = "_mt_md_17rt1_17";
|
|
4
|
+
const mt_lg = "_mt_lg_17rt1_25";
|
|
5
|
+
const mt_xl = "_mt_xl_17rt1_33";
|
|
6
|
+
const mt_2xl = "_mt_2xl_17rt1_41";
|
|
7
|
+
const mr = "_mr_17rt1_49";
|
|
8
|
+
const mr_sm = "_mr_sm_17rt1_56";
|
|
9
|
+
const mr_md = "_mr_md_17rt1_64";
|
|
10
|
+
const mr_lg = "_mr_lg_17rt1_72";
|
|
11
|
+
const mr_xl = "_mr_xl_17rt1_80";
|
|
12
|
+
const mr_2xl = "_mr_2xl_17rt1_88";
|
|
13
|
+
const mb = "_mb_17rt1_96";
|
|
14
|
+
const mb_sm = "_mb_sm_17rt1_103";
|
|
15
|
+
const mb_md = "_mb_md_17rt1_111";
|
|
16
|
+
const mb_lg = "_mb_lg_17rt1_119";
|
|
17
|
+
const mb_xl = "_mb_xl_17rt1_127";
|
|
18
|
+
const mb_2xl = "_mb_2xl_17rt1_135";
|
|
19
|
+
const ml = "_ml_17rt1_143";
|
|
20
|
+
const ml_sm = "_ml_sm_17rt1_150";
|
|
21
|
+
const ml_md = "_ml_md_17rt1_158";
|
|
22
|
+
const ml_lg = "_ml_lg_17rt1_166";
|
|
23
|
+
const ml_xl = "_ml_xl_17rt1_174";
|
|
24
|
+
const ml_2xl = "_ml_2xl_17rt1_182";
|
|
25
|
+
const styles = {
|
|
26
|
+
mt,
|
|
27
|
+
"mt:h": "_mt:h_17rt1_3",
|
|
28
|
+
"mt:f": "_mt:f_17rt1_4",
|
|
29
|
+
"mt:a": "_mt:a_17rt1_5",
|
|
30
|
+
"mt:d": "_mt:d_17rt1_6",
|
|
31
|
+
mt_sm,
|
|
32
|
+
"mt_sm:h": "_mt_sm:h_17rt1_10",
|
|
33
|
+
"mt_sm:f": "_mt_sm:f_17rt1_11",
|
|
34
|
+
"mt_sm:a": "_mt_sm:a_17rt1_12",
|
|
35
|
+
"mt_sm:d": "_mt_sm:d_17rt1_13",
|
|
36
|
+
mt_md,
|
|
37
|
+
"mt_md:h": "_mt_md:h_17rt1_18",
|
|
38
|
+
"mt_md:f": "_mt_md:f_17rt1_19",
|
|
39
|
+
"mt_md:a": "_mt_md:a_17rt1_20",
|
|
40
|
+
"mt_md:d": "_mt_md:d_17rt1_21",
|
|
41
|
+
mt_lg,
|
|
42
|
+
"mt_lg:h": "_mt_lg:h_17rt1_26",
|
|
43
|
+
"mt_lg:f": "_mt_lg:f_17rt1_27",
|
|
44
|
+
"mt_lg:a": "_mt_lg:a_17rt1_28",
|
|
45
|
+
"mt_lg:d": "_mt_lg:d_17rt1_29",
|
|
46
|
+
mt_xl,
|
|
47
|
+
"mt_xl:h": "_mt_xl:h_17rt1_34",
|
|
48
|
+
"mt_xl:f": "_mt_xl:f_17rt1_35",
|
|
49
|
+
"mt_xl:a": "_mt_xl:a_17rt1_36",
|
|
50
|
+
"mt_xl:d": "_mt_xl:d_17rt1_37",
|
|
51
|
+
mt_2xl,
|
|
52
|
+
"mt_2xl:h": "_mt_2xl:h_17rt1_42",
|
|
53
|
+
"mt_2xl:f": "_mt_2xl:f_17rt1_43",
|
|
54
|
+
"mt_2xl:a": "_mt_2xl:a_17rt1_44",
|
|
55
|
+
"mt_2xl:d": "_mt_2xl:d_17rt1_45",
|
|
56
|
+
mr,
|
|
57
|
+
"mr:h": "_mr:h_17rt1_50",
|
|
58
|
+
"mr:f": "_mr:f_17rt1_51",
|
|
59
|
+
"mr:a": "_mr:a_17rt1_52",
|
|
60
|
+
"mr:d": "_mr:d_17rt1_53",
|
|
61
|
+
mr_sm,
|
|
62
|
+
"mr_sm:h": "_mr_sm:h_17rt1_57",
|
|
63
|
+
"mr_sm:f": "_mr_sm:f_17rt1_58",
|
|
64
|
+
"mr_sm:a": "_mr_sm:a_17rt1_59",
|
|
65
|
+
"mr_sm:d": "_mr_sm:d_17rt1_60",
|
|
66
|
+
mr_md,
|
|
67
|
+
"mr_md:h": "_mr_md:h_17rt1_65",
|
|
68
|
+
"mr_md:f": "_mr_md:f_17rt1_66",
|
|
69
|
+
"mr_md:a": "_mr_md:a_17rt1_67",
|
|
70
|
+
"mr_md:d": "_mr_md:d_17rt1_68",
|
|
71
|
+
mr_lg,
|
|
72
|
+
"mr_lg:h": "_mr_lg:h_17rt1_73",
|
|
73
|
+
"mr_lg:f": "_mr_lg:f_17rt1_74",
|
|
74
|
+
"mr_lg:a": "_mr_lg:a_17rt1_75",
|
|
75
|
+
"mr_lg:d": "_mr_lg:d_17rt1_76",
|
|
76
|
+
mr_xl,
|
|
77
|
+
"mr_xl:h": "_mr_xl:h_17rt1_81",
|
|
78
|
+
"mr_xl:f": "_mr_xl:f_17rt1_82",
|
|
79
|
+
"mr_xl:a": "_mr_xl:a_17rt1_83",
|
|
80
|
+
"mr_xl:d": "_mr_xl:d_17rt1_84",
|
|
81
|
+
mr_2xl,
|
|
82
|
+
"mr_2xl:h": "_mr_2xl:h_17rt1_89",
|
|
83
|
+
"mr_2xl:f": "_mr_2xl:f_17rt1_90",
|
|
84
|
+
"mr_2xl:a": "_mr_2xl:a_17rt1_91",
|
|
85
|
+
"mr_2xl:d": "_mr_2xl:d_17rt1_92",
|
|
86
|
+
mb,
|
|
87
|
+
"mb:h": "_mb:h_17rt1_97",
|
|
88
|
+
"mb:f": "_mb:f_17rt1_98",
|
|
89
|
+
"mb:a": "_mb:a_17rt1_99",
|
|
90
|
+
"mb:d": "_mb:d_17rt1_100",
|
|
91
|
+
mb_sm,
|
|
92
|
+
"mb_sm:h": "_mb_sm:h_17rt1_104",
|
|
93
|
+
"mb_sm:f": "_mb_sm:f_17rt1_105",
|
|
94
|
+
"mb_sm:a": "_mb_sm:a_17rt1_106",
|
|
95
|
+
"mb_sm:d": "_mb_sm:d_17rt1_107",
|
|
96
|
+
mb_md,
|
|
97
|
+
"mb_md:h": "_mb_md:h_17rt1_112",
|
|
98
|
+
"mb_md:f": "_mb_md:f_17rt1_113",
|
|
99
|
+
"mb_md:a": "_mb_md:a_17rt1_114",
|
|
100
|
+
"mb_md:d": "_mb_md:d_17rt1_115",
|
|
101
|
+
mb_lg,
|
|
102
|
+
"mb_lg:h": "_mb_lg:h_17rt1_120",
|
|
103
|
+
"mb_lg:f": "_mb_lg:f_17rt1_121",
|
|
104
|
+
"mb_lg:a": "_mb_lg:a_17rt1_122",
|
|
105
|
+
"mb_lg:d": "_mb_lg:d_17rt1_123",
|
|
106
|
+
mb_xl,
|
|
107
|
+
"mb_xl:h": "_mb_xl:h_17rt1_128",
|
|
108
|
+
"mb_xl:f": "_mb_xl:f_17rt1_129",
|
|
109
|
+
"mb_xl:a": "_mb_xl:a_17rt1_130",
|
|
110
|
+
"mb_xl:d": "_mb_xl:d_17rt1_131",
|
|
111
|
+
mb_2xl,
|
|
112
|
+
"mb_2xl:h": "_mb_2xl:h_17rt1_136",
|
|
113
|
+
"mb_2xl:f": "_mb_2xl:f_17rt1_137",
|
|
114
|
+
"mb_2xl:a": "_mb_2xl:a_17rt1_138",
|
|
115
|
+
"mb_2xl:d": "_mb_2xl:d_17rt1_139",
|
|
116
|
+
ml,
|
|
117
|
+
"ml:h": "_ml:h_17rt1_144",
|
|
118
|
+
"ml:f": "_ml:f_17rt1_145",
|
|
119
|
+
"ml:a": "_ml:a_17rt1_146",
|
|
120
|
+
"ml:d": "_ml:d_17rt1_147",
|
|
121
|
+
ml_sm,
|
|
122
|
+
"ml_sm:h": "_ml_sm:h_17rt1_151",
|
|
123
|
+
"ml_sm:f": "_ml_sm:f_17rt1_152",
|
|
124
|
+
"ml_sm:a": "_ml_sm:a_17rt1_153",
|
|
125
|
+
"ml_sm:d": "_ml_sm:d_17rt1_154",
|
|
126
|
+
ml_md,
|
|
127
|
+
"ml_md:h": "_ml_md:h_17rt1_159",
|
|
128
|
+
"ml_md:f": "_ml_md:f_17rt1_160",
|
|
129
|
+
"ml_md:a": "_ml_md:a_17rt1_161",
|
|
130
|
+
"ml_md:d": "_ml_md:d_17rt1_162",
|
|
131
|
+
ml_lg,
|
|
132
|
+
"ml_lg:h": "_ml_lg:h_17rt1_167",
|
|
133
|
+
"ml_lg:f": "_ml_lg:f_17rt1_168",
|
|
134
|
+
"ml_lg:a": "_ml_lg:a_17rt1_169",
|
|
135
|
+
"ml_lg:d": "_ml_lg:d_17rt1_170",
|
|
136
|
+
ml_xl,
|
|
137
|
+
"ml_xl:h": "_ml_xl:h_17rt1_175",
|
|
138
|
+
"ml_xl:f": "_ml_xl:f_17rt1_176",
|
|
139
|
+
"ml_xl:a": "_ml_xl:a_17rt1_177",
|
|
140
|
+
"ml_xl:d": "_ml_xl:d_17rt1_178",
|
|
141
|
+
ml_2xl,
|
|
142
|
+
"ml_2xl:h": "_ml_2xl:h_17rt1_183",
|
|
143
|
+
"ml_2xl:f": "_ml_2xl:f_17rt1_184",
|
|
144
|
+
"ml_2xl:a": "_ml_2xl:a_17rt1_185",
|
|
145
|
+
"ml_2xl:d": "_ml_2xl:d_17rt1_186"
|
|
146
|
+
};
|
|
147
|
+
export {
|
|
148
|
+
styles as default,
|
|
149
|
+
mb,
|
|
150
|
+
mb_2xl,
|
|
151
|
+
mb_lg,
|
|
152
|
+
mb_md,
|
|
153
|
+
mb_sm,
|
|
154
|
+
mb_xl,
|
|
155
|
+
ml,
|
|
156
|
+
ml_2xl,
|
|
157
|
+
ml_lg,
|
|
158
|
+
ml_md,
|
|
159
|
+
ml_sm,
|
|
160
|
+
ml_xl,
|
|
161
|
+
mr,
|
|
162
|
+
mr_2xl,
|
|
163
|
+
mr_lg,
|
|
164
|
+
mr_md,
|
|
165
|
+
mr_sm,
|
|
166
|
+
mr_xl,
|
|
167
|
+
mt,
|
|
168
|
+
mt_2xl,
|
|
169
|
+
mt_lg,
|
|
170
|
+
mt_md,
|
|
171
|
+
mt_sm,
|
|
172
|
+
mt_xl
|
|
173
|
+
};
|
|
174
|
+
//# sourceMappingURL=margin.module.css.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"margin.module.css.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { RESPONSIVE_KEYS, STATE_CLASS_SUFFIXES } from "../shared/constants.js";
|
|
2
|
+
import styles from "./opacity.module.css.js";
|
|
3
|
+
import clsx from "clsx";
|
|
4
|
+
function getOpacityClass(value, responsiveKey, state) {
|
|
5
|
+
const stateClassSuffix = STATE_CLASS_SUFFIXES[state];
|
|
6
|
+
if (responsiveKey === "base") {
|
|
7
|
+
return stateClassSuffix ? styles[`${value}${stateClassSuffix}`] : styles[value];
|
|
8
|
+
}
|
|
9
|
+
return stateClassSuffix ? styles[`${value}_${responsiveKey}${stateClassSuffix}`] : styles[`${value}_${responsiveKey}`];
|
|
10
|
+
}
|
|
11
|
+
function getOpacityStylesForValue(value, state) {
|
|
12
|
+
const result = { className: "", style: {} };
|
|
13
|
+
if (value === void 0) return result;
|
|
14
|
+
if (typeof value === "string") {
|
|
15
|
+
const className = getOpacityClass(value, "base", state);
|
|
16
|
+
if (className) {
|
|
17
|
+
result.className = className;
|
|
18
|
+
}
|
|
19
|
+
return result;
|
|
20
|
+
}
|
|
21
|
+
for (const responsiveKey of RESPONSIVE_KEYS) {
|
|
22
|
+
const opacityValue = value[responsiveKey];
|
|
23
|
+
if (opacityValue === void 0) continue;
|
|
24
|
+
const className = getOpacityClass(opacityValue, responsiveKey, state);
|
|
25
|
+
if (className) {
|
|
26
|
+
result.className = clsx(result.className, className);
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
return result;
|
|
30
|
+
}
|
|
31
|
+
function getOpacityStyles(props) {
|
|
32
|
+
const { opacity, _hover, _focus, _active, _disabled } = props;
|
|
33
|
+
const baseStyles = getOpacityStylesForValue(opacity, "base");
|
|
34
|
+
const hoverStyles = getOpacityStylesForValue(_hover?.opacity, "hover");
|
|
35
|
+
const focusStyles = getOpacityStylesForValue(_focus?.opacity, "focus");
|
|
36
|
+
const activeStyles = getOpacityStylesForValue(_active?.opacity, "active");
|
|
37
|
+
const disabledStyles = getOpacityStylesForValue(_disabled?.opacity, "disabled");
|
|
38
|
+
return {
|
|
39
|
+
className: clsx(
|
|
40
|
+
baseStyles.className,
|
|
41
|
+
hoverStyles.className,
|
|
42
|
+
focusStyles.className,
|
|
43
|
+
activeStyles.className,
|
|
44
|
+
disabledStyles.className
|
|
45
|
+
),
|
|
46
|
+
style: {}
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
export {
|
|
50
|
+
getOpacityStyles
|
|
51
|
+
};
|
|
52
|
+
//# sourceMappingURL=opacity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"opacity.js","sources":["../../../../src/components/Box/opacity/opacity.ts"],"sourcesContent":["import type { ResponsiveValue } from \"@/utils/breakpoints\";\nimport {\n RESPONSIVE_KEYS,\n STATE_CLASS_SUFFIXES,\n type StateKey,\n type StyleResult,\n} from \"../shared\";\nimport styles from \"./opacity.module.css\";\nimport clsx from \"clsx\";\n\nexport type OpacityValue = \"invisible\" | \"faint\" | \"semi\" | \"full\";\n\nexport type OpacityProps = {\n opacity?: ResponsiveValue<OpacityValue>;\n};\n\nexport type OpacityStateProps = {\n _hover?: OpacityProps;\n _focus?: OpacityProps;\n _active?: OpacityProps;\n _disabled?: OpacityProps;\n};\n\nfunction getOpacityClass(\n value: OpacityValue,\n responsiveKey: (typeof RESPONSIVE_KEYS)[number],\n state: StateKey\n): string | undefined {\n const stateClassSuffix = STATE_CLASS_SUFFIXES[state];\n\n if (responsiveKey === \"base\") {\n return stateClassSuffix\n ? styles[`${value}${stateClassSuffix}`]\n : styles[value];\n }\n\n return stateClassSuffix\n ? styles[`${value}_${responsiveKey}${stateClassSuffix}`]\n : styles[`${value}_${responsiveKey}`];\n}\n\nfunction getOpacityStylesForValue(\n value: ResponsiveValue<OpacityValue> | undefined,\n state: StateKey\n): StyleResult {\n const result: StyleResult = { className: \"\", style: {} };\n\n if (value === undefined) return result;\n\n if (typeof value === \"string\") {\n const className = getOpacityClass(value, \"base\", state);\n if (className) {\n result.className = className;\n }\n return result;\n }\n\n for (const responsiveKey of RESPONSIVE_KEYS) {\n const opacityValue = value[responsiveKey];\n if (opacityValue === undefined) continue;\n\n const className = getOpacityClass(opacityValue, responsiveKey, state);\n if (className) {\n result.className = clsx(result.className, className);\n }\n }\n\n return result;\n}\n\nexport function getOpacityStyles(\n props: OpacityProps & OpacityStateProps\n): StyleResult {\n const { opacity, _hover, _focus, _active, _disabled } = props;\n\n const baseStyles = getOpacityStylesForValue(opacity, \"base\");\n const hoverStyles = getOpacityStylesForValue(_hover?.opacity, \"hover\");\n const focusStyles = getOpacityStylesForValue(_focus?.opacity, \"focus\");\n const activeStyles = getOpacityStylesForValue(_active?.opacity, \"active\");\n const disabledStyles = getOpacityStylesForValue(_disabled?.opacity, \"disabled\");\n\n return {\n className: clsx(\n baseStyles.className,\n hoverStyles.className,\n focusStyles.className,\n activeStyles.className,\n disabledStyles.className\n ),\n style: {},\n };\n}\n"],"names":[],"mappings":";;;AAuBA,SAAS,gBACP,OACA,eACA,OACoB;AACpB,QAAM,mBAAmB,qBAAqB,KAAK;AAEnD,MAAI,kBAAkB,QAAQ;AAC5B,WAAO,mBACH,OAAO,GAAG,KAAK,GAAG,gBAAgB,EAAE,IACpC,OAAO,KAAK;AAAA,EAClB;AAEA,SAAO,mBACH,OAAO,GAAG,KAAK,IAAI,aAAa,GAAG,gBAAgB,EAAE,IACrD,OAAO,GAAG,KAAK,IAAI,aAAa,EAAE;AACxC;AAEA,SAAS,yBACP,OACA,OACa;AACb,QAAM,SAAsB,EAAE,WAAW,IAAI,OAAO,CAAA,EAAC;AAErD,MAAI,UAAU,OAAW,QAAO;AAEhC,MAAI,OAAO,UAAU,UAAU;AAC7B,UAAM,YAAY,gBAAgB,OAAO,QAAQ,KAAK;AACtD,QAAI,WAAW;AACb,aAAO,YAAY;AAAA,IACrB;AACA,WAAO;AAAA,EACT;AAEA,aAAW,iBAAiB,iBAAiB;AAC3C,UAAM,eAAe,MAAM,aAAa;AACxC,QAAI,iBAAiB,OAAW;AAEhC,UAAM,YAAY,gBAAgB,cAAc,eAAe,KAAK;AACpE,QAAI,WAAW;AACb,aAAO,YAAY,KAAK,OAAO,WAAW,SAAS;AAAA,IACrD;AAAA,EACF;AAEA,SAAO;AACT;AAEO,SAAS,iBACd,OACa;AACb,QAAM,EAAE,SAAS,QAAQ,QAAQ,SAAS,cAAc;AAExD,QAAM,aAAa,yBAAyB,SAAS,MAAM;AAC3D,QAAM,cAAc,yBAAyB,QAAQ,SAAS,OAAO;AACrE,QAAM,cAAc,yBAAyB,QAAQ,SAAS,OAAO;AACrE,QAAM,eAAe,yBAAyB,SAAS,SAAS,QAAQ;AACxE,QAAM,iBAAiB,yBAAyB,WAAW,SAAS,UAAU;AAE9E,SAAO;AAAA,IACL,WAAW;AAAA,MACT,WAAW;AAAA,MACX,YAAY;AAAA,MACZ,YAAY;AAAA,MACZ,aAAa;AAAA,MACb,eAAe;AAAA,IAAA;AAAA,IAEjB,OAAO,CAAA;AAAA,EAAC;AAEZ;"}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/* opacity: full (1) */
|
|
2
|
+
._full_15ao7_2 { opacity: 1; }
|
|
3
|
+
._full\:h_15ao7_3:hover { opacity: 1; }
|
|
4
|
+
._full\:f_15ao7_4:focus { opacity: 1; }
|
|
5
|
+
._full\:a_15ao7_5:active { opacity: 1; }
|
|
6
|
+
._full\:d_15ao7_6:disabled { opacity: 1; }
|
|
7
|
+
|
|
8
|
+
@media (min-width: 640px) { ._full_sm_15ao7_8 { opacity: 1; } ._full_sm\:h_15ao7_8:hover { opacity: 1; } ._full_sm\:f_15ao7_8:focus { opacity: 1; } ._full_sm\:a_15ao7_8:active { opacity: 1; } ._full_sm\:d_15ao7_8:disabled { opacity: 1; } }
|
|
9
|
+
@media (min-width: 768px) { ._full_md_15ao7_9 { opacity: 1; } ._full_md\:h_15ao7_9:hover { opacity: 1; } ._full_md\:f_15ao7_9:focus { opacity: 1; } ._full_md\:a_15ao7_9:active { opacity: 1; } ._full_md\:d_15ao7_9:disabled { opacity: 1; } }
|
|
10
|
+
@media (min-width: 1024px) { ._full_lg_15ao7_10 { opacity: 1; } ._full_lg\:h_15ao7_10:hover { opacity: 1; } ._full_lg\:f_15ao7_10:focus { opacity: 1; } ._full_lg\:a_15ao7_10:active { opacity: 1; } ._full_lg\:d_15ao7_10:disabled { opacity: 1; } }
|
|
11
|
+
@media (min-width: 1280px) { ._full_xl_15ao7_11 { opacity: 1; } ._full_xl\:h_15ao7_11:hover { opacity: 1; } ._full_xl\:f_15ao7_11:focus { opacity: 1; } ._full_xl\:a_15ao7_11:active { opacity: 1; } ._full_xl\:d_15ao7_11:disabled { opacity: 1; } }
|
|
12
|
+
@media (min-width: 1536px) { ._full_2xl_15ao7_12 { opacity: 1; } ._full_2xl\:h_15ao7_12:hover { opacity: 1; } ._full_2xl\:f_15ao7_12:focus { opacity: 1; } ._full_2xl\:a_15ao7_12:active { opacity: 1; } ._full_2xl\:d_15ao7_12:disabled { opacity: 1; } }
|
|
13
|
+
|
|
14
|
+
/* opacity: semi (0.6) */
|
|
15
|
+
._semi_15ao7_15 { opacity: 0.6; }
|
|
16
|
+
._semi\:h_15ao7_16:hover { opacity: 0.6; }
|
|
17
|
+
._semi\:f_15ao7_17:focus { opacity: 0.6; }
|
|
18
|
+
._semi\:a_15ao7_18:active { opacity: 0.6; }
|
|
19
|
+
._semi\:d_15ao7_19:disabled { opacity: 0.6; }
|
|
20
|
+
|
|
21
|
+
@media (min-width: 640px) { ._semi_sm_15ao7_21 { opacity: 0.6; } ._semi_sm\:h_15ao7_21:hover { opacity: 0.6; } ._semi_sm\:f_15ao7_21:focus { opacity: 0.6; } ._semi_sm\:a_15ao7_21:active { opacity: 0.6; } ._semi_sm\:d_15ao7_21:disabled { opacity: 0.6; } }
|
|
22
|
+
@media (min-width: 768px) { ._semi_md_15ao7_22 { opacity: 0.6; } ._semi_md\:h_15ao7_22:hover { opacity: 0.6; } ._semi_md\:f_15ao7_22:focus { opacity: 0.6; } ._semi_md\:a_15ao7_22:active { opacity: 0.6; } ._semi_md\:d_15ao7_22:disabled { opacity: 0.6; } }
|
|
23
|
+
@media (min-width: 1024px) { ._semi_lg_15ao7_23 { opacity: 0.6; } ._semi_lg\:h_15ao7_23:hover { opacity: 0.6; } ._semi_lg\:f_15ao7_23:focus { opacity: 0.6; } ._semi_lg\:a_15ao7_23:active { opacity: 0.6; } ._semi_lg\:d_15ao7_23:disabled { opacity: 0.6; } }
|
|
24
|
+
@media (min-width: 1280px) { ._semi_xl_15ao7_24 { opacity: 0.6; } ._semi_xl\:h_15ao7_24:hover { opacity: 0.6; } ._semi_xl\:f_15ao7_24:focus { opacity: 0.6; } ._semi_xl\:a_15ao7_24:active { opacity: 0.6; } ._semi_xl\:d_15ao7_24:disabled { opacity: 0.6; } }
|
|
25
|
+
@media (min-width: 1536px) { ._semi_2xl_15ao7_25 { opacity: 0.6; } ._semi_2xl\:h_15ao7_25:hover { opacity: 0.6; } ._semi_2xl\:f_15ao7_25:focus { opacity: 0.6; } ._semi_2xl\:a_15ao7_25:active { opacity: 0.6; } ._semi_2xl\:d_15ao7_25:disabled { opacity: 0.6; } }
|
|
26
|
+
|
|
27
|
+
/* opacity: faint (0.4) */
|
|
28
|
+
._faint_15ao7_28 { opacity: 0.4; }
|
|
29
|
+
._faint\:h_15ao7_29:hover { opacity: 0.4; }
|
|
30
|
+
._faint\:f_15ao7_30:focus { opacity: 0.4; }
|
|
31
|
+
._faint\:a_15ao7_31:active { opacity: 0.4; }
|
|
32
|
+
._faint\:d_15ao7_32:disabled { opacity: 0.4; }
|
|
33
|
+
|
|
34
|
+
@media (min-width: 640px) { ._faint_sm_15ao7_34 { opacity: 0.4; } ._faint_sm\:h_15ao7_34:hover { opacity: 0.4; } ._faint_sm\:f_15ao7_34:focus { opacity: 0.4; } ._faint_sm\:a_15ao7_34:active { opacity: 0.4; } ._faint_sm\:d_15ao7_34:disabled { opacity: 0.4; } }
|
|
35
|
+
@media (min-width: 768px) { ._faint_md_15ao7_35 { opacity: 0.4; } ._faint_md\:h_15ao7_35:hover { opacity: 0.4; } ._faint_md\:f_15ao7_35:focus { opacity: 0.4; } ._faint_md\:a_15ao7_35:active { opacity: 0.4; } ._faint_md\:d_15ao7_35:disabled { opacity: 0.4; } }
|
|
36
|
+
@media (min-width: 1024px) { ._faint_lg_15ao7_36 { opacity: 0.4; } ._faint_lg\:h_15ao7_36:hover { opacity: 0.4; } ._faint_lg\:f_15ao7_36:focus { opacity: 0.4; } ._faint_lg\:a_15ao7_36:active { opacity: 0.4; } ._faint_lg\:d_15ao7_36:disabled { opacity: 0.4; } }
|
|
37
|
+
@media (min-width: 1280px) { ._faint_xl_15ao7_37 { opacity: 0.4; } ._faint_xl\:h_15ao7_37:hover { opacity: 0.4; } ._faint_xl\:f_15ao7_37:focus { opacity: 0.4; } ._faint_xl\:a_15ao7_37:active { opacity: 0.4; } ._faint_xl\:d_15ao7_37:disabled { opacity: 0.4; } }
|
|
38
|
+
@media (min-width: 1536px) { ._faint_2xl_15ao7_38 { opacity: 0.4; } ._faint_2xl\:h_15ao7_38:hover { opacity: 0.4; } ._faint_2xl\:f_15ao7_38:focus { opacity: 0.4; } ._faint_2xl\:a_15ao7_38:active { opacity: 0.4; } ._faint_2xl\:d_15ao7_38:disabled { opacity: 0.4; } }
|
|
39
|
+
|
|
40
|
+
/* opacity: invisible (0) */
|
|
41
|
+
._invisible_15ao7_41 { opacity: 0; }
|
|
42
|
+
._invisible\:h_15ao7_42:hover { opacity: 0; }
|
|
43
|
+
._invisible\:f_15ao7_43:focus { opacity: 0; }
|
|
44
|
+
._invisible\:a_15ao7_44:active { opacity: 0; }
|
|
45
|
+
._invisible\:d_15ao7_45:disabled { opacity: 0; }
|
|
46
|
+
|
|
47
|
+
@media (min-width: 640px) { ._invisible_sm_15ao7_47 { opacity: 0; } ._invisible_sm\:h_15ao7_47:hover { opacity: 0; } ._invisible_sm\:f_15ao7_47:focus { opacity: 0; } ._invisible_sm\:a_15ao7_47:active { opacity: 0; } ._invisible_sm\:d_15ao7_47:disabled { opacity: 0; } }
|
|
48
|
+
@media (min-width: 768px) { ._invisible_md_15ao7_48 { opacity: 0; } ._invisible_md\:h_15ao7_48:hover { opacity: 0; } ._invisible_md\:f_15ao7_48:focus { opacity: 0; } ._invisible_md\:a_15ao7_48:active { opacity: 0; } ._invisible_md\:d_15ao7_48:disabled { opacity: 0; } }
|
|
49
|
+
@media (min-width: 1024px) { ._invisible_lg_15ao7_49 { opacity: 0; } ._invisible_lg\:h_15ao7_49:hover { opacity: 0; } ._invisible_lg\:f_15ao7_49:focus { opacity: 0; } ._invisible_lg\:a_15ao7_49:active { opacity: 0; } ._invisible_lg\:d_15ao7_49:disabled { opacity: 0; } }
|
|
50
|
+
@media (min-width: 1280px) { ._invisible_xl_15ao7_50 { opacity: 0; } ._invisible_xl\:h_15ao7_50:hover { opacity: 0; } ._invisible_xl\:f_15ao7_50:focus { opacity: 0; } ._invisible_xl\:a_15ao7_50:active { opacity: 0; } ._invisible_xl\:d_15ao7_50:disabled { opacity: 0; } }
|
|
51
|
+
@media (min-width: 1536px) { ._invisible_2xl_15ao7_51 { opacity: 0; } ._invisible_2xl\:h_15ao7_51:hover { opacity: 0; } ._invisible_2xl\:f_15ao7_51:focus { opacity: 0; } ._invisible_2xl\:a_15ao7_51:active { opacity: 0; } ._invisible_2xl\:d_15ao7_51:disabled { opacity: 0; } }
|