@tosui/react 0.1.0 → 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.d.ts.map +1 -1
- 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,187 @@
|
|
|
1
|
+
/* padding-top */
|
|
2
|
+
._pt_heon2_2 { padding-top: var(--t-pt); }
|
|
3
|
+
._pt\:h_heon2_3:hover { padding-top: var(--t-pt-h); }
|
|
4
|
+
._pt\:f_heon2_4:focus { padding-top: var(--t-pt-f); }
|
|
5
|
+
._pt\:a_heon2_5:active { padding-top: var(--t-pt-a); }
|
|
6
|
+
._pt\:d_heon2_6:disabled { padding-top: var(--t-pt-d); }
|
|
7
|
+
|
|
8
|
+
@media (min-width: 640px) {
|
|
9
|
+
._pt_sm_heon2_9 { padding-top: var(--t-pt_sm); }
|
|
10
|
+
._pt_sm\:h_heon2_10:hover { padding-top: var(--t-pt_sm-h); }
|
|
11
|
+
._pt_sm\:f_heon2_11:focus { padding-top: var(--t-pt_sm-f); }
|
|
12
|
+
._pt_sm\:a_heon2_12:active { padding-top: var(--t-pt_sm-a); }
|
|
13
|
+
._pt_sm\:d_heon2_13:disabled { padding-top: var(--t-pt_sm-d); }
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
@media (min-width: 768px) {
|
|
17
|
+
._pt_md_heon2_17 { padding-top: var(--t-pt_md); }
|
|
18
|
+
._pt_md\:h_heon2_18:hover { padding-top: var(--t-pt_md-h); }
|
|
19
|
+
._pt_md\:f_heon2_19:focus { padding-top: var(--t-pt_md-f); }
|
|
20
|
+
._pt_md\:a_heon2_20:active { padding-top: var(--t-pt_md-a); }
|
|
21
|
+
._pt_md\:d_heon2_21:disabled { padding-top: var(--t-pt_md-d); }
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
@media (min-width: 1024px) {
|
|
25
|
+
._pt_lg_heon2_25 { padding-top: var(--t-pt_lg); }
|
|
26
|
+
._pt_lg\:h_heon2_26:hover { padding-top: var(--t-pt_lg-h); }
|
|
27
|
+
._pt_lg\:f_heon2_27:focus { padding-top: var(--t-pt_lg-f); }
|
|
28
|
+
._pt_lg\:a_heon2_28:active { padding-top: var(--t-pt_lg-a); }
|
|
29
|
+
._pt_lg\:d_heon2_29:disabled { padding-top: var(--t-pt_lg-d); }
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
@media (min-width: 1280px) {
|
|
33
|
+
._pt_xl_heon2_33 { padding-top: var(--t-pt_xl); }
|
|
34
|
+
._pt_xl\:h_heon2_34:hover { padding-top: var(--t-pt_xl-h); }
|
|
35
|
+
._pt_xl\:f_heon2_35:focus { padding-top: var(--t-pt_xl-f); }
|
|
36
|
+
._pt_xl\:a_heon2_36:active { padding-top: var(--t-pt_xl-a); }
|
|
37
|
+
._pt_xl\:d_heon2_37:disabled { padding-top: var(--t-pt_xl-d); }
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
@media (min-width: 1536px) {
|
|
41
|
+
._pt_2xl_heon2_41 { padding-top: var(--t-pt_2xl); }
|
|
42
|
+
._pt_2xl\:h_heon2_42:hover { padding-top: var(--t-pt_2xl-h); }
|
|
43
|
+
._pt_2xl\:f_heon2_43:focus { padding-top: var(--t-pt_2xl-f); }
|
|
44
|
+
._pt_2xl\:a_heon2_44:active { padding-top: var(--t-pt_2xl-a); }
|
|
45
|
+
._pt_2xl\:d_heon2_45:disabled { padding-top: var(--t-pt_2xl-d); }
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/* padding-right */
|
|
49
|
+
._pr_heon2_49 { padding-right: var(--t-pr); }
|
|
50
|
+
._pr\:h_heon2_50:hover { padding-right: var(--t-pr-h); }
|
|
51
|
+
._pr\:f_heon2_51:focus { padding-right: var(--t-pr-f); }
|
|
52
|
+
._pr\:a_heon2_52:active { padding-right: var(--t-pr-a); }
|
|
53
|
+
._pr\:d_heon2_53:disabled { padding-right: var(--t-pr-d); }
|
|
54
|
+
|
|
55
|
+
@media (min-width: 640px) {
|
|
56
|
+
._pr_sm_heon2_56 { padding-right: var(--t-pr_sm); }
|
|
57
|
+
._pr_sm\:h_heon2_57:hover { padding-right: var(--t-pr_sm-h); }
|
|
58
|
+
._pr_sm\:f_heon2_58:focus { padding-right: var(--t-pr_sm-f); }
|
|
59
|
+
._pr_sm\:a_heon2_59:active { padding-right: var(--t-pr_sm-a); }
|
|
60
|
+
._pr_sm\:d_heon2_60:disabled { padding-right: var(--t-pr_sm-d); }
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
@media (min-width: 768px) {
|
|
64
|
+
._pr_md_heon2_64 { padding-right: var(--t-pr_md); }
|
|
65
|
+
._pr_md\:h_heon2_65:hover { padding-right: var(--t-pr_md-h); }
|
|
66
|
+
._pr_md\:f_heon2_66:focus { padding-right: var(--t-pr_md-f); }
|
|
67
|
+
._pr_md\:a_heon2_67:active { padding-right: var(--t-pr_md-a); }
|
|
68
|
+
._pr_md\:d_heon2_68:disabled { padding-right: var(--t-pr_md-d); }
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
@media (min-width: 1024px) {
|
|
72
|
+
._pr_lg_heon2_72 { padding-right: var(--t-pr_lg); }
|
|
73
|
+
._pr_lg\:h_heon2_73:hover { padding-right: var(--t-pr_lg-h); }
|
|
74
|
+
._pr_lg\:f_heon2_74:focus { padding-right: var(--t-pr_lg-f); }
|
|
75
|
+
._pr_lg\:a_heon2_75:active { padding-right: var(--t-pr_lg-a); }
|
|
76
|
+
._pr_lg\:d_heon2_76:disabled { padding-right: var(--t-pr_lg-d); }
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
@media (min-width: 1280px) {
|
|
80
|
+
._pr_xl_heon2_80 { padding-right: var(--t-pr_xl); }
|
|
81
|
+
._pr_xl\:h_heon2_81:hover { padding-right: var(--t-pr_xl-h); }
|
|
82
|
+
._pr_xl\:f_heon2_82:focus { padding-right: var(--t-pr_xl-f); }
|
|
83
|
+
._pr_xl\:a_heon2_83:active { padding-right: var(--t-pr_xl-a); }
|
|
84
|
+
._pr_xl\:d_heon2_84:disabled { padding-right: var(--t-pr_xl-d); }
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
@media (min-width: 1536px) {
|
|
88
|
+
._pr_2xl_heon2_88 { padding-right: var(--t-pr_2xl); }
|
|
89
|
+
._pr_2xl\:h_heon2_89:hover { padding-right: var(--t-pr_2xl-h); }
|
|
90
|
+
._pr_2xl\:f_heon2_90:focus { padding-right: var(--t-pr_2xl-f); }
|
|
91
|
+
._pr_2xl\:a_heon2_91:active { padding-right: var(--t-pr_2xl-a); }
|
|
92
|
+
._pr_2xl\:d_heon2_92:disabled { padding-right: var(--t-pr_2xl-d); }
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
/* padding-bottom */
|
|
96
|
+
._pb_heon2_96 { padding-bottom: var(--t-pb); }
|
|
97
|
+
._pb\:h_heon2_97:hover { padding-bottom: var(--t-pb-h); }
|
|
98
|
+
._pb\:f_heon2_98:focus { padding-bottom: var(--t-pb-f); }
|
|
99
|
+
._pb\:a_heon2_99:active { padding-bottom: var(--t-pb-a); }
|
|
100
|
+
._pb\:d_heon2_100:disabled { padding-bottom: var(--t-pb-d); }
|
|
101
|
+
|
|
102
|
+
@media (min-width: 640px) {
|
|
103
|
+
._pb_sm_heon2_103 { padding-bottom: var(--t-pb_sm); }
|
|
104
|
+
._pb_sm\:h_heon2_104:hover { padding-bottom: var(--t-pb_sm-h); }
|
|
105
|
+
._pb_sm\:f_heon2_105:focus { padding-bottom: var(--t-pb_sm-f); }
|
|
106
|
+
._pb_sm\:a_heon2_106:active { padding-bottom: var(--t-pb_sm-a); }
|
|
107
|
+
._pb_sm\:d_heon2_107:disabled { padding-bottom: var(--t-pb_sm-d); }
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
@media (min-width: 768px) {
|
|
111
|
+
._pb_md_heon2_111 { padding-bottom: var(--t-pb_md); }
|
|
112
|
+
._pb_md\:h_heon2_112:hover { padding-bottom: var(--t-pb_md-h); }
|
|
113
|
+
._pb_md\:f_heon2_113:focus { padding-bottom: var(--t-pb_md-f); }
|
|
114
|
+
._pb_md\:a_heon2_114:active { padding-bottom: var(--t-pb_md-a); }
|
|
115
|
+
._pb_md\:d_heon2_115:disabled { padding-bottom: var(--t-pb_md-d); }
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
@media (min-width: 1024px) {
|
|
119
|
+
._pb_lg_heon2_119 { padding-bottom: var(--t-pb_lg); }
|
|
120
|
+
._pb_lg\:h_heon2_120:hover { padding-bottom: var(--t-pb_lg-h); }
|
|
121
|
+
._pb_lg\:f_heon2_121:focus { padding-bottom: var(--t-pb_lg-f); }
|
|
122
|
+
._pb_lg\:a_heon2_122:active { padding-bottom: var(--t-pb_lg-a); }
|
|
123
|
+
._pb_lg\:d_heon2_123:disabled { padding-bottom: var(--t-pb_lg-d); }
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
@media (min-width: 1280px) {
|
|
127
|
+
._pb_xl_heon2_127 { padding-bottom: var(--t-pb_xl); }
|
|
128
|
+
._pb_xl\:h_heon2_128:hover { padding-bottom: var(--t-pb_xl-h); }
|
|
129
|
+
._pb_xl\:f_heon2_129:focus { padding-bottom: var(--t-pb_xl-f); }
|
|
130
|
+
._pb_xl\:a_heon2_130:active { padding-bottom: var(--t-pb_xl-a); }
|
|
131
|
+
._pb_xl\:d_heon2_131:disabled { padding-bottom: var(--t-pb_xl-d); }
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
@media (min-width: 1536px) {
|
|
135
|
+
._pb_2xl_heon2_135 { padding-bottom: var(--t-pb_2xl); }
|
|
136
|
+
._pb_2xl\:h_heon2_136:hover { padding-bottom: var(--t-pb_2xl-h); }
|
|
137
|
+
._pb_2xl\:f_heon2_137:focus { padding-bottom: var(--t-pb_2xl-f); }
|
|
138
|
+
._pb_2xl\:a_heon2_138:active { padding-bottom: var(--t-pb_2xl-a); }
|
|
139
|
+
._pb_2xl\:d_heon2_139:disabled { padding-bottom: var(--t-pb_2xl-d); }
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
/* padding-left */
|
|
143
|
+
._pl_heon2_143 { padding-left: var(--t-pl); }
|
|
144
|
+
._pl\:h_heon2_144:hover { padding-left: var(--t-pl-h); }
|
|
145
|
+
._pl\:f_heon2_145:focus { padding-left: var(--t-pl-f); }
|
|
146
|
+
._pl\:a_heon2_146:active { padding-left: var(--t-pl-a); }
|
|
147
|
+
._pl\:d_heon2_147:disabled { padding-left: var(--t-pl-d); }
|
|
148
|
+
|
|
149
|
+
@media (min-width: 640px) {
|
|
150
|
+
._pl_sm_heon2_150 { padding-left: var(--t-pl_sm); }
|
|
151
|
+
._pl_sm\:h_heon2_151:hover { padding-left: var(--t-pl_sm-h); }
|
|
152
|
+
._pl_sm\:f_heon2_152:focus { padding-left: var(--t-pl_sm-f); }
|
|
153
|
+
._pl_sm\:a_heon2_153:active { padding-left: var(--t-pl_sm-a); }
|
|
154
|
+
._pl_sm\:d_heon2_154:disabled { padding-left: var(--t-pl_sm-d); }
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
@media (min-width: 768px) {
|
|
158
|
+
._pl_md_heon2_158 { padding-left: var(--t-pl_md); }
|
|
159
|
+
._pl_md\:h_heon2_159:hover { padding-left: var(--t-pl_md-h); }
|
|
160
|
+
._pl_md\:f_heon2_160:focus { padding-left: var(--t-pl_md-f); }
|
|
161
|
+
._pl_md\:a_heon2_161:active { padding-left: var(--t-pl_md-a); }
|
|
162
|
+
._pl_md\:d_heon2_162:disabled { padding-left: var(--t-pl_md-d); }
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
@media (min-width: 1024px) {
|
|
166
|
+
._pl_lg_heon2_166 { padding-left: var(--t-pl_lg); }
|
|
167
|
+
._pl_lg\:h_heon2_167:hover { padding-left: var(--t-pl_lg-h); }
|
|
168
|
+
._pl_lg\:f_heon2_168:focus { padding-left: var(--t-pl_lg-f); }
|
|
169
|
+
._pl_lg\:a_heon2_169:active { padding-left: var(--t-pl_lg-a); }
|
|
170
|
+
._pl_lg\:d_heon2_170:disabled { padding-left: var(--t-pl_lg-d); }
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
@media (min-width: 1280px) {
|
|
174
|
+
._pl_xl_heon2_174 { padding-left: var(--t-pl_xl); }
|
|
175
|
+
._pl_xl\:h_heon2_175:hover { padding-left: var(--t-pl_xl-h); }
|
|
176
|
+
._pl_xl\:f_heon2_176:focus { padding-left: var(--t-pl_xl-f); }
|
|
177
|
+
._pl_xl\:a_heon2_177:active { padding-left: var(--t-pl_xl-a); }
|
|
178
|
+
._pl_xl\:d_heon2_178:disabled { padding-left: var(--t-pl_xl-d); }
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
@media (min-width: 1536px) {
|
|
182
|
+
._pl_2xl_heon2_182 { padding-left: var(--t-pl_2xl); }
|
|
183
|
+
._pl_2xl\:h_heon2_183:hover { padding-left: var(--t-pl_2xl-h); }
|
|
184
|
+
._pl_2xl\:f_heon2_184:focus { padding-left: var(--t-pl_2xl-f); }
|
|
185
|
+
._pl_2xl\:a_heon2_185:active { padding-left: var(--t-pl_2xl-a); }
|
|
186
|
+
._pl_2xl\:d_heon2_186:disabled { padding-left: var(--t-pl_2xl-d); }
|
|
187
|
+
}
|
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
const pt = "_pt_heon2_2";
|
|
2
|
+
const pt_sm = "_pt_sm_heon2_9";
|
|
3
|
+
const pt_md = "_pt_md_heon2_17";
|
|
4
|
+
const pt_lg = "_pt_lg_heon2_25";
|
|
5
|
+
const pt_xl = "_pt_xl_heon2_33";
|
|
6
|
+
const pt_2xl = "_pt_2xl_heon2_41";
|
|
7
|
+
const pr = "_pr_heon2_49";
|
|
8
|
+
const pr_sm = "_pr_sm_heon2_56";
|
|
9
|
+
const pr_md = "_pr_md_heon2_64";
|
|
10
|
+
const pr_lg = "_pr_lg_heon2_72";
|
|
11
|
+
const pr_xl = "_pr_xl_heon2_80";
|
|
12
|
+
const pr_2xl = "_pr_2xl_heon2_88";
|
|
13
|
+
const pb = "_pb_heon2_96";
|
|
14
|
+
const pb_sm = "_pb_sm_heon2_103";
|
|
15
|
+
const pb_md = "_pb_md_heon2_111";
|
|
16
|
+
const pb_lg = "_pb_lg_heon2_119";
|
|
17
|
+
const pb_xl = "_pb_xl_heon2_127";
|
|
18
|
+
const pb_2xl = "_pb_2xl_heon2_135";
|
|
19
|
+
const pl = "_pl_heon2_143";
|
|
20
|
+
const pl_sm = "_pl_sm_heon2_150";
|
|
21
|
+
const pl_md = "_pl_md_heon2_158";
|
|
22
|
+
const pl_lg = "_pl_lg_heon2_166";
|
|
23
|
+
const pl_xl = "_pl_xl_heon2_174";
|
|
24
|
+
const pl_2xl = "_pl_2xl_heon2_182";
|
|
25
|
+
const styles = {
|
|
26
|
+
pt,
|
|
27
|
+
"pt:h": "_pt:h_heon2_3",
|
|
28
|
+
"pt:f": "_pt:f_heon2_4",
|
|
29
|
+
"pt:a": "_pt:a_heon2_5",
|
|
30
|
+
"pt:d": "_pt:d_heon2_6",
|
|
31
|
+
pt_sm,
|
|
32
|
+
"pt_sm:h": "_pt_sm:h_heon2_10",
|
|
33
|
+
"pt_sm:f": "_pt_sm:f_heon2_11",
|
|
34
|
+
"pt_sm:a": "_pt_sm:a_heon2_12",
|
|
35
|
+
"pt_sm:d": "_pt_sm:d_heon2_13",
|
|
36
|
+
pt_md,
|
|
37
|
+
"pt_md:h": "_pt_md:h_heon2_18",
|
|
38
|
+
"pt_md:f": "_pt_md:f_heon2_19",
|
|
39
|
+
"pt_md:a": "_pt_md:a_heon2_20",
|
|
40
|
+
"pt_md:d": "_pt_md:d_heon2_21",
|
|
41
|
+
pt_lg,
|
|
42
|
+
"pt_lg:h": "_pt_lg:h_heon2_26",
|
|
43
|
+
"pt_lg:f": "_pt_lg:f_heon2_27",
|
|
44
|
+
"pt_lg:a": "_pt_lg:a_heon2_28",
|
|
45
|
+
"pt_lg:d": "_pt_lg:d_heon2_29",
|
|
46
|
+
pt_xl,
|
|
47
|
+
"pt_xl:h": "_pt_xl:h_heon2_34",
|
|
48
|
+
"pt_xl:f": "_pt_xl:f_heon2_35",
|
|
49
|
+
"pt_xl:a": "_pt_xl:a_heon2_36",
|
|
50
|
+
"pt_xl:d": "_pt_xl:d_heon2_37",
|
|
51
|
+
pt_2xl,
|
|
52
|
+
"pt_2xl:h": "_pt_2xl:h_heon2_42",
|
|
53
|
+
"pt_2xl:f": "_pt_2xl:f_heon2_43",
|
|
54
|
+
"pt_2xl:a": "_pt_2xl:a_heon2_44",
|
|
55
|
+
"pt_2xl:d": "_pt_2xl:d_heon2_45",
|
|
56
|
+
pr,
|
|
57
|
+
"pr:h": "_pr:h_heon2_50",
|
|
58
|
+
"pr:f": "_pr:f_heon2_51",
|
|
59
|
+
"pr:a": "_pr:a_heon2_52",
|
|
60
|
+
"pr:d": "_pr:d_heon2_53",
|
|
61
|
+
pr_sm,
|
|
62
|
+
"pr_sm:h": "_pr_sm:h_heon2_57",
|
|
63
|
+
"pr_sm:f": "_pr_sm:f_heon2_58",
|
|
64
|
+
"pr_sm:a": "_pr_sm:a_heon2_59",
|
|
65
|
+
"pr_sm:d": "_pr_sm:d_heon2_60",
|
|
66
|
+
pr_md,
|
|
67
|
+
"pr_md:h": "_pr_md:h_heon2_65",
|
|
68
|
+
"pr_md:f": "_pr_md:f_heon2_66",
|
|
69
|
+
"pr_md:a": "_pr_md:a_heon2_67",
|
|
70
|
+
"pr_md:d": "_pr_md:d_heon2_68",
|
|
71
|
+
pr_lg,
|
|
72
|
+
"pr_lg:h": "_pr_lg:h_heon2_73",
|
|
73
|
+
"pr_lg:f": "_pr_lg:f_heon2_74",
|
|
74
|
+
"pr_lg:a": "_pr_lg:a_heon2_75",
|
|
75
|
+
"pr_lg:d": "_pr_lg:d_heon2_76",
|
|
76
|
+
pr_xl,
|
|
77
|
+
"pr_xl:h": "_pr_xl:h_heon2_81",
|
|
78
|
+
"pr_xl:f": "_pr_xl:f_heon2_82",
|
|
79
|
+
"pr_xl:a": "_pr_xl:a_heon2_83",
|
|
80
|
+
"pr_xl:d": "_pr_xl:d_heon2_84",
|
|
81
|
+
pr_2xl,
|
|
82
|
+
"pr_2xl:h": "_pr_2xl:h_heon2_89",
|
|
83
|
+
"pr_2xl:f": "_pr_2xl:f_heon2_90",
|
|
84
|
+
"pr_2xl:a": "_pr_2xl:a_heon2_91",
|
|
85
|
+
"pr_2xl:d": "_pr_2xl:d_heon2_92",
|
|
86
|
+
pb,
|
|
87
|
+
"pb:h": "_pb:h_heon2_97",
|
|
88
|
+
"pb:f": "_pb:f_heon2_98",
|
|
89
|
+
"pb:a": "_pb:a_heon2_99",
|
|
90
|
+
"pb:d": "_pb:d_heon2_100",
|
|
91
|
+
pb_sm,
|
|
92
|
+
"pb_sm:h": "_pb_sm:h_heon2_104",
|
|
93
|
+
"pb_sm:f": "_pb_sm:f_heon2_105",
|
|
94
|
+
"pb_sm:a": "_pb_sm:a_heon2_106",
|
|
95
|
+
"pb_sm:d": "_pb_sm:d_heon2_107",
|
|
96
|
+
pb_md,
|
|
97
|
+
"pb_md:h": "_pb_md:h_heon2_112",
|
|
98
|
+
"pb_md:f": "_pb_md:f_heon2_113",
|
|
99
|
+
"pb_md:a": "_pb_md:a_heon2_114",
|
|
100
|
+
"pb_md:d": "_pb_md:d_heon2_115",
|
|
101
|
+
pb_lg,
|
|
102
|
+
"pb_lg:h": "_pb_lg:h_heon2_120",
|
|
103
|
+
"pb_lg:f": "_pb_lg:f_heon2_121",
|
|
104
|
+
"pb_lg:a": "_pb_lg:a_heon2_122",
|
|
105
|
+
"pb_lg:d": "_pb_lg:d_heon2_123",
|
|
106
|
+
pb_xl,
|
|
107
|
+
"pb_xl:h": "_pb_xl:h_heon2_128",
|
|
108
|
+
"pb_xl:f": "_pb_xl:f_heon2_129",
|
|
109
|
+
"pb_xl:a": "_pb_xl:a_heon2_130",
|
|
110
|
+
"pb_xl:d": "_pb_xl:d_heon2_131",
|
|
111
|
+
pb_2xl,
|
|
112
|
+
"pb_2xl:h": "_pb_2xl:h_heon2_136",
|
|
113
|
+
"pb_2xl:f": "_pb_2xl:f_heon2_137",
|
|
114
|
+
"pb_2xl:a": "_pb_2xl:a_heon2_138",
|
|
115
|
+
"pb_2xl:d": "_pb_2xl:d_heon2_139",
|
|
116
|
+
pl,
|
|
117
|
+
"pl:h": "_pl:h_heon2_144",
|
|
118
|
+
"pl:f": "_pl:f_heon2_145",
|
|
119
|
+
"pl:a": "_pl:a_heon2_146",
|
|
120
|
+
"pl:d": "_pl:d_heon2_147",
|
|
121
|
+
pl_sm,
|
|
122
|
+
"pl_sm:h": "_pl_sm:h_heon2_151",
|
|
123
|
+
"pl_sm:f": "_pl_sm:f_heon2_152",
|
|
124
|
+
"pl_sm:a": "_pl_sm:a_heon2_153",
|
|
125
|
+
"pl_sm:d": "_pl_sm:d_heon2_154",
|
|
126
|
+
pl_md,
|
|
127
|
+
"pl_md:h": "_pl_md:h_heon2_159",
|
|
128
|
+
"pl_md:f": "_pl_md:f_heon2_160",
|
|
129
|
+
"pl_md:a": "_pl_md:a_heon2_161",
|
|
130
|
+
"pl_md:d": "_pl_md:d_heon2_162",
|
|
131
|
+
pl_lg,
|
|
132
|
+
"pl_lg:h": "_pl_lg:h_heon2_167",
|
|
133
|
+
"pl_lg:f": "_pl_lg:f_heon2_168",
|
|
134
|
+
"pl_lg:a": "_pl_lg:a_heon2_169",
|
|
135
|
+
"pl_lg:d": "_pl_lg:d_heon2_170",
|
|
136
|
+
pl_xl,
|
|
137
|
+
"pl_xl:h": "_pl_xl:h_heon2_175",
|
|
138
|
+
"pl_xl:f": "_pl_xl:f_heon2_176",
|
|
139
|
+
"pl_xl:a": "_pl_xl:a_heon2_177",
|
|
140
|
+
"pl_xl:d": "_pl_xl:d_heon2_178",
|
|
141
|
+
pl_2xl,
|
|
142
|
+
"pl_2xl:h": "_pl_2xl:h_heon2_183",
|
|
143
|
+
"pl_2xl:f": "_pl_2xl:f_heon2_184",
|
|
144
|
+
"pl_2xl:a": "_pl_2xl:a_heon2_185",
|
|
145
|
+
"pl_2xl:d": "_pl_2xl:d_heon2_186"
|
|
146
|
+
};
|
|
147
|
+
export {
|
|
148
|
+
styles as default,
|
|
149
|
+
pb,
|
|
150
|
+
pb_2xl,
|
|
151
|
+
pb_lg,
|
|
152
|
+
pb_md,
|
|
153
|
+
pb_sm,
|
|
154
|
+
pb_xl,
|
|
155
|
+
pl,
|
|
156
|
+
pl_2xl,
|
|
157
|
+
pl_lg,
|
|
158
|
+
pl_md,
|
|
159
|
+
pl_sm,
|
|
160
|
+
pl_xl,
|
|
161
|
+
pr,
|
|
162
|
+
pr_2xl,
|
|
163
|
+
pr_lg,
|
|
164
|
+
pr_md,
|
|
165
|
+
pr_sm,
|
|
166
|
+
pr_xl,
|
|
167
|
+
pt,
|
|
168
|
+
pt_2xl,
|
|
169
|
+
pt_lg,
|
|
170
|
+
pt_md,
|
|
171
|
+
pt_sm,
|
|
172
|
+
pt_xl
|
|
173
|
+
};
|
|
174
|
+
//# sourceMappingURL=padding.module.css.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"padding.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 "./position.module.css.js";
|
|
3
|
+
import clsx from "clsx";
|
|
4
|
+
function getPositionClass(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 getPositionStylesForValue(value, state) {
|
|
12
|
+
const result = { className: "", style: {} };
|
|
13
|
+
if (value === void 0) return result;
|
|
14
|
+
if (typeof value === "string") {
|
|
15
|
+
const className = getPositionClass(value, "base", state);
|
|
16
|
+
if (className) {
|
|
17
|
+
result.className = className;
|
|
18
|
+
}
|
|
19
|
+
return result;
|
|
20
|
+
}
|
|
21
|
+
for (const responsiveKey of RESPONSIVE_KEYS) {
|
|
22
|
+
const positionValue = value[responsiveKey];
|
|
23
|
+
if (positionValue === void 0) continue;
|
|
24
|
+
const className = getPositionClass(positionValue, responsiveKey, state);
|
|
25
|
+
if (className) {
|
|
26
|
+
result.className = clsx(result.className, className);
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
return result;
|
|
30
|
+
}
|
|
31
|
+
function getPositionStyles(props) {
|
|
32
|
+
const { position, _hover, _focus, _active, _disabled } = props;
|
|
33
|
+
const baseStyles = getPositionStylesForValue(position, "base");
|
|
34
|
+
const hoverStyles = getPositionStylesForValue(_hover?.position, "hover");
|
|
35
|
+
const focusStyles = getPositionStylesForValue(_focus?.position, "focus");
|
|
36
|
+
const activeStyles = getPositionStylesForValue(_active?.position, "active");
|
|
37
|
+
const disabledStyles = getPositionStylesForValue(_disabled?.position, "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
|
+
getPositionStyles
|
|
51
|
+
};
|
|
52
|
+
//# sourceMappingURL=position.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"position.js","sources":["../../../../src/components/Box/position/position.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 \"./position.module.css\";\nimport clsx from \"clsx\";\n\nexport type PositionValue = \"static\" | \"relative\" | \"absolute\" | \"fixed\" | \"sticky\";\n\nexport type PositionProps = {\n position?: ResponsiveValue<PositionValue>;\n};\n\nexport type PositionStateProps = {\n _hover?: PositionProps;\n _focus?: PositionProps;\n _active?: PositionProps;\n _disabled?: PositionProps;\n};\n\nfunction getPositionClass(\n value: PositionValue,\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 getPositionStylesForValue(\n value: ResponsiveValue<PositionValue> | 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 = getPositionClass(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 positionValue = value[responsiveKey];\n if (positionValue === undefined) continue;\n\n const className = getPositionClass(positionValue, responsiveKey, state);\n if (className) {\n result.className = clsx(result.className, className);\n }\n }\n\n return result;\n}\n\nexport function getPositionStyles(\n props: PositionProps & PositionStateProps\n): StyleResult {\n const { position, _hover, _focus, _active, _disabled } = props;\n\n const baseStyles = getPositionStylesForValue(position, \"base\");\n const hoverStyles = getPositionStylesForValue(_hover?.position, \"hover\");\n const focusStyles = getPositionStylesForValue(_focus?.position, \"focus\");\n const activeStyles = getPositionStylesForValue(_active?.position, \"active\");\n const disabledStyles = getPositionStylesForValue(_disabled?.position, \"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,iBACP,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,0BACP,OACA,OACa;AACb,QAAM,SAAsB,EAAE,WAAW,IAAI,OAAO,CAAA,EAAC;AAErD,MAAI,UAAU,OAAW,QAAO;AAEhC,MAAI,OAAO,UAAU,UAAU;AAC7B,UAAM,YAAY,iBAAiB,OAAO,QAAQ,KAAK;AACvD,QAAI,WAAW;AACb,aAAO,YAAY;AAAA,IACrB;AACA,WAAO;AAAA,EACT;AAEA,aAAW,iBAAiB,iBAAiB;AAC3C,UAAM,gBAAgB,MAAM,aAAa;AACzC,QAAI,kBAAkB,OAAW;AAEjC,UAAM,YAAY,iBAAiB,eAAe,eAAe,KAAK;AACtE,QAAI,WAAW;AACb,aAAO,YAAY,KAAK,OAAO,WAAW,SAAS;AAAA,IACrD;AAAA,EACF;AAEA,SAAO;AACT;AAEO,SAAS,kBACd,OACa;AACb,QAAM,EAAE,UAAU,QAAQ,QAAQ,SAAS,cAAc;AAEzD,QAAM,aAAa,0BAA0B,UAAU,MAAM;AAC7D,QAAM,cAAc,0BAA0B,QAAQ,UAAU,OAAO;AACvE,QAAM,cAAc,0BAA0B,QAAQ,UAAU,OAAO;AACvE,QAAM,eAAe,0BAA0B,SAAS,UAAU,QAAQ;AAC1E,QAAM,iBAAiB,0BAA0B,WAAW,UAAU,UAAU;AAEhF,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,234 @@
|
|
|
1
|
+
/* position: static */
|
|
2
|
+
._static_1aemi_2 { position: static; }
|
|
3
|
+
._static\:h_1aemi_3:hover { position: static; }
|
|
4
|
+
._static\:f_1aemi_4:focus { position: static; }
|
|
5
|
+
._static\:a_1aemi_5:active { position: static; }
|
|
6
|
+
._static\:d_1aemi_6:disabled { position: static; }
|
|
7
|
+
|
|
8
|
+
@media (min-width: 640px) {
|
|
9
|
+
._static_sm_1aemi_9 { position: static; }
|
|
10
|
+
._static_sm\:h_1aemi_10:hover { position: static; }
|
|
11
|
+
._static_sm\:f_1aemi_11:focus { position: static; }
|
|
12
|
+
._static_sm\:a_1aemi_12:active { position: static; }
|
|
13
|
+
._static_sm\:d_1aemi_13:disabled { position: static; }
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
@media (min-width: 768px) {
|
|
17
|
+
._static_md_1aemi_17 { position: static; }
|
|
18
|
+
._static_md\:h_1aemi_18:hover { position: static; }
|
|
19
|
+
._static_md\:f_1aemi_19:focus { position: static; }
|
|
20
|
+
._static_md\:a_1aemi_20:active { position: static; }
|
|
21
|
+
._static_md\:d_1aemi_21:disabled { position: static; }
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
@media (min-width: 1024px) {
|
|
25
|
+
._static_lg_1aemi_25 { position: static; }
|
|
26
|
+
._static_lg\:h_1aemi_26:hover { position: static; }
|
|
27
|
+
._static_lg\:f_1aemi_27:focus { position: static; }
|
|
28
|
+
._static_lg\:a_1aemi_28:active { position: static; }
|
|
29
|
+
._static_lg\:d_1aemi_29:disabled { position: static; }
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
@media (min-width: 1280px) {
|
|
33
|
+
._static_xl_1aemi_33 { position: static; }
|
|
34
|
+
._static_xl\:h_1aemi_34:hover { position: static; }
|
|
35
|
+
._static_xl\:f_1aemi_35:focus { position: static; }
|
|
36
|
+
._static_xl\:a_1aemi_36:active { position: static; }
|
|
37
|
+
._static_xl\:d_1aemi_37:disabled { position: static; }
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
@media (min-width: 1536px) {
|
|
41
|
+
._static_2xl_1aemi_41 { position: static; }
|
|
42
|
+
._static_2xl\:h_1aemi_42:hover { position: static; }
|
|
43
|
+
._static_2xl\:f_1aemi_43:focus { position: static; }
|
|
44
|
+
._static_2xl\:a_1aemi_44:active { position: static; }
|
|
45
|
+
._static_2xl\:d_1aemi_45:disabled { position: static; }
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/* position: relative */
|
|
49
|
+
._relative_1aemi_49 { position: relative; }
|
|
50
|
+
._relative\:h_1aemi_50:hover { position: relative; }
|
|
51
|
+
._relative\:f_1aemi_51:focus { position: relative; }
|
|
52
|
+
._relative\:a_1aemi_52:active { position: relative; }
|
|
53
|
+
._relative\:d_1aemi_53:disabled { position: relative; }
|
|
54
|
+
|
|
55
|
+
@media (min-width: 640px) {
|
|
56
|
+
._relative_sm_1aemi_56 { position: relative; }
|
|
57
|
+
._relative_sm\:h_1aemi_57:hover { position: relative; }
|
|
58
|
+
._relative_sm\:f_1aemi_58:focus { position: relative; }
|
|
59
|
+
._relative_sm\:a_1aemi_59:active { position: relative; }
|
|
60
|
+
._relative_sm\:d_1aemi_60:disabled { position: relative; }
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
@media (min-width: 768px) {
|
|
64
|
+
._relative_md_1aemi_64 { position: relative; }
|
|
65
|
+
._relative_md\:h_1aemi_65:hover { position: relative; }
|
|
66
|
+
._relative_md\:f_1aemi_66:focus { position: relative; }
|
|
67
|
+
._relative_md\:a_1aemi_67:active { position: relative; }
|
|
68
|
+
._relative_md\:d_1aemi_68:disabled { position: relative; }
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
@media (min-width: 1024px) {
|
|
72
|
+
._relative_lg_1aemi_72 { position: relative; }
|
|
73
|
+
._relative_lg\:h_1aemi_73:hover { position: relative; }
|
|
74
|
+
._relative_lg\:f_1aemi_74:focus { position: relative; }
|
|
75
|
+
._relative_lg\:a_1aemi_75:active { position: relative; }
|
|
76
|
+
._relative_lg\:d_1aemi_76:disabled { position: relative; }
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
@media (min-width: 1280px) {
|
|
80
|
+
._relative_xl_1aemi_80 { position: relative; }
|
|
81
|
+
._relative_xl\:h_1aemi_81:hover { position: relative; }
|
|
82
|
+
._relative_xl\:f_1aemi_82:focus { position: relative; }
|
|
83
|
+
._relative_xl\:a_1aemi_83:active { position: relative; }
|
|
84
|
+
._relative_xl\:d_1aemi_84:disabled { position: relative; }
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
@media (min-width: 1536px) {
|
|
88
|
+
._relative_2xl_1aemi_88 { position: relative; }
|
|
89
|
+
._relative_2xl\:h_1aemi_89:hover { position: relative; }
|
|
90
|
+
._relative_2xl\:f_1aemi_90:focus { position: relative; }
|
|
91
|
+
._relative_2xl\:a_1aemi_91:active { position: relative; }
|
|
92
|
+
._relative_2xl\:d_1aemi_92:disabled { position: relative; }
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
/* position: absolute */
|
|
96
|
+
._absolute_1aemi_96 { position: absolute; }
|
|
97
|
+
._absolute\:h_1aemi_97:hover { position: absolute; }
|
|
98
|
+
._absolute\:f_1aemi_98:focus { position: absolute; }
|
|
99
|
+
._absolute\:a_1aemi_99:active { position: absolute; }
|
|
100
|
+
._absolute\:d_1aemi_100:disabled { position: absolute; }
|
|
101
|
+
|
|
102
|
+
@media (min-width: 640px) {
|
|
103
|
+
._absolute_sm_1aemi_103 { position: absolute; }
|
|
104
|
+
._absolute_sm\:h_1aemi_104:hover { position: absolute; }
|
|
105
|
+
._absolute_sm\:f_1aemi_105:focus { position: absolute; }
|
|
106
|
+
._absolute_sm\:a_1aemi_106:active { position: absolute; }
|
|
107
|
+
._absolute_sm\:d_1aemi_107:disabled { position: absolute; }
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
@media (min-width: 768px) {
|
|
111
|
+
._absolute_md_1aemi_111 { position: absolute; }
|
|
112
|
+
._absolute_md\:h_1aemi_112:hover { position: absolute; }
|
|
113
|
+
._absolute_md\:f_1aemi_113:focus { position: absolute; }
|
|
114
|
+
._absolute_md\:a_1aemi_114:active { position: absolute; }
|
|
115
|
+
._absolute_md\:d_1aemi_115:disabled { position: absolute; }
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
@media (min-width: 1024px) {
|
|
119
|
+
._absolute_lg_1aemi_119 { position: absolute; }
|
|
120
|
+
._absolute_lg\:h_1aemi_120:hover { position: absolute; }
|
|
121
|
+
._absolute_lg\:f_1aemi_121:focus { position: absolute; }
|
|
122
|
+
._absolute_lg\:a_1aemi_122:active { position: absolute; }
|
|
123
|
+
._absolute_lg\:d_1aemi_123:disabled { position: absolute; }
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
@media (min-width: 1280px) {
|
|
127
|
+
._absolute_xl_1aemi_127 { position: absolute; }
|
|
128
|
+
._absolute_xl\:h_1aemi_128:hover { position: absolute; }
|
|
129
|
+
._absolute_xl\:f_1aemi_129:focus { position: absolute; }
|
|
130
|
+
._absolute_xl\:a_1aemi_130:active { position: absolute; }
|
|
131
|
+
._absolute_xl\:d_1aemi_131:disabled { position: absolute; }
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
@media (min-width: 1536px) {
|
|
135
|
+
._absolute_2xl_1aemi_135 { position: absolute; }
|
|
136
|
+
._absolute_2xl\:h_1aemi_136:hover { position: absolute; }
|
|
137
|
+
._absolute_2xl\:f_1aemi_137:focus { position: absolute; }
|
|
138
|
+
._absolute_2xl\:a_1aemi_138:active { position: absolute; }
|
|
139
|
+
._absolute_2xl\:d_1aemi_139:disabled { position: absolute; }
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
/* position: fixed */
|
|
143
|
+
._fixed_1aemi_143 { position: fixed; }
|
|
144
|
+
._fixed\:h_1aemi_144:hover { position: fixed; }
|
|
145
|
+
._fixed\:f_1aemi_145:focus { position: fixed; }
|
|
146
|
+
._fixed\:a_1aemi_146:active { position: fixed; }
|
|
147
|
+
._fixed\:d_1aemi_147:disabled { position: fixed; }
|
|
148
|
+
|
|
149
|
+
@media (min-width: 640px) {
|
|
150
|
+
._fixed_sm_1aemi_150 { position: fixed; }
|
|
151
|
+
._fixed_sm\:h_1aemi_151:hover { position: fixed; }
|
|
152
|
+
._fixed_sm\:f_1aemi_152:focus { position: fixed; }
|
|
153
|
+
._fixed_sm\:a_1aemi_153:active { position: fixed; }
|
|
154
|
+
._fixed_sm\:d_1aemi_154:disabled { position: fixed; }
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
@media (min-width: 768px) {
|
|
158
|
+
._fixed_md_1aemi_158 { position: fixed; }
|
|
159
|
+
._fixed_md\:h_1aemi_159:hover { position: fixed; }
|
|
160
|
+
._fixed_md\:f_1aemi_160:focus { position: fixed; }
|
|
161
|
+
._fixed_md\:a_1aemi_161:active { position: fixed; }
|
|
162
|
+
._fixed_md\:d_1aemi_162:disabled { position: fixed; }
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
@media (min-width: 1024px) {
|
|
166
|
+
._fixed_lg_1aemi_166 { position: fixed; }
|
|
167
|
+
._fixed_lg\:h_1aemi_167:hover { position: fixed; }
|
|
168
|
+
._fixed_lg\:f_1aemi_168:focus { position: fixed; }
|
|
169
|
+
._fixed_lg\:a_1aemi_169:active { position: fixed; }
|
|
170
|
+
._fixed_lg\:d_1aemi_170:disabled { position: fixed; }
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
@media (min-width: 1280px) {
|
|
174
|
+
._fixed_xl_1aemi_174 { position: fixed; }
|
|
175
|
+
._fixed_xl\:h_1aemi_175:hover { position: fixed; }
|
|
176
|
+
._fixed_xl\:f_1aemi_176:focus { position: fixed; }
|
|
177
|
+
._fixed_xl\:a_1aemi_177:active { position: fixed; }
|
|
178
|
+
._fixed_xl\:d_1aemi_178:disabled { position: fixed; }
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
@media (min-width: 1536px) {
|
|
182
|
+
._fixed_2xl_1aemi_182 { position: fixed; }
|
|
183
|
+
._fixed_2xl\:h_1aemi_183:hover { position: fixed; }
|
|
184
|
+
._fixed_2xl\:f_1aemi_184:focus { position: fixed; }
|
|
185
|
+
._fixed_2xl\:a_1aemi_185:active { position: fixed; }
|
|
186
|
+
._fixed_2xl\:d_1aemi_186:disabled { position: fixed; }
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
/* position: sticky */
|
|
190
|
+
._sticky_1aemi_190 { position: sticky; }
|
|
191
|
+
._sticky\:h_1aemi_191:hover { position: sticky; }
|
|
192
|
+
._sticky\:f_1aemi_192:focus { position: sticky; }
|
|
193
|
+
._sticky\:a_1aemi_193:active { position: sticky; }
|
|
194
|
+
._sticky\:d_1aemi_194:disabled { position: sticky; }
|
|
195
|
+
|
|
196
|
+
@media (min-width: 640px) {
|
|
197
|
+
._sticky_sm_1aemi_197 { position: sticky; }
|
|
198
|
+
._sticky_sm\:h_1aemi_198:hover { position: sticky; }
|
|
199
|
+
._sticky_sm\:f_1aemi_199:focus { position: sticky; }
|
|
200
|
+
._sticky_sm\:a_1aemi_200:active { position: sticky; }
|
|
201
|
+
._sticky_sm\:d_1aemi_201:disabled { position: sticky; }
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
@media (min-width: 768px) {
|
|
205
|
+
._sticky_md_1aemi_205 { position: sticky; }
|
|
206
|
+
._sticky_md\:h_1aemi_206:hover { position: sticky; }
|
|
207
|
+
._sticky_md\:f_1aemi_207:focus { position: sticky; }
|
|
208
|
+
._sticky_md\:a_1aemi_208:active { position: sticky; }
|
|
209
|
+
._sticky_md\:d_1aemi_209:disabled { position: sticky; }
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
@media (min-width: 1024px) {
|
|
213
|
+
._sticky_lg_1aemi_213 { position: sticky; }
|
|
214
|
+
._sticky_lg\:h_1aemi_214:hover { position: sticky; }
|
|
215
|
+
._sticky_lg\:f_1aemi_215:focus { position: sticky; }
|
|
216
|
+
._sticky_lg\:a_1aemi_216:active { position: sticky; }
|
|
217
|
+
._sticky_lg\:d_1aemi_217:disabled { position: sticky; }
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
@media (min-width: 1280px) {
|
|
221
|
+
._sticky_xl_1aemi_221 { position: sticky; }
|
|
222
|
+
._sticky_xl\:h_1aemi_222:hover { position: sticky; }
|
|
223
|
+
._sticky_xl\:f_1aemi_223:focus { position: sticky; }
|
|
224
|
+
._sticky_xl\:a_1aemi_224:active { position: sticky; }
|
|
225
|
+
._sticky_xl\:d_1aemi_225:disabled { position: sticky; }
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
@media (min-width: 1536px) {
|
|
229
|
+
._sticky_2xl_1aemi_229 { position: sticky; }
|
|
230
|
+
._sticky_2xl\:h_1aemi_230:hover { position: sticky; }
|
|
231
|
+
._sticky_2xl\:f_1aemi_231:focus { position: sticky; }
|
|
232
|
+
._sticky_2xl\:a_1aemi_232:active { position: sticky; }
|
|
233
|
+
._sticky_2xl\:d_1aemi_233:disabled { position: sticky; }
|
|
234
|
+
}
|