@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,19 @@
|
|
|
1
|
+
/* justifySelf */
|
|
2
|
+
._justify-self-auto_1s4ho_2 { justify-self: auto; }
|
|
3
|
+
._justify-self-auto\:h_1s4ho_3:hover { justify-self: auto; }
|
|
4
|
+
._justify-self-start_1s4ho_4 { justify-self: start; }
|
|
5
|
+
._justify-self-start\:h_1s4ho_5:hover { justify-self: start; }
|
|
6
|
+
._justify-self-end_1s4ho_6 { justify-self: end; }
|
|
7
|
+
._justify-self-end\:h_1s4ho_7:hover { justify-self: end; }
|
|
8
|
+
._justify-self-center_1s4ho_8 { justify-self: center; }
|
|
9
|
+
._justify-self-center\:h_1s4ho_9:hover { justify-self: center; }
|
|
10
|
+
._justify-self-stretch_1s4ho_10 { justify-self: stretch; }
|
|
11
|
+
._justify-self-stretch\:h_1s4ho_11:hover { justify-self: stretch; }
|
|
12
|
+
|
|
13
|
+
/* gridTemplateColumns (variable-based) */
|
|
14
|
+
._grid-cols_1s4ho_14 { grid-template-columns: var(--t-grid-cols); }
|
|
15
|
+
._grid-cols\:h_1s4ho_15:hover { grid-template-columns: var(--t-grid-cols-h); }
|
|
16
|
+
|
|
17
|
+
/* gridTemplateRows (variable-based) */
|
|
18
|
+
._grid-rows_1s4ho_18 { grid-template-rows: var(--t-grid-rows); }
|
|
19
|
+
._grid-rows\:h_1s4ho_19:hover { grid-template-rows: var(--t-grid-rows-h); }
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
const styles = {
|
|
2
|
+
"justify-self-auto": "_justify-self-auto_1s4ho_2",
|
|
3
|
+
"justify-self-auto:h": "_justify-self-auto:h_1s4ho_3",
|
|
4
|
+
"justify-self-start": "_justify-self-start_1s4ho_4",
|
|
5
|
+
"justify-self-start:h": "_justify-self-start:h_1s4ho_5",
|
|
6
|
+
"justify-self-end": "_justify-self-end_1s4ho_6",
|
|
7
|
+
"justify-self-end:h": "_justify-self-end:h_1s4ho_7",
|
|
8
|
+
"justify-self-center": "_justify-self-center_1s4ho_8",
|
|
9
|
+
"justify-self-center:h": "_justify-self-center:h_1s4ho_9",
|
|
10
|
+
"justify-self-stretch": "_justify-self-stretch_1s4ho_10",
|
|
11
|
+
"justify-self-stretch:h": "_justify-self-stretch:h_1s4ho_11",
|
|
12
|
+
"grid-cols": "_grid-cols_1s4ho_14",
|
|
13
|
+
"grid-cols:h": "_grid-cols:h_1s4ho_15",
|
|
14
|
+
"grid-rows": "_grid-rows_1s4ho_18",
|
|
15
|
+
"grid-rows:h": "_grid-rows:h_1s4ho_19"
|
|
16
|
+
};
|
|
17
|
+
export {
|
|
18
|
+
styles as default
|
|
19
|
+
};
|
|
20
|
+
//# sourceMappingURL=grid.module.css.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"grid.module.css.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;"}
|
|
@@ -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 "./inset.module.css.js";
|
|
4
|
+
import clsx from "clsx";
|
|
5
|
+
function getInsetProp(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 resolveInsetValue(key, props) {
|
|
39
|
+
const shorthandMap = {
|
|
40
|
+
top: "insetY",
|
|
41
|
+
bottom: "insetY",
|
|
42
|
+
right: "insetX",
|
|
43
|
+
left: "insetX"
|
|
44
|
+
};
|
|
45
|
+
return props[key] ?? props[shorthandMap[key]] ?? props.inset;
|
|
46
|
+
}
|
|
47
|
+
function getInsetStylesForState(props, state) {
|
|
48
|
+
const result = { className: "", style: {} };
|
|
49
|
+
if (!props) return result;
|
|
50
|
+
const insetTop = getInsetProp("top", resolveInsetValue("top", props), state);
|
|
51
|
+
const insetRight = getInsetProp("right", resolveInsetValue("right", props), state);
|
|
52
|
+
const insetBottom = getInsetProp("bottom", resolveInsetValue("bottom", props), state);
|
|
53
|
+
const insetLeft = getInsetProp("left", resolveInsetValue("left", props), state);
|
|
54
|
+
return {
|
|
55
|
+
className: clsx(
|
|
56
|
+
insetTop.className,
|
|
57
|
+
insetRight.className,
|
|
58
|
+
insetBottom.className,
|
|
59
|
+
insetLeft.className
|
|
60
|
+
),
|
|
61
|
+
style: {
|
|
62
|
+
...insetTop.style,
|
|
63
|
+
...insetRight.style,
|
|
64
|
+
...insetBottom.style,
|
|
65
|
+
...insetLeft.style
|
|
66
|
+
}
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
function getInsetStyles(props) {
|
|
70
|
+
const { _hover, _focus, _active, _disabled, ...baseProps } = props;
|
|
71
|
+
const baseStyles = getInsetStylesForState(baseProps, "base");
|
|
72
|
+
const hoverStyles = getInsetStylesForState(_hover, "hover");
|
|
73
|
+
const focusStyles = getInsetStylesForState(_focus, "focus");
|
|
74
|
+
const activeStyles = getInsetStylesForState(_active, "active");
|
|
75
|
+
const disabledStyles = getInsetStylesForState(_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
|
+
getInsetStyles
|
|
95
|
+
};
|
|
96
|
+
//# sourceMappingURL=inset.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"inset.js","sources":["../../../../src/components/Box/inset/inset.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 \"./inset.module.css\";\nimport clsx from \"clsx\";\n\ntype InsetValue = string | number;\ntype InsetKey = \"top\" | \"right\" | \"bottom\" | \"left\";\ntype InsetShorthandKey = \"inset\" | \"insetX\" | \"insetY\";\n\nexport type InsetProps = {\n inset?: ResponsiveValue<InsetValue>;\n insetX?: ResponsiveValue<InsetValue>;\n insetY?: ResponsiveValue<InsetValue>;\n top?: ResponsiveValue<InsetValue>;\n right?: ResponsiveValue<InsetValue>;\n bottom?: ResponsiveValue<InsetValue>;\n left?: ResponsiveValue<InsetValue>;\n};\n\nexport type InsetStateProps = {\n _hover?: InsetProps;\n _focus?: InsetProps;\n _active?: InsetProps;\n _disabled?: InsetProps;\n};\n\nfunction getInsetProp(\n key: InsetKey,\n value: ResponsiveValue<InsetValue> | 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 resolveInsetValue(\n key: InsetKey,\n props: InsetProps\n): ResponsiveValue<InsetValue> | undefined {\n const shorthandMap: Record<InsetKey, InsetShorthandKey> = {\n top: \"insetY\",\n bottom: \"insetY\",\n right: \"insetX\",\n left: \"insetX\",\n };\n return props[key] ?? props[shorthandMap[key]] ?? props.inset;\n}\n\nfunction getInsetStylesForState(\n props: InsetProps | undefined,\n state: StateKey\n): StyleResult {\n const result: StyleResult = { className: \"\", style: {} };\n\n if (!props) return result;\n\n const insetTop = getInsetProp(\"top\", resolveInsetValue(\"top\", props), state);\n const insetRight = getInsetProp(\"right\", resolveInsetValue(\"right\", props), state);\n const insetBottom = getInsetProp(\"bottom\", resolveInsetValue(\"bottom\", props), state);\n const insetLeft = getInsetProp(\"left\", resolveInsetValue(\"left\", props), state);\n\n return {\n className: clsx(\n insetTop.className,\n insetRight.className,\n insetBottom.className,\n insetLeft.className\n ),\n style: {\n ...insetTop.style,\n ...insetRight.style,\n ...insetBottom.style,\n ...insetLeft.style,\n },\n };\n}\n\nexport function getInsetStyles(\n props: InsetProps & InsetStateProps\n): StyleResult {\n const { _hover, _focus, _active, _disabled, ...baseProps } = props;\n\n const baseStyles = getInsetStylesForState(baseProps, \"base\");\n const hoverStyles = getInsetStylesForState(_hover, \"hover\");\n const focusStyles = getInsetStylesForState(_focus, \"focus\");\n const activeStyles = getInsetStylesForState(_active, \"active\");\n const disabledStyles = getInsetStylesForState(_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,aACP,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,kBACP,KACA,OACyC;AACzC,QAAM,eAAoD;AAAA,IACxD,KAAK;AAAA,IACL,QAAQ;AAAA,IACR,OAAO;AAAA,IACP,MAAM;AAAA,EAAA;AAER,SAAO,MAAM,GAAG,KAAK,MAAM,aAAa,GAAG,CAAC,KAAK,MAAM;AACzD;AAEA,SAAS,uBACP,OACA,OACa;AACb,QAAM,SAAsB,EAAE,WAAW,IAAI,OAAO,CAAA,EAAC;AAErD,MAAI,CAAC,MAAO,QAAO;AAEnB,QAAM,WAAW,aAAa,OAAO,kBAAkB,OAAO,KAAK,GAAG,KAAK;AAC3E,QAAM,aAAa,aAAa,SAAS,kBAAkB,SAAS,KAAK,GAAG,KAAK;AACjF,QAAM,cAAc,aAAa,UAAU,kBAAkB,UAAU,KAAK,GAAG,KAAK;AACpF,QAAM,YAAY,aAAa,QAAQ,kBAAkB,QAAQ,KAAK,GAAG,KAAK;AAE9E,SAAO;AAAA,IACL,WAAW;AAAA,MACT,SAAS;AAAA,MACT,WAAW;AAAA,MACX,YAAY;AAAA,MACZ,UAAU;AAAA,IAAA;AAAA,IAEZ,OAAO;AAAA,MACL,GAAG,SAAS;AAAA,MACZ,GAAG,WAAW;AAAA,MACd,GAAG,YAAY;AAAA,MACf,GAAG,UAAU;AAAA,IAAA;AAAA,EACf;AAEJ;AAEO,SAAS,eACd,OACa;AACb,QAAM,EAAE,QAAQ,QAAQ,SAAS,WAAW,GAAG,cAAc;AAE7D,QAAM,aAAa,uBAAuB,WAAW,MAAM;AAC3D,QAAM,cAAc,uBAAuB,QAAQ,OAAO;AAC1D,QAAM,cAAc,uBAAuB,QAAQ,OAAO;AAC1D,QAAM,eAAe,uBAAuB,SAAS,QAAQ;AAC7D,QAAM,iBAAiB,uBAAuB,WAAW,UAAU;AAEnE,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
|
+
/* top */
|
|
2
|
+
._top_1okb2_2 { top: var(--t-top); }
|
|
3
|
+
._top\:h_1okb2_3:hover { top: var(--t-top-h); }
|
|
4
|
+
._top\:f_1okb2_4:focus { top: var(--t-top-f); }
|
|
5
|
+
._top\:a_1okb2_5:active { top: var(--t-top-a); }
|
|
6
|
+
._top\:d_1okb2_6:disabled { top: var(--t-top-d); }
|
|
7
|
+
|
|
8
|
+
@media (min-width: 640px) {
|
|
9
|
+
._top_sm_1okb2_9 { top: var(--t-top_sm); }
|
|
10
|
+
._top_sm\:h_1okb2_10:hover { top: var(--t-top_sm-h); }
|
|
11
|
+
._top_sm\:f_1okb2_11:focus { top: var(--t-top_sm-f); }
|
|
12
|
+
._top_sm\:a_1okb2_12:active { top: var(--t-top_sm-a); }
|
|
13
|
+
._top_sm\:d_1okb2_13:disabled { top: var(--t-top_sm-d); }
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
@media (min-width: 768px) {
|
|
17
|
+
._top_md_1okb2_17 { top: var(--t-top_md); }
|
|
18
|
+
._top_md\:h_1okb2_18:hover { top: var(--t-top_md-h); }
|
|
19
|
+
._top_md\:f_1okb2_19:focus { top: var(--t-top_md-f); }
|
|
20
|
+
._top_md\:a_1okb2_20:active { top: var(--t-top_md-a); }
|
|
21
|
+
._top_md\:d_1okb2_21:disabled { top: var(--t-top_md-d); }
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
@media (min-width: 1024px) {
|
|
25
|
+
._top_lg_1okb2_25 { top: var(--t-top_lg); }
|
|
26
|
+
._top_lg\:h_1okb2_26:hover { top: var(--t-top_lg-h); }
|
|
27
|
+
._top_lg\:f_1okb2_27:focus { top: var(--t-top_lg-f); }
|
|
28
|
+
._top_lg\:a_1okb2_28:active { top: var(--t-top_lg-a); }
|
|
29
|
+
._top_lg\:d_1okb2_29:disabled { top: var(--t-top_lg-d); }
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
@media (min-width: 1280px) {
|
|
33
|
+
._top_xl_1okb2_33 { top: var(--t-top_xl); }
|
|
34
|
+
._top_xl\:h_1okb2_34:hover { top: var(--t-top_xl-h); }
|
|
35
|
+
._top_xl\:f_1okb2_35:focus { top: var(--t-top_xl-f); }
|
|
36
|
+
._top_xl\:a_1okb2_36:active { top: var(--t-top_xl-a); }
|
|
37
|
+
._top_xl\:d_1okb2_37:disabled { top: var(--t-top_xl-d); }
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
@media (min-width: 1536px) {
|
|
41
|
+
._top_2xl_1okb2_41 { top: var(--t-top_2xl); }
|
|
42
|
+
._top_2xl\:h_1okb2_42:hover { top: var(--t-top_2xl-h); }
|
|
43
|
+
._top_2xl\:f_1okb2_43:focus { top: var(--t-top_2xl-f); }
|
|
44
|
+
._top_2xl\:a_1okb2_44:active { top: var(--t-top_2xl-a); }
|
|
45
|
+
._top_2xl\:d_1okb2_45:disabled { top: var(--t-top_2xl-d); }
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/* right */
|
|
49
|
+
._right_1okb2_49 { right: var(--t-right); }
|
|
50
|
+
._right\:h_1okb2_50:hover { right: var(--t-right-h); }
|
|
51
|
+
._right\:f_1okb2_51:focus { right: var(--t-right-f); }
|
|
52
|
+
._right\:a_1okb2_52:active { right: var(--t-right-a); }
|
|
53
|
+
._right\:d_1okb2_53:disabled { right: var(--t-right-d); }
|
|
54
|
+
|
|
55
|
+
@media (min-width: 640px) {
|
|
56
|
+
._right_sm_1okb2_56 { right: var(--t-right_sm); }
|
|
57
|
+
._right_sm\:h_1okb2_57:hover { right: var(--t-right_sm-h); }
|
|
58
|
+
._right_sm\:f_1okb2_58:focus { right: var(--t-right_sm-f); }
|
|
59
|
+
._right_sm\:a_1okb2_59:active { right: var(--t-right_sm-a); }
|
|
60
|
+
._right_sm\:d_1okb2_60:disabled { right: var(--t-right_sm-d); }
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
@media (min-width: 768px) {
|
|
64
|
+
._right_md_1okb2_64 { right: var(--t-right_md); }
|
|
65
|
+
._right_md\:h_1okb2_65:hover { right: var(--t-right_md-h); }
|
|
66
|
+
._right_md\:f_1okb2_66:focus { right: var(--t-right_md-f); }
|
|
67
|
+
._right_md\:a_1okb2_67:active { right: var(--t-right_md-a); }
|
|
68
|
+
._right_md\:d_1okb2_68:disabled { right: var(--t-right_md-d); }
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
@media (min-width: 1024px) {
|
|
72
|
+
._right_lg_1okb2_72 { right: var(--t-right_lg); }
|
|
73
|
+
._right_lg\:h_1okb2_73:hover { right: var(--t-right_lg-h); }
|
|
74
|
+
._right_lg\:f_1okb2_74:focus { right: var(--t-right_lg-f); }
|
|
75
|
+
._right_lg\:a_1okb2_75:active { right: var(--t-right_lg-a); }
|
|
76
|
+
._right_lg\:d_1okb2_76:disabled { right: var(--t-right_lg-d); }
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
@media (min-width: 1280px) {
|
|
80
|
+
._right_xl_1okb2_80 { right: var(--t-right_xl); }
|
|
81
|
+
._right_xl\:h_1okb2_81:hover { right: var(--t-right_xl-h); }
|
|
82
|
+
._right_xl\:f_1okb2_82:focus { right: var(--t-right_xl-f); }
|
|
83
|
+
._right_xl\:a_1okb2_83:active { right: var(--t-right_xl-a); }
|
|
84
|
+
._right_xl\:d_1okb2_84:disabled { right: var(--t-right_xl-d); }
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
@media (min-width: 1536px) {
|
|
88
|
+
._right_2xl_1okb2_88 { right: var(--t-right_2xl); }
|
|
89
|
+
._right_2xl\:h_1okb2_89:hover { right: var(--t-right_2xl-h); }
|
|
90
|
+
._right_2xl\:f_1okb2_90:focus { right: var(--t-right_2xl-f); }
|
|
91
|
+
._right_2xl\:a_1okb2_91:active { right: var(--t-right_2xl-a); }
|
|
92
|
+
._right_2xl\:d_1okb2_92:disabled { right: var(--t-right_2xl-d); }
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
/* bottom */
|
|
96
|
+
._bottom_1okb2_96 { bottom: var(--t-bottom); }
|
|
97
|
+
._bottom\:h_1okb2_97:hover { bottom: var(--t-bottom-h); }
|
|
98
|
+
._bottom\:f_1okb2_98:focus { bottom: var(--t-bottom-f); }
|
|
99
|
+
._bottom\:a_1okb2_99:active { bottom: var(--t-bottom-a); }
|
|
100
|
+
._bottom\:d_1okb2_100:disabled { bottom: var(--t-bottom-d); }
|
|
101
|
+
|
|
102
|
+
@media (min-width: 640px) {
|
|
103
|
+
._bottom_sm_1okb2_103 { bottom: var(--t-bottom_sm); }
|
|
104
|
+
._bottom_sm\:h_1okb2_104:hover { bottom: var(--t-bottom_sm-h); }
|
|
105
|
+
._bottom_sm\:f_1okb2_105:focus { bottom: var(--t-bottom_sm-f); }
|
|
106
|
+
._bottom_sm\:a_1okb2_106:active { bottom: var(--t-bottom_sm-a); }
|
|
107
|
+
._bottom_sm\:d_1okb2_107:disabled { bottom: var(--t-bottom_sm-d); }
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
@media (min-width: 768px) {
|
|
111
|
+
._bottom_md_1okb2_111 { bottom: var(--t-bottom_md); }
|
|
112
|
+
._bottom_md\:h_1okb2_112:hover { bottom: var(--t-bottom_md-h); }
|
|
113
|
+
._bottom_md\:f_1okb2_113:focus { bottom: var(--t-bottom_md-f); }
|
|
114
|
+
._bottom_md\:a_1okb2_114:active { bottom: var(--t-bottom_md-a); }
|
|
115
|
+
._bottom_md\:d_1okb2_115:disabled { bottom: var(--t-bottom_md-d); }
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
@media (min-width: 1024px) {
|
|
119
|
+
._bottom_lg_1okb2_119 { bottom: var(--t-bottom_lg); }
|
|
120
|
+
._bottom_lg\:h_1okb2_120:hover { bottom: var(--t-bottom_lg-h); }
|
|
121
|
+
._bottom_lg\:f_1okb2_121:focus { bottom: var(--t-bottom_lg-f); }
|
|
122
|
+
._bottom_lg\:a_1okb2_122:active { bottom: var(--t-bottom_lg-a); }
|
|
123
|
+
._bottom_lg\:d_1okb2_123:disabled { bottom: var(--t-bottom_lg-d); }
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
@media (min-width: 1280px) {
|
|
127
|
+
._bottom_xl_1okb2_127 { bottom: var(--t-bottom_xl); }
|
|
128
|
+
._bottom_xl\:h_1okb2_128:hover { bottom: var(--t-bottom_xl-h); }
|
|
129
|
+
._bottom_xl\:f_1okb2_129:focus { bottom: var(--t-bottom_xl-f); }
|
|
130
|
+
._bottom_xl\:a_1okb2_130:active { bottom: var(--t-bottom_xl-a); }
|
|
131
|
+
._bottom_xl\:d_1okb2_131:disabled { bottom: var(--t-bottom_xl-d); }
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
@media (min-width: 1536px) {
|
|
135
|
+
._bottom_2xl_1okb2_135 { bottom: var(--t-bottom_2xl); }
|
|
136
|
+
._bottom_2xl\:h_1okb2_136:hover { bottom: var(--t-bottom_2xl-h); }
|
|
137
|
+
._bottom_2xl\:f_1okb2_137:focus { bottom: var(--t-bottom_2xl-f); }
|
|
138
|
+
._bottom_2xl\:a_1okb2_138:active { bottom: var(--t-bottom_2xl-a); }
|
|
139
|
+
._bottom_2xl\:d_1okb2_139:disabled { bottom: var(--t-bottom_2xl-d); }
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
/* left */
|
|
143
|
+
._left_1okb2_143 { left: var(--t-left); }
|
|
144
|
+
._left\:h_1okb2_144:hover { left: var(--t-left-h); }
|
|
145
|
+
._left\:f_1okb2_145:focus { left: var(--t-left-f); }
|
|
146
|
+
._left\:a_1okb2_146:active { left: var(--t-left-a); }
|
|
147
|
+
._left\:d_1okb2_147:disabled { left: var(--t-left-d); }
|
|
148
|
+
|
|
149
|
+
@media (min-width: 640px) {
|
|
150
|
+
._left_sm_1okb2_150 { left: var(--t-left_sm); }
|
|
151
|
+
._left_sm\:h_1okb2_151:hover { left: var(--t-left_sm-h); }
|
|
152
|
+
._left_sm\:f_1okb2_152:focus { left: var(--t-left_sm-f); }
|
|
153
|
+
._left_sm\:a_1okb2_153:active { left: var(--t-left_sm-a); }
|
|
154
|
+
._left_sm\:d_1okb2_154:disabled { left: var(--t-left_sm-d); }
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
@media (min-width: 768px) {
|
|
158
|
+
._left_md_1okb2_158 { left: var(--t-left_md); }
|
|
159
|
+
._left_md\:h_1okb2_159:hover { left: var(--t-left_md-h); }
|
|
160
|
+
._left_md\:f_1okb2_160:focus { left: var(--t-left_md-f); }
|
|
161
|
+
._left_md\:a_1okb2_161:active { left: var(--t-left_md-a); }
|
|
162
|
+
._left_md\:d_1okb2_162:disabled { left: var(--t-left_md-d); }
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
@media (min-width: 1024px) {
|
|
166
|
+
._left_lg_1okb2_166 { left: var(--t-left_lg); }
|
|
167
|
+
._left_lg\:h_1okb2_167:hover { left: var(--t-left_lg-h); }
|
|
168
|
+
._left_lg\:f_1okb2_168:focus { left: var(--t-left_lg-f); }
|
|
169
|
+
._left_lg\:a_1okb2_169:active { left: var(--t-left_lg-a); }
|
|
170
|
+
._left_lg\:d_1okb2_170:disabled { left: var(--t-left_lg-d); }
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
@media (min-width: 1280px) {
|
|
174
|
+
._left_xl_1okb2_174 { left: var(--t-left_xl); }
|
|
175
|
+
._left_xl\:h_1okb2_175:hover { left: var(--t-left_xl-h); }
|
|
176
|
+
._left_xl\:f_1okb2_176:focus { left: var(--t-left_xl-f); }
|
|
177
|
+
._left_xl\:a_1okb2_177:active { left: var(--t-left_xl-a); }
|
|
178
|
+
._left_xl\:d_1okb2_178:disabled { left: var(--t-left_xl-d); }
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
@media (min-width: 1536px) {
|
|
182
|
+
._left_2xl_1okb2_182 { left: var(--t-left_2xl); }
|
|
183
|
+
._left_2xl\:h_1okb2_183:hover { left: var(--t-left_2xl-h); }
|
|
184
|
+
._left_2xl\:f_1okb2_184:focus { left: var(--t-left_2xl-f); }
|
|
185
|
+
._left_2xl\:a_1okb2_185:active { left: var(--t-left_2xl-a); }
|
|
186
|
+
._left_2xl\:d_1okb2_186:disabled { left: var(--t-left_2xl-d); }
|
|
187
|
+
}
|
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
const top = "_top_1okb2_2";
|
|
2
|
+
const top_sm = "_top_sm_1okb2_9";
|
|
3
|
+
const top_md = "_top_md_1okb2_17";
|
|
4
|
+
const top_lg = "_top_lg_1okb2_25";
|
|
5
|
+
const top_xl = "_top_xl_1okb2_33";
|
|
6
|
+
const top_2xl = "_top_2xl_1okb2_41";
|
|
7
|
+
const right = "_right_1okb2_49";
|
|
8
|
+
const right_sm = "_right_sm_1okb2_56";
|
|
9
|
+
const right_md = "_right_md_1okb2_64";
|
|
10
|
+
const right_lg = "_right_lg_1okb2_72";
|
|
11
|
+
const right_xl = "_right_xl_1okb2_80";
|
|
12
|
+
const right_2xl = "_right_2xl_1okb2_88";
|
|
13
|
+
const bottom = "_bottom_1okb2_96";
|
|
14
|
+
const bottom_sm = "_bottom_sm_1okb2_103";
|
|
15
|
+
const bottom_md = "_bottom_md_1okb2_111";
|
|
16
|
+
const bottom_lg = "_bottom_lg_1okb2_119";
|
|
17
|
+
const bottom_xl = "_bottom_xl_1okb2_127";
|
|
18
|
+
const bottom_2xl = "_bottom_2xl_1okb2_135";
|
|
19
|
+
const left = "_left_1okb2_143";
|
|
20
|
+
const left_sm = "_left_sm_1okb2_150";
|
|
21
|
+
const left_md = "_left_md_1okb2_158";
|
|
22
|
+
const left_lg = "_left_lg_1okb2_166";
|
|
23
|
+
const left_xl = "_left_xl_1okb2_174";
|
|
24
|
+
const left_2xl = "_left_2xl_1okb2_182";
|
|
25
|
+
const styles = {
|
|
26
|
+
top,
|
|
27
|
+
"top:h": "_top:h_1okb2_3",
|
|
28
|
+
"top:f": "_top:f_1okb2_4",
|
|
29
|
+
"top:a": "_top:a_1okb2_5",
|
|
30
|
+
"top:d": "_top:d_1okb2_6",
|
|
31
|
+
top_sm,
|
|
32
|
+
"top_sm:h": "_top_sm:h_1okb2_10",
|
|
33
|
+
"top_sm:f": "_top_sm:f_1okb2_11",
|
|
34
|
+
"top_sm:a": "_top_sm:a_1okb2_12",
|
|
35
|
+
"top_sm:d": "_top_sm:d_1okb2_13",
|
|
36
|
+
top_md,
|
|
37
|
+
"top_md:h": "_top_md:h_1okb2_18",
|
|
38
|
+
"top_md:f": "_top_md:f_1okb2_19",
|
|
39
|
+
"top_md:a": "_top_md:a_1okb2_20",
|
|
40
|
+
"top_md:d": "_top_md:d_1okb2_21",
|
|
41
|
+
top_lg,
|
|
42
|
+
"top_lg:h": "_top_lg:h_1okb2_26",
|
|
43
|
+
"top_lg:f": "_top_lg:f_1okb2_27",
|
|
44
|
+
"top_lg:a": "_top_lg:a_1okb2_28",
|
|
45
|
+
"top_lg:d": "_top_lg:d_1okb2_29",
|
|
46
|
+
top_xl,
|
|
47
|
+
"top_xl:h": "_top_xl:h_1okb2_34",
|
|
48
|
+
"top_xl:f": "_top_xl:f_1okb2_35",
|
|
49
|
+
"top_xl:a": "_top_xl:a_1okb2_36",
|
|
50
|
+
"top_xl:d": "_top_xl:d_1okb2_37",
|
|
51
|
+
top_2xl,
|
|
52
|
+
"top_2xl:h": "_top_2xl:h_1okb2_42",
|
|
53
|
+
"top_2xl:f": "_top_2xl:f_1okb2_43",
|
|
54
|
+
"top_2xl:a": "_top_2xl:a_1okb2_44",
|
|
55
|
+
"top_2xl:d": "_top_2xl:d_1okb2_45",
|
|
56
|
+
right,
|
|
57
|
+
"right:h": "_right:h_1okb2_50",
|
|
58
|
+
"right:f": "_right:f_1okb2_51",
|
|
59
|
+
"right:a": "_right:a_1okb2_52",
|
|
60
|
+
"right:d": "_right:d_1okb2_53",
|
|
61
|
+
right_sm,
|
|
62
|
+
"right_sm:h": "_right_sm:h_1okb2_57",
|
|
63
|
+
"right_sm:f": "_right_sm:f_1okb2_58",
|
|
64
|
+
"right_sm:a": "_right_sm:a_1okb2_59",
|
|
65
|
+
"right_sm:d": "_right_sm:d_1okb2_60",
|
|
66
|
+
right_md,
|
|
67
|
+
"right_md:h": "_right_md:h_1okb2_65",
|
|
68
|
+
"right_md:f": "_right_md:f_1okb2_66",
|
|
69
|
+
"right_md:a": "_right_md:a_1okb2_67",
|
|
70
|
+
"right_md:d": "_right_md:d_1okb2_68",
|
|
71
|
+
right_lg,
|
|
72
|
+
"right_lg:h": "_right_lg:h_1okb2_73",
|
|
73
|
+
"right_lg:f": "_right_lg:f_1okb2_74",
|
|
74
|
+
"right_lg:a": "_right_lg:a_1okb2_75",
|
|
75
|
+
"right_lg:d": "_right_lg:d_1okb2_76",
|
|
76
|
+
right_xl,
|
|
77
|
+
"right_xl:h": "_right_xl:h_1okb2_81",
|
|
78
|
+
"right_xl:f": "_right_xl:f_1okb2_82",
|
|
79
|
+
"right_xl:a": "_right_xl:a_1okb2_83",
|
|
80
|
+
"right_xl:d": "_right_xl:d_1okb2_84",
|
|
81
|
+
right_2xl,
|
|
82
|
+
"right_2xl:h": "_right_2xl:h_1okb2_89",
|
|
83
|
+
"right_2xl:f": "_right_2xl:f_1okb2_90",
|
|
84
|
+
"right_2xl:a": "_right_2xl:a_1okb2_91",
|
|
85
|
+
"right_2xl:d": "_right_2xl:d_1okb2_92",
|
|
86
|
+
bottom,
|
|
87
|
+
"bottom:h": "_bottom:h_1okb2_97",
|
|
88
|
+
"bottom:f": "_bottom:f_1okb2_98",
|
|
89
|
+
"bottom:a": "_bottom:a_1okb2_99",
|
|
90
|
+
"bottom:d": "_bottom:d_1okb2_100",
|
|
91
|
+
bottom_sm,
|
|
92
|
+
"bottom_sm:h": "_bottom_sm:h_1okb2_104",
|
|
93
|
+
"bottom_sm:f": "_bottom_sm:f_1okb2_105",
|
|
94
|
+
"bottom_sm:a": "_bottom_sm:a_1okb2_106",
|
|
95
|
+
"bottom_sm:d": "_bottom_sm:d_1okb2_107",
|
|
96
|
+
bottom_md,
|
|
97
|
+
"bottom_md:h": "_bottom_md:h_1okb2_112",
|
|
98
|
+
"bottom_md:f": "_bottom_md:f_1okb2_113",
|
|
99
|
+
"bottom_md:a": "_bottom_md:a_1okb2_114",
|
|
100
|
+
"bottom_md:d": "_bottom_md:d_1okb2_115",
|
|
101
|
+
bottom_lg,
|
|
102
|
+
"bottom_lg:h": "_bottom_lg:h_1okb2_120",
|
|
103
|
+
"bottom_lg:f": "_bottom_lg:f_1okb2_121",
|
|
104
|
+
"bottom_lg:a": "_bottom_lg:a_1okb2_122",
|
|
105
|
+
"bottom_lg:d": "_bottom_lg:d_1okb2_123",
|
|
106
|
+
bottom_xl,
|
|
107
|
+
"bottom_xl:h": "_bottom_xl:h_1okb2_128",
|
|
108
|
+
"bottom_xl:f": "_bottom_xl:f_1okb2_129",
|
|
109
|
+
"bottom_xl:a": "_bottom_xl:a_1okb2_130",
|
|
110
|
+
"bottom_xl:d": "_bottom_xl:d_1okb2_131",
|
|
111
|
+
bottom_2xl,
|
|
112
|
+
"bottom_2xl:h": "_bottom_2xl:h_1okb2_136",
|
|
113
|
+
"bottom_2xl:f": "_bottom_2xl:f_1okb2_137",
|
|
114
|
+
"bottom_2xl:a": "_bottom_2xl:a_1okb2_138",
|
|
115
|
+
"bottom_2xl:d": "_bottom_2xl:d_1okb2_139",
|
|
116
|
+
left,
|
|
117
|
+
"left:h": "_left:h_1okb2_144",
|
|
118
|
+
"left:f": "_left:f_1okb2_145",
|
|
119
|
+
"left:a": "_left:a_1okb2_146",
|
|
120
|
+
"left:d": "_left:d_1okb2_147",
|
|
121
|
+
left_sm,
|
|
122
|
+
"left_sm:h": "_left_sm:h_1okb2_151",
|
|
123
|
+
"left_sm:f": "_left_sm:f_1okb2_152",
|
|
124
|
+
"left_sm:a": "_left_sm:a_1okb2_153",
|
|
125
|
+
"left_sm:d": "_left_sm:d_1okb2_154",
|
|
126
|
+
left_md,
|
|
127
|
+
"left_md:h": "_left_md:h_1okb2_159",
|
|
128
|
+
"left_md:f": "_left_md:f_1okb2_160",
|
|
129
|
+
"left_md:a": "_left_md:a_1okb2_161",
|
|
130
|
+
"left_md:d": "_left_md:d_1okb2_162",
|
|
131
|
+
left_lg,
|
|
132
|
+
"left_lg:h": "_left_lg:h_1okb2_167",
|
|
133
|
+
"left_lg:f": "_left_lg:f_1okb2_168",
|
|
134
|
+
"left_lg:a": "_left_lg:a_1okb2_169",
|
|
135
|
+
"left_lg:d": "_left_lg:d_1okb2_170",
|
|
136
|
+
left_xl,
|
|
137
|
+
"left_xl:h": "_left_xl:h_1okb2_175",
|
|
138
|
+
"left_xl:f": "_left_xl:f_1okb2_176",
|
|
139
|
+
"left_xl:a": "_left_xl:a_1okb2_177",
|
|
140
|
+
"left_xl:d": "_left_xl:d_1okb2_178",
|
|
141
|
+
left_2xl,
|
|
142
|
+
"left_2xl:h": "_left_2xl:h_1okb2_183",
|
|
143
|
+
"left_2xl:f": "_left_2xl:f_1okb2_184",
|
|
144
|
+
"left_2xl:a": "_left_2xl:a_1okb2_185",
|
|
145
|
+
"left_2xl:d": "_left_2xl:d_1okb2_186"
|
|
146
|
+
};
|
|
147
|
+
export {
|
|
148
|
+
bottom,
|
|
149
|
+
bottom_2xl,
|
|
150
|
+
bottom_lg,
|
|
151
|
+
bottom_md,
|
|
152
|
+
bottom_sm,
|
|
153
|
+
bottom_xl,
|
|
154
|
+
styles as default,
|
|
155
|
+
left,
|
|
156
|
+
left_2xl,
|
|
157
|
+
left_lg,
|
|
158
|
+
left_md,
|
|
159
|
+
left_sm,
|
|
160
|
+
left_xl,
|
|
161
|
+
right,
|
|
162
|
+
right_2xl,
|
|
163
|
+
right_lg,
|
|
164
|
+
right_md,
|
|
165
|
+
right_sm,
|
|
166
|
+
right_xl,
|
|
167
|
+
top,
|
|
168
|
+
top_2xl,
|
|
169
|
+
top_lg,
|
|
170
|
+
top_md,
|
|
171
|
+
top_sm,
|
|
172
|
+
top_xl
|
|
173
|
+
};
|
|
174
|
+
//# sourceMappingURL=inset.module.css.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"inset.module.css.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { STATE_CLASS_SUFFIXES } from "../shared/constants.js";
|
|
2
|
+
import styles from "./interactions.module.css.js";
|
|
3
|
+
import clsx from "clsx";
|
|
4
|
+
function getCursorClass(value, state) {
|
|
5
|
+
const stateClassSuffix = STATE_CLASS_SUFFIXES[state];
|
|
6
|
+
return stateClassSuffix ? styles[`cursor-${value}${stateClassSuffix}`] : styles[`cursor-${value}`];
|
|
7
|
+
}
|
|
8
|
+
function getPointerEventsClass(value, state) {
|
|
9
|
+
const stateClassSuffix = STATE_CLASS_SUFFIXES[state];
|
|
10
|
+
return stateClassSuffix ? styles[`pointer-${value}${stateClassSuffix}`] : styles[`pointer-${value}`];
|
|
11
|
+
}
|
|
12
|
+
function getUserSelectClass(value, state) {
|
|
13
|
+
const stateClassSuffix = STATE_CLASS_SUFFIXES[state];
|
|
14
|
+
return stateClassSuffix ? styles[`select-${value}${stateClassSuffix}`] : styles[`select-${value}`];
|
|
15
|
+
}
|
|
16
|
+
function getInteractionStylesForState(props, state) {
|
|
17
|
+
if (!props) return { className: "", style: {} };
|
|
18
|
+
const classes = [];
|
|
19
|
+
if (props.cursor) {
|
|
20
|
+
const cls = getCursorClass(props.cursor, state);
|
|
21
|
+
if (cls) classes.push(cls);
|
|
22
|
+
}
|
|
23
|
+
if (props.pointerEvents) {
|
|
24
|
+
const cls = getPointerEventsClass(props.pointerEvents, state);
|
|
25
|
+
if (cls) classes.push(cls);
|
|
26
|
+
}
|
|
27
|
+
if (props.userSelect) {
|
|
28
|
+
const cls = getUserSelectClass(props.userSelect, state);
|
|
29
|
+
if (cls) classes.push(cls);
|
|
30
|
+
}
|
|
31
|
+
return { className: clsx(...classes), style: {} };
|
|
32
|
+
}
|
|
33
|
+
function getInteractionStyles(props) {
|
|
34
|
+
const { cursor, pointerEvents, userSelect, _hover } = props;
|
|
35
|
+
const baseStyles = getInteractionStylesForState({ cursor, pointerEvents, userSelect }, "base");
|
|
36
|
+
const hoverStyles = getInteractionStylesForState(_hover, "hover");
|
|
37
|
+
return {
|
|
38
|
+
className: clsx(baseStyles.className, hoverStyles.className),
|
|
39
|
+
style: {}
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
export {
|
|
43
|
+
getInteractionStyles
|
|
44
|
+
};
|
|
45
|
+
//# sourceMappingURL=interactions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"interactions.js","sources":["../../../../src/components/Box/interactions/interactions.ts"],"sourcesContent":["import {\n STATE_CLASS_SUFFIXES,\n type StateKey,\n type StyleResult,\n} from \"../shared\";\nimport styles from \"./interactions.module.css\";\nimport clsx from \"clsx\";\n\nexport type CursorValue =\n | \"auto\"\n | \"default\"\n | \"pointer\"\n | \"wait\"\n | \"text\"\n | \"move\"\n | \"not-allowed\"\n | \"grab\"\n | \"grabbing\"\n | \"zoom-in\"\n | \"zoom-out\"\n | \"crosshair\";\n\nexport type PointerEventsValue = \"auto\" | \"none\" | \"all\";\n\nexport type UserSelectValue = \"auto\" | \"none\" | \"text\" | \"all\";\n\nexport type InteractionProps = {\n cursor?: CursorValue;\n pointerEvents?: PointerEventsValue;\n userSelect?: UserSelectValue;\n};\n\nexport type InteractionStateProps = {\n _hover?: InteractionProps;\n};\n\nfunction getCursorClass(value: CursorValue, state: StateKey): string | undefined {\n const stateClassSuffix = STATE_CLASS_SUFFIXES[state];\n return stateClassSuffix\n ? styles[`cursor-${value}${stateClassSuffix}`]\n : styles[`cursor-${value}`];\n}\n\nfunction getPointerEventsClass(value: PointerEventsValue, state: StateKey): string | undefined {\n const stateClassSuffix = STATE_CLASS_SUFFIXES[state];\n return stateClassSuffix\n ? styles[`pointer-${value}${stateClassSuffix}`]\n : styles[`pointer-${value}`];\n}\n\nfunction getUserSelectClass(value: UserSelectValue, state: StateKey): string | undefined {\n const stateClassSuffix = STATE_CLASS_SUFFIXES[state];\n return stateClassSuffix\n ? styles[`select-${value}${stateClassSuffix}`]\n : styles[`select-${value}`];\n}\n\nfunction getInteractionStylesForState(\n props: InteractionProps | undefined,\n state: StateKey\n): StyleResult {\n if (!props) return { className: \"\", style: {} };\n\n const classes: string[] = [];\n\n if (props.cursor) {\n const cls = getCursorClass(props.cursor, state);\n if (cls) classes.push(cls);\n }\n\n if (props.pointerEvents) {\n const cls = getPointerEventsClass(props.pointerEvents, state);\n if (cls) classes.push(cls);\n }\n\n if (props.userSelect) {\n const cls = getUserSelectClass(props.userSelect, state);\n if (cls) classes.push(cls);\n }\n\n return { className: clsx(...classes), style: {} };\n}\n\nexport function getInteractionStyles(\n props: InteractionProps & InteractionStateProps\n): StyleResult {\n const { cursor, pointerEvents, userSelect, _hover } = props;\n\n const baseStyles = getInteractionStylesForState({ cursor, pointerEvents, userSelect }, \"base\");\n const hoverStyles = getInteractionStylesForState(_hover, \"hover\");\n\n return {\n className: clsx(baseStyles.className, hoverStyles.className),\n style: {},\n };\n}\n"],"names":[],"mappings":";;;AAoCA,SAAS,eAAe,OAAoB,OAAqC;AAC/E,QAAM,mBAAmB,qBAAqB,KAAK;AACnD,SAAO,mBACH,OAAO,UAAU,KAAK,GAAG,gBAAgB,EAAE,IAC3C,OAAO,UAAU,KAAK,EAAE;AAC9B;AAEA,SAAS,sBAAsB,OAA2B,OAAqC;AAC7F,QAAM,mBAAmB,qBAAqB,KAAK;AACnD,SAAO,mBACH,OAAO,WAAW,KAAK,GAAG,gBAAgB,EAAE,IAC5C,OAAO,WAAW,KAAK,EAAE;AAC/B;AAEA,SAAS,mBAAmB,OAAwB,OAAqC;AACvF,QAAM,mBAAmB,qBAAqB,KAAK;AACnD,SAAO,mBACH,OAAO,UAAU,KAAK,GAAG,gBAAgB,EAAE,IAC3C,OAAO,UAAU,KAAK,EAAE;AAC9B;AAEA,SAAS,6BACP,OACA,OACa;AACb,MAAI,CAAC,MAAO,QAAO,EAAE,WAAW,IAAI,OAAO,GAAC;AAE5C,QAAM,UAAoB,CAAA;AAE1B,MAAI,MAAM,QAAQ;AAChB,UAAM,MAAM,eAAe,MAAM,QAAQ,KAAK;AAC9C,QAAI,IAAK,SAAQ,KAAK,GAAG;AAAA,EAC3B;AAEA,MAAI,MAAM,eAAe;AACvB,UAAM,MAAM,sBAAsB,MAAM,eAAe,KAAK;AAC5D,QAAI,IAAK,SAAQ,KAAK,GAAG;AAAA,EAC3B;AAEA,MAAI,MAAM,YAAY;AACpB,UAAM,MAAM,mBAAmB,MAAM,YAAY,KAAK;AACtD,QAAI,IAAK,SAAQ,KAAK,GAAG;AAAA,EAC3B;AAEA,SAAO,EAAE,WAAW,KAAK,GAAG,OAAO,GAAG,OAAO,GAAC;AAChD;AAEO,SAAS,qBACd,OACa;AACb,QAAM,EAAE,QAAQ,eAAe,YAAY,WAAW;AAEtD,QAAM,aAAa,6BAA6B,EAAE,QAAQ,eAAe,WAAA,GAAc,MAAM;AAC7F,QAAM,cAAc,6BAA6B,QAAQ,OAAO;AAEhE,SAAO;AAAA,IACL,WAAW,KAAK,WAAW,WAAW,YAAY,SAAS;AAAA,IAC3D,OAAO,CAAA;AAAA,EAAC;AAEZ;"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/* cursor values */
|
|
2
|
+
._cursor-auto_pbiyt_2 { cursor: auto; }
|
|
3
|
+
._cursor-auto\:h_pbiyt_3:hover { cursor: auto; }
|
|
4
|
+
._cursor-pointer_pbiyt_4 { cursor: pointer; }
|
|
5
|
+
._cursor-pointer\:h_pbiyt_5:hover { cursor: pointer; }
|
|
6
|
+
._cursor-wait_pbiyt_6 { cursor: wait; }
|
|
7
|
+
._cursor-wait\:h_pbiyt_7:hover { cursor: wait; }
|
|
8
|
+
._cursor-text_pbiyt_8 { cursor: text; }
|
|
9
|
+
._cursor-text\:h_pbiyt_9:hover { cursor: text; }
|
|
10
|
+
._cursor-move_pbiyt_10 { cursor: move; }
|
|
11
|
+
._cursor-move\:h_pbiyt_11:hover { cursor: move; }
|
|
12
|
+
._cursor-not-allowed_pbiyt_12 { cursor: not-allowed; }
|
|
13
|
+
._cursor-not-allowed\:h_pbiyt_13:hover { cursor: not-allowed; }
|
|
14
|
+
._cursor-grab_pbiyt_14 { cursor: grab; }
|
|
15
|
+
._cursor-grab\:h_pbiyt_15:hover { cursor: grab; }
|
|
16
|
+
._cursor-grabbing_pbiyt_16 { cursor: grabbing; }
|
|
17
|
+
._cursor-grabbing\:h_pbiyt_17:hover { cursor: grabbing; }
|
|
18
|
+
._cursor-zoom-in_pbiyt_18 { cursor: zoom-in; }
|
|
19
|
+
._cursor-zoom-in\:h_pbiyt_19:hover { cursor: zoom-in; }
|
|
20
|
+
._cursor-zoom-out_pbiyt_20 { cursor: zoom-out; }
|
|
21
|
+
._cursor-zoom-out\:h_pbiyt_21:hover { cursor: zoom-out; }
|
|
22
|
+
._cursor-crosshair_pbiyt_22 { cursor: crosshair; }
|
|
23
|
+
._cursor-crosshair\:h_pbiyt_23:hover { cursor: crosshair; }
|
|
24
|
+
._cursor-default_pbiyt_24 { cursor: default; }
|
|
25
|
+
._cursor-default\:h_pbiyt_25:hover { cursor: default; }
|
|
26
|
+
|
|
27
|
+
/* pointerEvents values */
|
|
28
|
+
._pointer-auto_pbiyt_28 { pointer-events: auto; }
|
|
29
|
+
._pointer-auto\:h_pbiyt_29:hover { pointer-events: auto; }
|
|
30
|
+
._pointer-none_pbiyt_30 { pointer-events: none; }
|
|
31
|
+
._pointer-none\:h_pbiyt_31:hover { pointer-events: none; }
|
|
32
|
+
._pointer-all_pbiyt_32 { pointer-events: all; }
|
|
33
|
+
._pointer-all\:h_pbiyt_33:hover { pointer-events: all; }
|
|
34
|
+
|
|
35
|
+
/* userSelect values */
|
|
36
|
+
._select-auto_pbiyt_36 { user-select: auto; }
|
|
37
|
+
._select-auto\:h_pbiyt_37:hover { user-select: auto; }
|
|
38
|
+
._select-none_pbiyt_38 { user-select: none; }
|
|
39
|
+
._select-none\:h_pbiyt_39:hover { user-select: none; }
|
|
40
|
+
._select-text_pbiyt_40 { user-select: text; }
|
|
41
|
+
._select-text\:h_pbiyt_41:hover { user-select: text; }
|
|
42
|
+
._select-all_pbiyt_42 { user-select: all; }
|
|
43
|
+
._select-all\:h_pbiyt_43:hover { user-select: all; }
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
const styles = {
|
|
2
|
+
"cursor-auto": "_cursor-auto_pbiyt_2",
|
|
3
|
+
"cursor-auto:h": "_cursor-auto:h_pbiyt_3",
|
|
4
|
+
"cursor-pointer": "_cursor-pointer_pbiyt_4",
|
|
5
|
+
"cursor-pointer:h": "_cursor-pointer:h_pbiyt_5",
|
|
6
|
+
"cursor-wait": "_cursor-wait_pbiyt_6",
|
|
7
|
+
"cursor-wait:h": "_cursor-wait:h_pbiyt_7",
|
|
8
|
+
"cursor-text": "_cursor-text_pbiyt_8",
|
|
9
|
+
"cursor-text:h": "_cursor-text:h_pbiyt_9",
|
|
10
|
+
"cursor-move": "_cursor-move_pbiyt_10",
|
|
11
|
+
"cursor-move:h": "_cursor-move:h_pbiyt_11",
|
|
12
|
+
"cursor-not-allowed": "_cursor-not-allowed_pbiyt_12",
|
|
13
|
+
"cursor-not-allowed:h": "_cursor-not-allowed:h_pbiyt_13",
|
|
14
|
+
"cursor-grab": "_cursor-grab_pbiyt_14",
|
|
15
|
+
"cursor-grab:h": "_cursor-grab:h_pbiyt_15",
|
|
16
|
+
"cursor-grabbing": "_cursor-grabbing_pbiyt_16",
|
|
17
|
+
"cursor-grabbing:h": "_cursor-grabbing:h_pbiyt_17",
|
|
18
|
+
"cursor-zoom-in": "_cursor-zoom-in_pbiyt_18",
|
|
19
|
+
"cursor-zoom-in:h": "_cursor-zoom-in:h_pbiyt_19",
|
|
20
|
+
"cursor-zoom-out": "_cursor-zoom-out_pbiyt_20",
|
|
21
|
+
"cursor-zoom-out:h": "_cursor-zoom-out:h_pbiyt_21",
|
|
22
|
+
"cursor-crosshair": "_cursor-crosshair_pbiyt_22",
|
|
23
|
+
"cursor-crosshair:h": "_cursor-crosshair:h_pbiyt_23",
|
|
24
|
+
"cursor-default": "_cursor-default_pbiyt_24",
|
|
25
|
+
"cursor-default:h": "_cursor-default:h_pbiyt_25",
|
|
26
|
+
"pointer-auto": "_pointer-auto_pbiyt_28",
|
|
27
|
+
"pointer-auto:h": "_pointer-auto:h_pbiyt_29",
|
|
28
|
+
"pointer-none": "_pointer-none_pbiyt_30",
|
|
29
|
+
"pointer-none:h": "_pointer-none:h_pbiyt_31",
|
|
30
|
+
"pointer-all": "_pointer-all_pbiyt_32",
|
|
31
|
+
"pointer-all:h": "_pointer-all:h_pbiyt_33",
|
|
32
|
+
"select-auto": "_select-auto_pbiyt_36",
|
|
33
|
+
"select-auto:h": "_select-auto:h_pbiyt_37",
|
|
34
|
+
"select-none": "_select-none_pbiyt_38",
|
|
35
|
+
"select-none:h": "_select-none:h_pbiyt_39",
|
|
36
|
+
"select-text": "_select-text_pbiyt_40",
|
|
37
|
+
"select-text:h": "_select-text:h_pbiyt_41",
|
|
38
|
+
"select-all": "_select-all_pbiyt_42",
|
|
39
|
+
"select-all:h": "_select-all:h_pbiyt_43"
|
|
40
|
+
};
|
|
41
|
+
export {
|
|
42
|
+
styles as default
|
|
43
|
+
};
|
|
44
|
+
//# sourceMappingURL=interactions.module.css.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"interactions.module.css.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|