@causw/core 0.0.10 → 0.0.12
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/_virtual/rolldown_runtime.cjs +29 -0
- package/dist/assets/avatar/default.cjs +11 -0
- package/dist/assets/avatar/default.mjs +6 -0
- package/dist/assets/avatar/default.mjs.map +1 -0
- package/dist/components/Avatar/Avatar.cjs +46 -0
- package/dist/components/Avatar/Avatar.d.cts +25 -0
- package/dist/components/Avatar/Avatar.d.cts.map +1 -0
- package/dist/components/Avatar/Avatar.d.mts +26 -0
- package/dist/components/Avatar/Avatar.d.mts.map +1 -0
- package/dist/components/Avatar/Avatar.mjs +45 -0
- package/dist/components/Avatar/Avatar.mjs.map +1 -0
- package/dist/components/Avatar/Avatar.styles.cjs +22 -0
- package/dist/components/Avatar/Avatar.styles.d.cts +75 -0
- package/dist/components/Avatar/Avatar.styles.d.cts.map +1 -0
- package/dist/components/Avatar/Avatar.styles.d.mts +75 -0
- package/dist/components/Avatar/Avatar.styles.d.mts.map +1 -0
- package/dist/components/Avatar/Avatar.styles.mjs +22 -0
- package/dist/components/Avatar/Avatar.styles.mjs.map +1 -0
- package/dist/components/Avatar/index.d.mts +2 -0
- package/dist/components/Box/Box.cjs +24 -0
- package/dist/components/Box/Box.d.cts +22 -0
- package/dist/components/Box/Box.d.cts.map +1 -0
- package/dist/components/Box/Box.d.mts +23 -0
- package/dist/components/Box/Box.d.mts.map +1 -0
- package/dist/components/Box/Box.mjs +23 -0
- package/dist/components/Box/Box.mjs.map +1 -0
- package/dist/components/Box/Box.styles.cjs +48 -0
- package/dist/components/Box/Box.styles.d.cts +105 -0
- package/dist/components/Box/Box.styles.d.cts.map +1 -0
- package/dist/components/Box/Box.styles.d.mts +105 -0
- package/dist/components/Box/Box.styles.d.mts.map +1 -0
- package/dist/components/Box/Box.styles.mjs +48 -0
- package/dist/components/Box/Box.styles.mjs.map +1 -0
- package/dist/components/Box/index.d.mts +2 -0
- package/dist/components/Button/Button.cjs +23 -0
- package/dist/components/Button/Button.d.cts +19 -0
- package/dist/components/Button/Button.d.cts.map +1 -0
- package/dist/components/Button/Button.d.mts +20 -0
- package/dist/components/Button/Button.d.mts.map +1 -0
- package/dist/components/Button/Button.mjs +23 -0
- package/dist/components/Button/Button.mjs.map +1 -0
- package/dist/components/Button/Button.styles.cjs +35 -0
- package/dist/components/Button/Button.styles.d.cts +63 -0
- package/dist/components/Button/Button.styles.d.cts.map +1 -0
- package/dist/components/Button/Button.styles.d.mts +63 -0
- package/dist/components/Button/Button.styles.d.mts.map +1 -0
- package/dist/components/Button/Button.styles.mjs +35 -0
- package/dist/components/Button/Button.styles.mjs.map +1 -0
- package/dist/components/Button/index.d.mts +1 -0
- package/dist/components/CTAButton/CTAButton.cjs +22 -0
- package/dist/components/CTAButton/CTAButton.d.cts +18 -0
- package/dist/components/CTAButton/CTAButton.d.cts.map +1 -0
- package/dist/components/CTAButton/CTAButton.d.mts +19 -0
- package/dist/components/CTAButton/CTAButton.d.mts.map +1 -0
- package/dist/components/CTAButton/CTAButton.mjs +22 -0
- package/dist/components/CTAButton/CTAButton.mjs.map +1 -0
- package/dist/components/CTAButton/CTAButton.styles.cjs +32 -0
- package/dist/components/CTAButton/CTAButton.styles.d.cts +57 -0
- package/dist/components/CTAButton/CTAButton.styles.d.cts.map +1 -0
- package/dist/components/CTAButton/CTAButton.styles.d.mts +57 -0
- package/dist/components/CTAButton/CTAButton.styles.d.mts.map +1 -0
- package/dist/components/CTAButton/CTAButton.styles.mjs +32 -0
- package/dist/components/CTAButton/CTAButton.styles.mjs.map +1 -0
- package/dist/components/CTAButton/index.d.mts +1 -0
- package/dist/components/Checkbox/Checkbox.cjs +83 -0
- package/dist/components/Checkbox/Checkbox.d.cts +44 -0
- package/dist/components/Checkbox/Checkbox.d.cts.map +1 -0
- package/dist/components/Checkbox/Checkbox.d.mts +46 -0
- package/dist/components/Checkbox/Checkbox.d.mts.map +1 -0
- package/dist/components/Checkbox/Checkbox.mjs +82 -0
- package/dist/components/Checkbox/Checkbox.mjs.map +1 -0
- package/dist/components/Checkbox/Checkbox.styles.cjs +31 -0
- package/dist/components/Checkbox/Checkbox.styles.d.cts +75 -0
- package/dist/components/Checkbox/Checkbox.styles.d.cts.map +1 -0
- package/dist/components/Checkbox/Checkbox.styles.d.mts +75 -0
- package/dist/components/Checkbox/Checkbox.styles.d.mts.map +1 -0
- package/dist/components/Checkbox/Checkbox.styles.mjs +31 -0
- package/dist/components/Checkbox/Checkbox.styles.mjs.map +1 -0
- package/dist/components/Checkbox/index.d.mts +1 -0
- package/dist/components/Chip/Chip.cjs +29 -0
- package/dist/components/Chip/Chip.d.cts +22 -0
- package/dist/components/Chip/Chip.d.cts.map +1 -0
- package/dist/components/Chip/Chip.d.mts +23 -0
- package/dist/components/Chip/Chip.d.mts.map +1 -0
- package/dist/components/Chip/Chip.mjs +28 -0
- package/dist/components/Chip/Chip.mjs.map +1 -0
- package/dist/components/Chip/Chip.styles.cjs +30 -0
- package/dist/components/Chip/Chip.styles.d.cts +51 -0
- package/dist/components/Chip/Chip.styles.d.cts.map +1 -0
- package/dist/components/Chip/Chip.styles.d.mts +51 -0
- package/dist/components/Chip/Chip.styles.d.mts.map +1 -0
- package/dist/components/Chip/Chip.styles.mjs +30 -0
- package/dist/components/Chip/Chip.styles.mjs.map +1 -0
- package/dist/components/Chip/index.d.mts +2 -0
- package/dist/components/Dialog/Dialog.cjs +59 -0
- package/dist/components/Dialog/Dialog.d.cts +57 -0
- package/dist/components/Dialog/Dialog.d.cts.map +1 -0
- package/dist/components/Dialog/Dialog.d.mts +58 -0
- package/dist/components/Dialog/Dialog.d.mts.map +1 -0
- package/dist/components/Dialog/Dialog.mjs +58 -0
- package/dist/components/Dialog/Dialog.mjs.map +1 -0
- package/dist/components/Dialog/Dialog.styles.cjs +35 -0
- package/dist/components/Dialog/Dialog.styles.d.cts +46 -0
- package/dist/components/Dialog/Dialog.styles.d.cts.map +1 -0
- package/dist/components/Dialog/Dialog.styles.d.mts +46 -0
- package/dist/components/Dialog/Dialog.styles.d.mts.map +1 -0
- package/dist/components/Dialog/Dialog.styles.mjs +33 -0
- package/dist/components/Dialog/Dialog.styles.mjs.map +1 -0
- package/dist/components/Dialog/index.d.mts +2 -0
- package/dist/components/Dropdown/Dropdown.cjs +39 -0
- package/dist/components/Dropdown/Dropdown.d.cts +36 -0
- package/dist/components/Dropdown/Dropdown.d.cts.map +1 -0
- package/dist/components/Dropdown/Dropdown.d.mts +36 -0
- package/dist/components/Dropdown/Dropdown.d.mts.map +1 -0
- package/dist/components/Dropdown/Dropdown.mjs +37 -0
- package/dist/components/Dropdown/Dropdown.mjs.map +1 -0
- package/dist/components/Dropdown/Dropdown.styles.cjs +19 -0
- package/dist/components/Dropdown/Dropdown.styles.d.cts +54 -0
- package/dist/components/Dropdown/Dropdown.styles.d.cts.map +1 -0
- package/dist/components/Dropdown/Dropdown.styles.d.mts +54 -0
- package/dist/components/Dropdown/Dropdown.styles.d.mts.map +1 -0
- package/dist/components/Dropdown/Dropdown.styles.mjs +19 -0
- package/dist/components/Dropdown/Dropdown.styles.mjs.map +1 -0
- package/dist/components/Dropdown/index.d.mts +2 -0
- package/dist/components/Field/Field.cjs +80 -0
- package/dist/components/Field/Field.d.cts +59 -0
- package/dist/components/Field/Field.d.cts.map +1 -0
- package/dist/components/Field/Field.d.mts +60 -0
- package/dist/components/Field/Field.d.mts.map +1 -0
- package/dist/components/Field/Field.mjs +79 -0
- package/dist/components/Field/Field.mjs.map +1 -0
- package/dist/components/Field/Field.styles.cjs +13 -0
- package/dist/components/Field/Field.styles.mjs +13 -0
- package/dist/components/Field/Field.styles.mjs.map +1 -0
- package/dist/components/Field/index.d.mts +1 -0
- package/dist/components/Flex/Flex.cjs +25 -0
- package/dist/components/Flex/Flex.d.cts +24 -0
- package/dist/components/Flex/Flex.d.cts.map +1 -0
- package/dist/components/Flex/Flex.d.mts +25 -0
- package/dist/components/Flex/Flex.d.mts.map +1 -0
- package/dist/components/Flex/Flex.mjs +24 -0
- package/dist/components/Flex/Flex.mjs.map +1 -0
- package/dist/components/Flex/Flex.styles.cjs +50 -0
- package/dist/components/Flex/Flex.styles.d.cts +16 -0
- package/dist/components/Flex/Flex.styles.d.cts.map +1 -0
- package/dist/components/Flex/Flex.styles.d.mts +16 -0
- package/dist/components/Flex/Flex.styles.d.mts.map +1 -0
- package/dist/components/Flex/Flex.styles.mjs +51 -0
- package/dist/components/Flex/Flex.styles.mjs.map +1 -0
- package/dist/components/Flex/index.d.mts +2 -0
- package/dist/components/Float/Float.cjs +32 -0
- package/dist/components/Float/Float.d.cts +25 -0
- package/dist/components/Float/Float.d.cts.map +1 -0
- package/dist/components/Float/Float.d.mts +26 -0
- package/dist/components/Float/Float.d.mts.map +1 -0
- package/dist/components/Float/Float.mjs +31 -0
- package/dist/components/Float/Float.mjs.map +1 -0
- package/dist/components/Float/Float.styles.cjs +39 -0
- package/dist/components/Float/Float.styles.d.cts +58 -0
- package/dist/components/Float/Float.styles.d.cts.map +1 -0
- package/dist/components/Float/Float.styles.d.mts +58 -0
- package/dist/components/Float/Float.styles.d.mts.map +1 -0
- package/dist/components/Float/Float.styles.mjs +38 -0
- package/dist/components/Float/Float.styles.mjs.map +1 -0
- package/dist/components/Float/index.d.mts +1 -0
- package/dist/components/FloatingActionButton/FloatingActionButton.cjs +18 -0
- package/dist/components/FloatingActionButton/FloatingActionButton.d.cts +16 -0
- package/dist/components/FloatingActionButton/FloatingActionButton.d.cts.map +1 -0
- package/dist/components/FloatingActionButton/FloatingActionButton.d.mts +17 -0
- package/dist/components/FloatingActionButton/FloatingActionButton.d.mts.map +1 -0
- package/dist/components/FloatingActionButton/FloatingActionButton.mjs +18 -0
- package/dist/components/FloatingActionButton/FloatingActionButton.mjs.map +1 -0
- package/dist/components/FloatingActionButton/FloatingActionButton.styles.cjs +15 -0
- package/dist/components/FloatingActionButton/FloatingActionButton.styles.d.cts +24 -0
- package/dist/components/FloatingActionButton/FloatingActionButton.styles.d.cts.map +1 -0
- package/dist/components/FloatingActionButton/FloatingActionButton.styles.d.mts +24 -0
- package/dist/components/FloatingActionButton/FloatingActionButton.styles.d.mts.map +1 -0
- package/dist/components/FloatingActionButton/FloatingActionButton.styles.mjs +15 -0
- package/dist/components/FloatingActionButton/FloatingActionButton.styles.mjs.map +1 -0
- package/dist/components/FloatingActionButton/index.d.mts +1 -0
- package/dist/components/Grid/Grid.cjs +24 -0
- package/dist/components/Grid/Grid.d.cts +22 -0
- package/dist/components/Grid/Grid.d.cts.map +1 -0
- package/dist/components/Grid/Grid.d.mts +23 -0
- package/dist/components/Grid/Grid.d.mts.map +1 -0
- package/dist/components/Grid/Grid.mjs +23 -0
- package/dist/components/Grid/Grid.mjs.map +1 -0
- package/dist/components/Grid/Grid.styles.cjs +56 -0
- package/dist/components/Grid/Grid.styles.d.cts +126 -0
- package/dist/components/Grid/Grid.styles.d.cts.map +1 -0
- package/dist/components/Grid/Grid.styles.d.mts +126 -0
- package/dist/components/Grid/Grid.styles.d.mts.map +1 -0
- package/dist/components/Grid/Grid.styles.mjs +56 -0
- package/dist/components/Grid/Grid.styles.mjs.map +1 -0
- package/dist/components/Grid/index.d.mts +1 -0
- package/dist/components/HStack/HStack.cjs +17 -0
- package/dist/components/HStack/HStack.d.cts +15 -0
- package/dist/components/HStack/HStack.d.cts.map +1 -0
- package/dist/components/HStack/HStack.d.mts +16 -0
- package/dist/components/HStack/HStack.d.mts.map +1 -0
- package/dist/components/HStack/HStack.mjs +16 -0
- package/dist/components/HStack/HStack.mjs.map +1 -0
- package/dist/components/HStack/index.d.mts +1 -0
- package/dist/components/Modal/Modal.cjs +81 -0
- package/dist/components/Modal/Modal.d.cts +64 -0
- package/dist/components/Modal/Modal.d.cts.map +1 -0
- package/dist/components/Modal/Modal.d.mts +65 -0
- package/dist/components/Modal/Modal.d.mts.map +1 -0
- package/dist/components/Modal/Modal.mjs +80 -0
- package/dist/components/Modal/Modal.mjs.map +1 -0
- package/dist/components/Modal/Modal.styles.cjs +49 -0
- package/dist/components/Modal/Modal.styles.d.cts +108 -0
- package/dist/components/Modal/Modal.styles.d.cts.map +1 -0
- package/dist/components/Modal/Modal.styles.d.mts +108 -0
- package/dist/components/Modal/Modal.styles.d.mts.map +1 -0
- package/dist/components/Modal/Modal.styles.mjs +49 -0
- package/dist/components/Modal/Modal.styles.mjs.map +1 -0
- package/dist/components/Modal/index.d.mts +2 -0
- package/dist/components/Primitive/Primitive.cjs +35 -0
- package/dist/components/Primitive/Primitive.d.cts +77 -0
- package/dist/components/Primitive/Primitive.d.cts.map +1 -0
- package/dist/components/Primitive/Primitive.d.mts +77 -0
- package/dist/components/Primitive/Primitive.d.mts.map +1 -0
- package/dist/components/Primitive/Primitive.mjs +34 -0
- package/dist/components/Primitive/Primitive.mjs.map +1 -0
- package/dist/components/Primitive/index.d.mts +1 -0
- package/dist/components/Radio/Radio.cjs +97 -0
- package/dist/components/Radio/Radio.d.cts +48 -0
- package/dist/components/Radio/Radio.d.cts.map +1 -0
- package/dist/components/Radio/Radio.d.mts +49 -0
- package/dist/components/Radio/Radio.d.mts.map +1 -0
- package/dist/components/Radio/Radio.mjs +94 -0
- package/dist/components/Radio/Radio.mjs.map +1 -0
- package/dist/components/Radio/Radio.styles.cjs +32 -0
- package/dist/components/Radio/Radio.styles.mjs +32 -0
- package/dist/components/Radio/Radio.styles.mjs.map +1 -0
- package/dist/components/Radio/index.d.mts +1 -0
- package/dist/components/RatioChart/RatioChart.cjs +182 -0
- package/dist/components/RatioChart/RatioChart.d.cts +66 -0
- package/dist/components/RatioChart/RatioChart.d.cts.map +1 -0
- package/dist/components/RatioChart/RatioChart.d.mts +66 -0
- package/dist/components/RatioChart/RatioChart.d.mts.map +1 -0
- package/dist/components/RatioChart/RatioChart.mjs +181 -0
- package/dist/components/RatioChart/RatioChart.mjs.map +1 -0
- package/dist/components/RatioChart/RatioChart.styles.cjs +42 -0
- package/dist/components/RatioChart/RatioChart.styles.mjs +42 -0
- package/dist/components/RatioChart/RatioChart.styles.mjs.map +1 -0
- package/dist/components/RatioChart/RatioChartEditor.cjs +121 -0
- package/dist/components/RatioChart/RatioChartEditor.d.cts +44 -0
- package/dist/components/RatioChart/RatioChartEditor.d.cts.map +1 -0
- package/dist/components/RatioChart/RatioChartEditor.d.mts +44 -0
- package/dist/components/RatioChart/RatioChartEditor.d.mts.map +1 -0
- package/dist/components/RatioChart/RatioChartEditor.mjs +120 -0
- package/dist/components/RatioChart/RatioChartEditor.mjs.map +1 -0
- package/dist/components/RatioChart/RatioChartEditor.styles.cjs +23 -0
- package/dist/components/RatioChart/RatioChartEditor.styles.mjs +23 -0
- package/dist/components/RatioChart/RatioChartEditor.styles.mjs.map +1 -0
- package/dist/components/RatioChart/index.d.mts +2 -0
- package/dist/components/Select/Select.cjs +84 -0
- package/dist/components/Select/Select.d.cts +60 -0
- package/dist/components/Select/Select.d.cts.map +1 -0
- package/dist/components/Select/Select.d.mts +60 -0
- package/dist/components/Select/Select.d.mts.map +1 -0
- package/dist/components/Select/Select.mjs +82 -0
- package/dist/components/Select/Select.mjs.map +1 -0
- package/dist/components/Select/Select.styles.cjs +44 -0
- package/dist/components/Select/Select.styles.d.cts +72 -0
- package/dist/components/Select/Select.styles.d.cts.map +1 -0
- package/dist/components/Select/Select.styles.d.mts +72 -0
- package/dist/components/Select/Select.styles.d.mts.map +1 -0
- package/dist/components/Select/Select.styles.mjs +44 -0
- package/dist/components/Select/Select.styles.mjs.map +1 -0
- package/dist/components/Select/index.d.mts +2 -0
- package/dist/components/Separator/Separator.cjs +21 -0
- package/dist/components/Separator/Separator.d.cts +18 -0
- package/dist/components/Separator/Separator.d.cts.map +1 -0
- package/dist/components/Separator/Separator.d.mts +19 -0
- package/dist/components/Separator/Separator.d.mts.map +1 -0
- package/dist/components/Separator/Separator.mjs +20 -0
- package/dist/components/Separator/Separator.mjs.map +1 -0
- package/dist/components/Separator/Separator.styles.cjs +15 -0
- package/dist/components/Separator/Separator.styles.d.cts +24 -0
- package/dist/components/Separator/Separator.styles.d.cts.map +1 -0
- package/dist/components/Separator/Separator.styles.d.mts +24 -0
- package/dist/components/Separator/Separator.styles.d.mts.map +1 -0
- package/dist/components/Separator/Separator.styles.mjs +15 -0
- package/dist/components/Separator/Separator.styles.mjs.map +1 -0
- package/dist/components/Separator/index.d.mts +2 -0
- package/dist/components/Spacer/Spacer.cjs +20 -0
- package/dist/components/Spacer/Spacer.d.cts +18 -0
- package/dist/components/Spacer/Spacer.d.cts.map +1 -0
- package/dist/components/Spacer/Spacer.d.mts +19 -0
- package/dist/components/Spacer/Spacer.d.mts.map +1 -0
- package/dist/components/Spacer/Spacer.mjs +19 -0
- package/dist/components/Spacer/Spacer.mjs.map +1 -0
- package/dist/components/Spacer/Spacer.styles.cjs +24 -0
- package/dist/components/Spacer/Spacer.styles.d.cts +51 -0
- package/dist/components/Spacer/Spacer.styles.d.cts.map +1 -0
- package/dist/components/Spacer/Spacer.styles.d.mts +51 -0
- package/dist/components/Spacer/Spacer.styles.d.mts.map +1 -0
- package/dist/components/Spacer/Spacer.styles.mjs +24 -0
- package/dist/components/Spacer/Spacer.styles.mjs.map +1 -0
- package/dist/components/Spacer/index.d.mts +2 -0
- package/dist/components/Stack/Stack.cjs +28 -0
- package/dist/components/Stack/Stack.d.cts +26 -0
- package/dist/components/Stack/Stack.d.cts.map +1 -0
- package/dist/components/Stack/Stack.d.mts +27 -0
- package/dist/components/Stack/Stack.d.mts.map +1 -0
- package/dist/components/Stack/Stack.mjs +27 -0
- package/dist/components/Stack/Stack.mjs.map +1 -0
- package/dist/components/Stack/Stack.styles.cjs +42 -0
- package/dist/components/Stack/Stack.styles.d.cts +84 -0
- package/dist/components/Stack/Stack.styles.d.cts.map +1 -0
- package/dist/components/Stack/Stack.styles.d.mts +84 -0
- package/dist/components/Stack/Stack.styles.d.mts.map +1 -0
- package/dist/components/Stack/Stack.styles.mjs +42 -0
- package/dist/components/Stack/Stack.styles.mjs.map +1 -0
- package/dist/components/Stack/index.d.mts +2 -0
- package/dist/components/Tab/Tab.cjs +103 -0
- package/dist/components/Tab/Tab.d.cts +84 -0
- package/dist/components/Tab/Tab.d.cts.map +1 -0
- package/dist/components/Tab/Tab.d.mts +85 -0
- package/dist/components/Tab/Tab.d.mts.map +1 -0
- package/dist/components/Tab/Tab.mjs +102 -0
- package/dist/components/Tab/Tab.mjs.map +1 -0
- package/dist/components/Tab/Tab.styles.cjs +35 -0
- package/dist/components/Tab/Tab.styles.d.cts +51 -0
- package/dist/components/Tab/Tab.styles.d.cts.map +1 -0
- package/dist/components/Tab/Tab.styles.d.mts +51 -0
- package/dist/components/Tab/Tab.styles.d.mts.map +1 -0
- package/dist/components/Tab/Tab.styles.mjs +35 -0
- package/dist/components/Tab/Tab.styles.mjs.map +1 -0
- package/dist/components/Tab/index.d.mts +2 -0
- package/dist/components/Text/Text.cjs +20 -0
- package/dist/components/Text/Text.d.cts +24 -0
- package/dist/components/Text/Text.d.cts.map +1 -0
- package/dist/components/Text/Text.d.mts +25 -0
- package/dist/components/Text/Text.d.mts.map +1 -0
- package/dist/components/Text/Text.mjs +20 -0
- package/dist/components/Text/Text.mjs.map +1 -0
- package/dist/components/Text/Text.styles.cjs +58 -0
- package/dist/components/Text/Text.styles.d.cts +150 -0
- package/dist/components/Text/Text.styles.d.cts.map +1 -0
- package/dist/components/Text/Text.styles.d.mts +150 -0
- package/dist/components/Text/Text.styles.d.mts.map +1 -0
- package/dist/components/Text/Text.styles.mjs +58 -0
- package/dist/components/Text/Text.styles.mjs.map +1 -0
- package/dist/components/Text/index.d.mts +2 -0
- package/dist/components/TextArea/TextArea.cjs +52 -0
- package/dist/components/TextArea/TextArea.d.cts +42 -0
- package/dist/components/TextArea/TextArea.d.cts.map +1 -0
- package/dist/components/TextArea/TextArea.d.mts +43 -0
- package/dist/components/TextArea/TextArea.d.mts.map +1 -0
- package/dist/components/TextArea/TextArea.mjs +51 -0
- package/dist/components/TextArea/TextArea.mjs.map +1 -0
- package/dist/components/TextArea/TextArea.styles.cjs +33 -0
- package/dist/components/TextArea/TextArea.styles.d.cts +84 -0
- package/dist/components/TextArea/TextArea.styles.d.cts.map +1 -0
- package/dist/components/TextArea/TextArea.styles.d.mts +84 -0
- package/dist/components/TextArea/TextArea.styles.d.mts.map +1 -0
- package/dist/components/TextArea/TextArea.styles.mjs +33 -0
- package/dist/components/TextArea/TextArea.styles.mjs.map +1 -0
- package/dist/components/TextArea/index.d.mts +1 -0
- package/dist/components/TextInput/TextInput.cjs +48 -0
- package/dist/components/TextInput/TextInput.d.cts +32 -0
- package/dist/components/TextInput/TextInput.d.cts.map +1 -0
- package/dist/components/TextInput/TextInput.d.mts +33 -0
- package/dist/components/TextInput/TextInput.d.mts.map +1 -0
- package/dist/components/TextInput/TextInput.mjs +47 -0
- package/dist/components/TextInput/TextInput.mjs.map +1 -0
- package/dist/components/TextInput/TextInput.styles.cjs +43 -0
- package/dist/components/TextInput/TextInput.styles.d.cts +81 -0
- package/dist/components/TextInput/TextInput.styles.d.cts.map +1 -0
- package/dist/components/TextInput/TextInput.styles.d.mts +81 -0
- package/dist/components/TextInput/TextInput.styles.d.mts.map +1 -0
- package/dist/components/TextInput/TextInput.styles.mjs +43 -0
- package/dist/components/TextInput/TextInput.styles.mjs.map +1 -0
- package/dist/components/TextInput/index.d.mts +2 -0
- package/dist/components/Toast/Toast.cjs +42 -0
- package/dist/components/Toast/Toast.d.cts +27 -0
- package/dist/components/Toast/Toast.d.cts.map +1 -0
- package/dist/components/Toast/Toast.d.mts +27 -0
- package/dist/components/Toast/Toast.d.mts.map +1 -0
- package/dist/components/Toast/Toast.mjs +39 -0
- package/dist/components/Toast/Toast.mjs.map +1 -0
- package/dist/components/Toast/Toast.styles.cjs +20 -0
- package/dist/components/Toast/Toast.styles.d.cts +36 -0
- package/dist/components/Toast/Toast.styles.d.cts.map +1 -0
- package/dist/components/Toast/Toast.styles.d.mts +36 -0
- package/dist/components/Toast/Toast.styles.d.mts.map +1 -0
- package/dist/components/Toast/Toast.styles.mjs +20 -0
- package/dist/components/Toast/Toast.styles.mjs.map +1 -0
- package/dist/components/Toast/index.d.mts +2 -0
- package/dist/components/Toggle/Toggle.cjs +71 -0
- package/dist/components/Toggle/Toggle.d.cts +44 -0
- package/dist/components/Toggle/Toggle.d.cts.map +1 -0
- package/dist/components/Toggle/Toggle.d.mts +46 -0
- package/dist/components/Toggle/Toggle.d.mts.map +1 -0
- package/dist/components/Toggle/Toggle.mjs +70 -0
- package/dist/components/Toggle/Toggle.mjs.map +1 -0
- package/dist/components/Toggle/Toggle.styles.cjs +31 -0
- package/dist/components/Toggle/Toggle.styles.d.cts +75 -0
- package/dist/components/Toggle/Toggle.styles.d.cts.map +1 -0
- package/dist/components/Toggle/Toggle.styles.d.mts +75 -0
- package/dist/components/Toggle/Toggle.styles.d.mts.map +1 -0
- package/dist/components/Toggle/Toggle.styles.mjs +31 -0
- package/dist/components/Toggle/Toggle.styles.mjs.map +1 -0
- package/dist/components/Toggle/index.d.mts +1 -0
- package/dist/components/VStack/VStack.cjs +17 -0
- package/dist/components/VStack/VStack.d.cts +15 -0
- package/dist/components/VStack/VStack.d.cts.map +1 -0
- package/dist/components/VStack/VStack.d.mts +16 -0
- package/dist/components/VStack/VStack.d.mts.map +1 -0
- package/dist/components/VStack/VStack.mjs +16 -0
- package/dist/components/VStack/VStack.mjs.map +1 -0
- package/dist/components/VStack/index.d.mts +1 -0
- package/dist/components/index.d.mts +74 -0
- package/dist/hooks/field/useFieldContext.cjs +18 -0
- package/dist/hooks/field/useFieldContext.mjs +17 -0
- package/dist/hooks/field/useFieldContext.mjs.map +1 -0
- package/dist/hooks/ratioChart/useRatioChartContext.cjs +14 -0
- package/dist/hooks/ratioChart/useRatioChartContext.mjs +13 -0
- package/dist/hooks/ratioChart/useRatioChartContext.mjs.map +1 -0
- package/dist/index.cjs +73 -0
- package/dist/index.d.cts +50 -0
- package/dist/index.d.mts +52 -349
- package/dist/index.mjs +36 -1220
- package/dist/utils/converter/converter.cjs +9 -0
- package/dist/utils/converter/converter.d.cts +5 -0
- package/dist/utils/converter/converter.d.cts.map +1 -0
- package/dist/utils/converter/converter.d.mts +5 -0
- package/dist/utils/converter/converter.d.mts.map +1 -0
- package/dist/utils/converter/converter.mjs +9 -0
- package/dist/utils/converter/converter.mjs.map +1 -0
- package/dist/utils/index.d.mts +6 -0
- package/dist/utils/mergeStyles/index.d.mts +1 -0
- package/dist/utils/mergeStyles/mergeStyles.cjs +18 -0
- package/dist/utils/mergeStyles/mergeStyles.d.cts +14 -0
- package/dist/utils/mergeStyles/mergeStyles.d.cts.map +1 -0
- package/dist/utils/mergeStyles/mergeStyles.d.mts +14 -0
- package/dist/utils/mergeStyles/mergeStyles.d.mts.map +1 -0
- package/dist/utils/mergeStyles/mergeStyles.mjs +18 -0
- package/dist/utils/mergeStyles/mergeStyles.mjs.map +1 -0
- package/dist/utils/polymorphic/index.d.mts +1 -0
- package/dist/utils/polymorphic/polymorphic.d.cts +24 -0
- package/dist/utils/polymorphic/polymorphic.d.cts.map +1 -0
- package/dist/utils/polymorphic/polymorphic.d.mts +24 -0
- package/dist/utils/polymorphic/polymorphic.d.mts.map +1 -0
- package/dist/utils/splitter/splitter.cjs +12 -0
- package/dist/utils/splitter/splitter.d.cts +5 -0
- package/dist/utils/splitter/splitter.d.cts.map +1 -0
- package/dist/utils/splitter/splitter.d.mts +5 -0
- package/dist/utils/splitter/splitter.d.mts.map +1 -0
- package/dist/utils/splitter/splitter.mjs +12 -0
- package/dist/utils/splitter/splitter.mjs.map +1 -0
- package/package.json +21 -11
- package/src/styles/global.css +121 -70
- package/dist/index.d.ts +0 -349
- package/dist/index.js +0 -1246
package/dist/index.mjs
CHANGED
|
@@ -1,1220 +1,36 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
};
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
};
|
|
38
|
-
var typographyStyles = {
|
|
39
|
-
// Caption variants
|
|
40
|
-
"caption-sm": "typo-caption-sm",
|
|
41
|
-
"caption-sm-point": "typo-caption-sm-point",
|
|
42
|
-
"caption-md": "typo-caption-md",
|
|
43
|
-
"caption-md-point": "typo-caption-md-point",
|
|
44
|
-
// Body2 variants
|
|
45
|
-
"body2-sm": "typo-body2-sm",
|
|
46
|
-
"body2-sm-point": "typo-body2-sm-point",
|
|
47
|
-
"body2-md": "typo-body2-md",
|
|
48
|
-
"body2-md-point": "typo-body2-md-point",
|
|
49
|
-
// Body variants
|
|
50
|
-
"body-sm": "typo-body-sm",
|
|
51
|
-
"body-sm-point": "typo-body-sm-point",
|
|
52
|
-
"body-md": "typo-body-md",
|
|
53
|
-
"body-md-point": "typo-body-md-point",
|
|
54
|
-
// Subtitle variants
|
|
55
|
-
"subtitle-sm": "typo-subtitle-sm",
|
|
56
|
-
"subtitle-sm-point": "typo-subtitle-sm-point",
|
|
57
|
-
"subtitle-md": "typo-subtitle-md",
|
|
58
|
-
"subtitle-md-point": "typo-subtitle-md-point",
|
|
59
|
-
// Title variants (always bold)
|
|
60
|
-
"title-sm": "typo-title-sm",
|
|
61
|
-
"title-md": "typo-title-md",
|
|
62
|
-
// Head variants (always bold)
|
|
63
|
-
"head-sm": "typo-head-sm",
|
|
64
|
-
"head-md": "typo-head-md",
|
|
65
|
-
// Fixed size variants
|
|
66
|
-
"fixed-12": "typo-fixed-12",
|
|
67
|
-
"fixed-14": "typo-fixed-14",
|
|
68
|
-
"fixed-15": "typo-fixed-15",
|
|
69
|
-
"fixed-16": "typo-fixed-16",
|
|
70
|
-
"fixed-18": "typo-fixed-18",
|
|
71
|
-
"fixed-20": "typo-fixed-20",
|
|
72
|
-
"fixed-24": "typo-fixed-24"
|
|
73
|
-
};
|
|
74
|
-
function textStyles({
|
|
75
|
-
typography,
|
|
76
|
-
textColor,
|
|
77
|
-
align
|
|
78
|
-
}) {
|
|
79
|
-
const baseStyles4 = "font-sans";
|
|
80
|
-
const colorClass = colorClasses[textColor];
|
|
81
|
-
const typographyClass = typographyStyles[typography];
|
|
82
|
-
const alignClass = align ? alignClasses[align] : "";
|
|
83
|
-
return mergeStyles([baseStyles4, colorClass, typographyClass, alignClass]);
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
// src/components/Text/Text.tsx
|
|
87
|
-
var Text = ({
|
|
88
|
-
typography = "body-sm",
|
|
89
|
-
textColor = "gray-700",
|
|
90
|
-
align,
|
|
91
|
-
as,
|
|
92
|
-
children,
|
|
93
|
-
className = "",
|
|
94
|
-
...props
|
|
95
|
-
}) => {
|
|
96
|
-
const Component = as || "span";
|
|
97
|
-
const classes = textStyles({ typography, textColor, align });
|
|
98
|
-
return React4.createElement(
|
|
99
|
-
Component,
|
|
100
|
-
{
|
|
101
|
-
className: mergeStyles(classes, className),
|
|
102
|
-
...props
|
|
103
|
-
},
|
|
104
|
-
children
|
|
105
|
-
);
|
|
106
|
-
};
|
|
107
|
-
Text.displayName = "Text";
|
|
108
|
-
var FieldContext = createContext(null);
|
|
109
|
-
var useFieldContext = () => {
|
|
110
|
-
const context = useContext(FieldContext);
|
|
111
|
-
if (!context) {
|
|
112
|
-
return null;
|
|
113
|
-
}
|
|
114
|
-
return context;
|
|
115
|
-
};
|
|
116
|
-
var FieldRoot = ({
|
|
117
|
-
children,
|
|
118
|
-
disabled = false,
|
|
119
|
-
error = false,
|
|
120
|
-
className,
|
|
121
|
-
...props
|
|
122
|
-
}) => {
|
|
123
|
-
const id = useId();
|
|
124
|
-
return /* @__PURE__ */ jsx(FieldContext.Provider, { value: { id, disabled, error }, children: /* @__PURE__ */ jsx("div", { className: mergeStyles("flex flex-col gap-2", className), ...props, children }) });
|
|
125
|
-
};
|
|
126
|
-
var FieldLabel = ({
|
|
127
|
-
children,
|
|
128
|
-
className,
|
|
129
|
-
typography = "body-sm-point",
|
|
130
|
-
textColor = "gray-700",
|
|
131
|
-
...labelProps
|
|
132
|
-
}) => {
|
|
133
|
-
const fieldContext = useFieldContext();
|
|
134
|
-
const id = fieldContext?.id;
|
|
135
|
-
return /* @__PURE__ */ jsx(
|
|
136
|
-
Text,
|
|
137
|
-
{
|
|
138
|
-
typography,
|
|
139
|
-
textColor,
|
|
140
|
-
htmlFor: id,
|
|
141
|
-
className: mergeStyles("px-1", className),
|
|
142
|
-
...labelProps,
|
|
143
|
-
children
|
|
144
|
-
}
|
|
145
|
-
);
|
|
146
|
-
};
|
|
147
|
-
var FieldDescription = ({
|
|
148
|
-
children,
|
|
149
|
-
className,
|
|
150
|
-
...props
|
|
151
|
-
}) => {
|
|
152
|
-
const fieldContext = useFieldContext();
|
|
153
|
-
const id = fieldContext?.id;
|
|
154
|
-
const error = fieldContext?.error;
|
|
155
|
-
if (error) return null;
|
|
156
|
-
return /* @__PURE__ */ jsx(
|
|
157
|
-
Text,
|
|
158
|
-
{
|
|
159
|
-
typography: "body2-sm",
|
|
160
|
-
textColor: "gray-400",
|
|
161
|
-
id: id ? `${id}-description` : void 0,
|
|
162
|
-
className,
|
|
163
|
-
...props,
|
|
164
|
-
children
|
|
165
|
-
}
|
|
166
|
-
);
|
|
167
|
-
};
|
|
168
|
-
var FieldErrorDescription = ({
|
|
169
|
-
children,
|
|
170
|
-
className,
|
|
171
|
-
...props
|
|
172
|
-
}) => {
|
|
173
|
-
const fieldContext = useFieldContext();
|
|
174
|
-
const id = fieldContext?.id;
|
|
175
|
-
const error = fieldContext?.error;
|
|
176
|
-
if (!error) return null;
|
|
177
|
-
return /* @__PURE__ */ jsx(
|
|
178
|
-
Text,
|
|
179
|
-
{
|
|
180
|
-
typography: "body2-sm",
|
|
181
|
-
textColor: "red-400",
|
|
182
|
-
id: id ? `${id}-error` : void 0,
|
|
183
|
-
className,
|
|
184
|
-
...props,
|
|
185
|
-
children
|
|
186
|
-
}
|
|
187
|
-
);
|
|
188
|
-
};
|
|
189
|
-
FieldRoot.displayName = "Field";
|
|
190
|
-
FieldLabel.displayName = "Field.Label";
|
|
191
|
-
FieldDescription.displayName = "Field.Description";
|
|
192
|
-
FieldErrorDescription.displayName = "Field.ErrorDescription";
|
|
193
|
-
var Field = Object.assign(FieldRoot, {
|
|
194
|
-
Label: FieldLabel,
|
|
195
|
-
Description: FieldDescription,
|
|
196
|
-
ErrorDescription: FieldErrorDescription
|
|
197
|
-
});
|
|
198
|
-
var TextInput = ({
|
|
199
|
-
id: idProp,
|
|
200
|
-
disabled: disabledProp,
|
|
201
|
-
error: errorProp,
|
|
202
|
-
className,
|
|
203
|
-
leftIcon,
|
|
204
|
-
rightIcon,
|
|
205
|
-
variant = "default",
|
|
206
|
-
typography = "body2-sm",
|
|
207
|
-
textColor = "gray-700",
|
|
208
|
-
...props
|
|
209
|
-
}) => {
|
|
210
|
-
const field = useFieldContext();
|
|
211
|
-
const id = idProp ?? field?.id;
|
|
212
|
-
const disabled = disabledProp ?? field?.disabled ?? false;
|
|
213
|
-
const error = errorProp ?? field?.error ?? false;
|
|
214
|
-
const classes = textStyles({ typography, textColor });
|
|
215
|
-
const inputStyles = mergeStyles(
|
|
216
|
-
"w-full bg-transparent outline-none",
|
|
217
|
-
"placeholder:text-gray-400",
|
|
218
|
-
"caret-gray-600"
|
|
219
|
-
);
|
|
220
|
-
const variantStyles = {
|
|
221
|
-
default: mergeStyles(
|
|
222
|
-
"rounded-md p-4",
|
|
223
|
-
"bg-white",
|
|
224
|
-
"focus-within:ring-2 focus-within:ring-gray-600"
|
|
225
|
-
),
|
|
226
|
-
underline: mergeStyles(
|
|
227
|
-
"py-2 px-0",
|
|
228
|
-
"border-b border-gray-400",
|
|
229
|
-
"bg-transparent",
|
|
230
|
-
"focus-within:border-gray-600"
|
|
231
|
-
)
|
|
232
|
-
};
|
|
233
|
-
const wrapperStyles = mergeStyles(
|
|
234
|
-
"flex items-center gap-2 self-stretch",
|
|
235
|
-
variantStyles[variant],
|
|
236
|
-
disabled && "cursor-not-allowed opacity-50",
|
|
237
|
-
error && variant === "default" && "ring-2 ring-red-400 focus-within:ring-red-400",
|
|
238
|
-
error && variant === "underline" && "border-red-400 focus-within:border-red-400",
|
|
239
|
-
className
|
|
240
|
-
);
|
|
241
|
-
return /* @__PURE__ */ jsxs("div", { className: wrapperStyles, children: [
|
|
242
|
-
leftIcon && /* @__PURE__ */ jsx("span", { className: "flex-shrink-0 text-gray-400", children: leftIcon }),
|
|
243
|
-
/* @__PURE__ */ jsx(
|
|
244
|
-
"input",
|
|
245
|
-
{
|
|
246
|
-
id,
|
|
247
|
-
disabled,
|
|
248
|
-
className: mergeStyles(inputStyles, classes),
|
|
249
|
-
...props
|
|
250
|
-
}
|
|
251
|
-
),
|
|
252
|
-
rightIcon && /* @__PURE__ */ jsx("span", { className: "flex-shrink-0 text-gray-400", children: rightIcon })
|
|
253
|
-
] });
|
|
254
|
-
};
|
|
255
|
-
TextInput.displayName = "TextInput";
|
|
256
|
-
function createPrimitive(node) {
|
|
257
|
-
const Node = (props) => {
|
|
258
|
-
const { asChild, ...primitiveProps } = props;
|
|
259
|
-
const Comp = asChild ? Slot : node;
|
|
260
|
-
return /* @__PURE__ */ jsx(Comp, { ...primitiveProps });
|
|
261
|
-
};
|
|
262
|
-
Node.displayName = `Primitive.${node}`;
|
|
263
|
-
return Node;
|
|
264
|
-
}
|
|
265
|
-
var Primitive = {
|
|
266
|
-
div: createPrimitive("div"),
|
|
267
|
-
span: createPrimitive("span"),
|
|
268
|
-
img: createPrimitive("img"),
|
|
269
|
-
button: createPrimitive("button"),
|
|
270
|
-
label: createPrimitive("label"),
|
|
271
|
-
input: createPrimitive("input"),
|
|
272
|
-
textarea: createPrimitive("textarea"),
|
|
273
|
-
a: createPrimitive("a"),
|
|
274
|
-
p: createPrimitive("p"),
|
|
275
|
-
h2: createPrimitive("h2"),
|
|
276
|
-
ul: createPrimitive("ul"),
|
|
277
|
-
li: createPrimitive("li"),
|
|
278
|
-
svg: createPrimitive("svg"),
|
|
279
|
-
circle: createPrimitive("circle")
|
|
280
|
-
};
|
|
281
|
-
var TextAreaRoot = ({ className, children, ...props }) => {
|
|
282
|
-
const field = useFieldContext();
|
|
283
|
-
const wrapperStyles = mergeStyles(
|
|
284
|
-
"rounded-md p-4",
|
|
285
|
-
"bg-white",
|
|
286
|
-
"focus-within:ring-2 focus-within:ring-gray-600",
|
|
287
|
-
field?.disabled && "cursor-not-allowed opacity-50",
|
|
288
|
-
field?.error && "ring-2 ring-red-400 focus-within:ring-red-400",
|
|
289
|
-
className
|
|
290
|
-
);
|
|
291
|
-
return /* @__PURE__ */ jsx(Primitive.div, { className: wrapperStyles, ...props, children });
|
|
292
|
-
};
|
|
293
|
-
var TextAreaInput = ({
|
|
294
|
-
resize = true,
|
|
295
|
-
disabled: disabledProp,
|
|
296
|
-
className,
|
|
297
|
-
...props
|
|
298
|
-
}) => {
|
|
299
|
-
const field = useFieldContext();
|
|
300
|
-
const disabled = disabledProp ?? field?.disabled ?? false;
|
|
301
|
-
const textareaStyles = mergeStyles(
|
|
302
|
-
"w-full min-w-0 min-h-10 bg-transparent outline-none",
|
|
303
|
-
"typo-body-sm",
|
|
304
|
-
"text-gray-700 placeholder:text-gray-400",
|
|
305
|
-
"caret-gray-600",
|
|
306
|
-
resize ? "resize-y" : "resize-none",
|
|
307
|
-
disabled && "cursor-not-allowed",
|
|
308
|
-
className
|
|
309
|
-
);
|
|
310
|
-
return /* @__PURE__ */ jsx("textarea", { className: textareaStyles, disabled, ...props });
|
|
311
|
-
};
|
|
312
|
-
var TextAreaFooter = ({
|
|
313
|
-
className,
|
|
314
|
-
children,
|
|
315
|
-
...props
|
|
316
|
-
}) => {
|
|
317
|
-
return /* @__PURE__ */ jsx(Primitive.div, { className: mergeStyles("mt-2", className), ...props, children });
|
|
318
|
-
};
|
|
319
|
-
TextAreaRoot.displayName = "TextArea";
|
|
320
|
-
TextAreaInput.displayName = "TextArea.Input";
|
|
321
|
-
TextAreaFooter.displayName = "TextArea.Footer";
|
|
322
|
-
var TextArea = Object.assign(TextAreaRoot, {
|
|
323
|
-
Input: TextAreaInput,
|
|
324
|
-
Footer: TextAreaFooter
|
|
325
|
-
});
|
|
326
|
-
var RadioGroupContext = createContext(null);
|
|
327
|
-
var useRadioGroupContext = () => {
|
|
328
|
-
return useContext(RadioGroupContext);
|
|
329
|
-
};
|
|
330
|
-
var RadioGroup = ({
|
|
331
|
-
name,
|
|
332
|
-
value,
|
|
333
|
-
defaultValue,
|
|
334
|
-
onValueChange,
|
|
335
|
-
className,
|
|
336
|
-
children,
|
|
337
|
-
...props
|
|
338
|
-
}) => {
|
|
339
|
-
const [internalValue, setInternalValue] = React4.useState(defaultValue);
|
|
340
|
-
const currentValue = value ?? internalValue;
|
|
341
|
-
const handleChange = (newValue) => {
|
|
342
|
-
if (value === void 0) {
|
|
343
|
-
setInternalValue(newValue);
|
|
344
|
-
}
|
|
345
|
-
onValueChange?.(newValue);
|
|
346
|
-
};
|
|
347
|
-
return /* @__PURE__ */ jsx(
|
|
348
|
-
RadioGroupContext.Provider,
|
|
349
|
-
{
|
|
350
|
-
value: { name, value: currentValue, onChange: handleChange },
|
|
351
|
-
children: /* @__PURE__ */ jsx(
|
|
352
|
-
Primitive.div,
|
|
353
|
-
{
|
|
354
|
-
role: "radiogroup",
|
|
355
|
-
className: mergeStyles("flex flex-col gap-5", className),
|
|
356
|
-
...props,
|
|
357
|
-
children
|
|
358
|
-
}
|
|
359
|
-
)
|
|
360
|
-
}
|
|
361
|
-
);
|
|
362
|
-
};
|
|
363
|
-
var RadioIcon = ({ checked }) => /* @__PURE__ */ jsx(
|
|
364
|
-
"svg",
|
|
365
|
-
{
|
|
366
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
367
|
-
width: "20",
|
|
368
|
-
height: "20",
|
|
369
|
-
viewBox: "0 0 20 20",
|
|
370
|
-
fill: "none",
|
|
371
|
-
className: "transition-all duration-150 ease-in-out",
|
|
372
|
-
children: /* @__PURE__ */ jsx(
|
|
373
|
-
"circle",
|
|
374
|
-
{
|
|
375
|
-
cx: "10",
|
|
376
|
-
cy: "10",
|
|
377
|
-
r: checked ? 7 : 7.5,
|
|
378
|
-
stroke: "currentColor",
|
|
379
|
-
strokeWidth: checked ? 6 : 5,
|
|
380
|
-
className: "transition-all duration-150 ease-in-out"
|
|
381
|
-
}
|
|
382
|
-
)
|
|
383
|
-
}
|
|
384
|
-
);
|
|
385
|
-
var Radio = ({
|
|
386
|
-
value,
|
|
387
|
-
children,
|
|
388
|
-
className,
|
|
389
|
-
checked: checkedProp,
|
|
390
|
-
onChange,
|
|
391
|
-
...props
|
|
392
|
-
}) => {
|
|
393
|
-
const group = useRadioGroupContext();
|
|
394
|
-
const isChecked = group ? group.value === value : checkedProp;
|
|
395
|
-
const name = group?.name ?? props.name;
|
|
396
|
-
const handleChange = (e) => {
|
|
397
|
-
group?.onChange?.(value);
|
|
398
|
-
onChange?.(e);
|
|
399
|
-
};
|
|
400
|
-
return /* @__PURE__ */ jsxs(
|
|
401
|
-
"label",
|
|
402
|
-
{
|
|
403
|
-
className: mergeStyles(
|
|
404
|
-
"flex cursor-pointer items-center gap-2",
|
|
405
|
-
"transition-opacity duration-150 hover:opacity-80",
|
|
406
|
-
className
|
|
407
|
-
),
|
|
408
|
-
children: [
|
|
409
|
-
/* @__PURE__ */ jsx(
|
|
410
|
-
"input",
|
|
411
|
-
{
|
|
412
|
-
type: "radio",
|
|
413
|
-
name,
|
|
414
|
-
value,
|
|
415
|
-
checked: isChecked,
|
|
416
|
-
onChange: handleChange,
|
|
417
|
-
className: "sr-only",
|
|
418
|
-
...props
|
|
419
|
-
}
|
|
420
|
-
),
|
|
421
|
-
/* @__PURE__ */ jsx(
|
|
422
|
-
"span",
|
|
423
|
-
{
|
|
424
|
-
className: mergeStyles(
|
|
425
|
-
"flex-shrink-0 transition-colors duration-150",
|
|
426
|
-
isChecked ? "text-gray-800 hover:text-gray-800" : "text-gray-200 hover:text-gray-400"
|
|
427
|
-
),
|
|
428
|
-
children: /* @__PURE__ */ jsx(RadioIcon, { checked: !!isChecked })
|
|
429
|
-
}
|
|
430
|
-
),
|
|
431
|
-
/* @__PURE__ */ jsx(Text, { typography: "body-sm", textColor: "gray-800", children })
|
|
432
|
-
]
|
|
433
|
-
}
|
|
434
|
-
);
|
|
435
|
-
};
|
|
436
|
-
RadioGroup.displayName = "RadioGroup";
|
|
437
|
-
Radio.displayName = "Radio";
|
|
438
|
-
var ToggleContext = React4.createContext(null);
|
|
439
|
-
var useToggleContext = () => {
|
|
440
|
-
const context = React4.useContext(ToggleContext);
|
|
441
|
-
if (!context) {
|
|
442
|
-
throw new Error(
|
|
443
|
-
"Toggle \uC11C\uBE0C \uCEF4\uD3EC\uB10C\uD2B8\uB294 <Toggle> \uCEF4\uD3EC\uB10C\uD2B8 \uB0B4\uBD80\uC5D0\uC11C \uC0AC\uC6A9\uD574\uC57C \uD569\uB2C8\uB2E4. ex) <Toggle><Toggle.Switch /></Toggle>"
|
|
444
|
-
);
|
|
445
|
-
}
|
|
446
|
-
return context;
|
|
447
|
-
};
|
|
448
|
-
var ToggleRoot = ({
|
|
449
|
-
checked: checkedProp,
|
|
450
|
-
defaultChecked = false,
|
|
451
|
-
onCheckedChange,
|
|
452
|
-
disabled,
|
|
453
|
-
children,
|
|
454
|
-
className,
|
|
455
|
-
...props
|
|
456
|
-
}) => {
|
|
457
|
-
const [internalChecked, setInternalChecked] = useState(defaultChecked);
|
|
458
|
-
const isChecked = checkedProp !== void 0 ? checkedProp : internalChecked;
|
|
459
|
-
const handleChange = () => {
|
|
460
|
-
if (disabled) return;
|
|
461
|
-
const newChecked = !isChecked;
|
|
462
|
-
if (checkedProp === void 0) {
|
|
463
|
-
setInternalChecked(newChecked);
|
|
464
|
-
}
|
|
465
|
-
onCheckedChange?.(newChecked);
|
|
466
|
-
};
|
|
467
|
-
return /* @__PURE__ */ jsx(ToggleContext.Provider, { value: { checked: isChecked, disabled }, children: /* @__PURE__ */ jsxs(
|
|
468
|
-
"label",
|
|
469
|
-
{
|
|
470
|
-
className: mergeStyles(
|
|
471
|
-
"inline-flex cursor-pointer items-center gap-2",
|
|
472
|
-
disabled && "cursor-not-allowed opacity-50",
|
|
473
|
-
className
|
|
474
|
-
),
|
|
475
|
-
...props,
|
|
476
|
-
children: [
|
|
477
|
-
/* @__PURE__ */ jsx(
|
|
478
|
-
"input",
|
|
479
|
-
{
|
|
480
|
-
type: "checkbox",
|
|
481
|
-
checked: isChecked,
|
|
482
|
-
onChange: handleChange,
|
|
483
|
-
disabled,
|
|
484
|
-
className: "sr-only"
|
|
485
|
-
}
|
|
486
|
-
),
|
|
487
|
-
children
|
|
488
|
-
]
|
|
489
|
-
}
|
|
490
|
-
) });
|
|
491
|
-
};
|
|
492
|
-
var ToggleSwitch = () => {
|
|
493
|
-
const { checked } = useToggleContext();
|
|
494
|
-
return /* @__PURE__ */ jsx(
|
|
495
|
-
"span",
|
|
496
|
-
{
|
|
497
|
-
className: mergeStyles(
|
|
498
|
-
"relative inline-flex items-center rounded-full p-1 transition-colors duration-200 ease-in-out",
|
|
499
|
-
"h-7 w-12",
|
|
500
|
-
// 48px x 28px
|
|
501
|
-
checked ? "bg-gray-600" : "bg-gray-200"
|
|
502
|
-
),
|
|
503
|
-
children: /* @__PURE__ */ jsx(
|
|
504
|
-
"span",
|
|
505
|
-
{
|
|
506
|
-
className: mergeStyles(
|
|
507
|
-
"pointer-events-none inline-block rounded-full bg-white shadow-sm transition-transform duration-200 ease-in-out",
|
|
508
|
-
"h-5 w-5",
|
|
509
|
-
// 20px
|
|
510
|
-
checked ? "translate-x-5" : "translate-x-0"
|
|
511
|
-
)
|
|
512
|
-
}
|
|
513
|
-
)
|
|
514
|
-
}
|
|
515
|
-
);
|
|
516
|
-
};
|
|
517
|
-
var ToggleLabel = ({
|
|
518
|
-
children,
|
|
519
|
-
typography = "fixed-16",
|
|
520
|
-
textColor = "gray-700",
|
|
521
|
-
...props
|
|
522
|
-
}) => {
|
|
523
|
-
const { disabled } = useToggleContext();
|
|
524
|
-
return /* @__PURE__ */ jsx(
|
|
525
|
-
Text,
|
|
526
|
-
{
|
|
527
|
-
typography,
|
|
528
|
-
textColor: disabled ? "gray-400" : textColor,
|
|
529
|
-
...props,
|
|
530
|
-
children
|
|
531
|
-
}
|
|
532
|
-
);
|
|
533
|
-
};
|
|
534
|
-
ToggleRoot.displayName = "Toggle";
|
|
535
|
-
ToggleSwitch.displayName = "Toggle.Switch";
|
|
536
|
-
ToggleLabel.displayName = "Toggle.Label";
|
|
537
|
-
var Toggle = Object.assign(ToggleRoot, {
|
|
538
|
-
Switch: ToggleSwitch,
|
|
539
|
-
Label: ToggleLabel
|
|
540
|
-
});
|
|
541
|
-
var CheckboxContext = React4.createContext(null);
|
|
542
|
-
var useCheckboxContext = () => {
|
|
543
|
-
const context = React4.useContext(CheckboxContext);
|
|
544
|
-
if (!context) {
|
|
545
|
-
throw new Error(
|
|
546
|
-
"Checkbox \uC11C\uBE0C \uCEF4\uD3EC\uB10C\uD2B8\uB294 <Checkbox> \uCEF4\uD3EC\uB10C\uD2B8 \uB0B4\uBD80\uC5D0\uC11C \uC0AC\uC6A9\uD574\uC57C \uD569\uB2C8\uB2E4. ex) <Checkbox><Checkbox.Indicator /></Checkbox>"
|
|
547
|
-
);
|
|
548
|
-
}
|
|
549
|
-
return context;
|
|
550
|
-
};
|
|
551
|
-
var CheckboxRoot = ({
|
|
552
|
-
checked: checkedProp,
|
|
553
|
-
defaultChecked = false,
|
|
554
|
-
onCheckedChange,
|
|
555
|
-
disabled,
|
|
556
|
-
children,
|
|
557
|
-
className,
|
|
558
|
-
...props
|
|
559
|
-
}) => {
|
|
560
|
-
const [internalChecked, setInternalChecked] = useState(defaultChecked);
|
|
561
|
-
const isChecked = checkedProp !== void 0 ? checkedProp : internalChecked;
|
|
562
|
-
const handleChange = () => {
|
|
563
|
-
if (disabled) return;
|
|
564
|
-
const newChecked = !isChecked;
|
|
565
|
-
if (checkedProp === void 0) {
|
|
566
|
-
setInternalChecked(newChecked);
|
|
567
|
-
}
|
|
568
|
-
onCheckedChange?.(newChecked);
|
|
569
|
-
};
|
|
570
|
-
return /* @__PURE__ */ jsx(CheckboxContext.Provider, { value: { checked: isChecked, disabled }, children: /* @__PURE__ */ jsxs(
|
|
571
|
-
"label",
|
|
572
|
-
{
|
|
573
|
-
className: mergeStyles(
|
|
574
|
-
"inline-flex cursor-pointer items-center gap-2",
|
|
575
|
-
disabled && "cursor-not-allowed opacity-50",
|
|
576
|
-
className
|
|
577
|
-
),
|
|
578
|
-
...props,
|
|
579
|
-
children: [
|
|
580
|
-
/* @__PURE__ */ jsx(
|
|
581
|
-
"input",
|
|
582
|
-
{
|
|
583
|
-
type: "checkbox",
|
|
584
|
-
checked: isChecked,
|
|
585
|
-
onChange: handleChange,
|
|
586
|
-
disabled,
|
|
587
|
-
className: "sr-only"
|
|
588
|
-
}
|
|
589
|
-
),
|
|
590
|
-
children
|
|
591
|
-
]
|
|
592
|
-
}
|
|
593
|
-
) });
|
|
594
|
-
};
|
|
595
|
-
var CheckboxIndicator = () => {
|
|
596
|
-
const { checked } = useCheckboxContext();
|
|
597
|
-
if (checked) {
|
|
598
|
-
return /* @__PURE__ */ jsxs(
|
|
599
|
-
"svg",
|
|
600
|
-
{
|
|
601
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
602
|
-
width: "18",
|
|
603
|
-
height: "18",
|
|
604
|
-
viewBox: "0 0 18 18",
|
|
605
|
-
fill: "none",
|
|
606
|
-
className: "flex-shrink-0",
|
|
607
|
-
children: [
|
|
608
|
-
/* @__PURE__ */ jsx("rect", { width: "18", height: "18", rx: "4", fill: "#1E2939" }),
|
|
609
|
-
/* @__PURE__ */ jsx(
|
|
610
|
-
"path",
|
|
611
|
-
{
|
|
612
|
-
d: "M5 9.08333L7.94737 12L13 7",
|
|
613
|
-
stroke: "white",
|
|
614
|
-
strokeWidth: "2",
|
|
615
|
-
strokeLinecap: "round",
|
|
616
|
-
strokeLinejoin: "round"
|
|
617
|
-
}
|
|
618
|
-
)
|
|
619
|
-
]
|
|
620
|
-
}
|
|
621
|
-
);
|
|
622
|
-
}
|
|
623
|
-
return /* @__PURE__ */ jsx(
|
|
624
|
-
"span",
|
|
625
|
-
{
|
|
626
|
-
className: mergeStyles(
|
|
627
|
-
"flex-shrink-0",
|
|
628
|
-
"aspect-square h-[18px] w-[18px]",
|
|
629
|
-
"rounded border-2 border-gray-200 bg-white"
|
|
630
|
-
)
|
|
631
|
-
}
|
|
632
|
-
);
|
|
633
|
-
};
|
|
634
|
-
var CheckboxLabel = ({
|
|
635
|
-
children,
|
|
636
|
-
typography = "body-sm",
|
|
637
|
-
textColor = "gray-600",
|
|
638
|
-
...props
|
|
639
|
-
}) => {
|
|
640
|
-
const { disabled } = useCheckboxContext();
|
|
641
|
-
return /* @__PURE__ */ jsx(
|
|
642
|
-
Text,
|
|
643
|
-
{
|
|
644
|
-
typography,
|
|
645
|
-
textColor: disabled ? "gray-400" : textColor,
|
|
646
|
-
...props,
|
|
647
|
-
children
|
|
648
|
-
}
|
|
649
|
-
);
|
|
650
|
-
};
|
|
651
|
-
CheckboxRoot.displayName = "Checkbox";
|
|
652
|
-
CheckboxIndicator.displayName = "Checkbox.Indicator";
|
|
653
|
-
CheckboxLabel.displayName = "Checkbox.Label";
|
|
654
|
-
var Checkbox = Object.assign(CheckboxRoot, {
|
|
655
|
-
Indicator: CheckboxIndicator,
|
|
656
|
-
Label: CheckboxLabel
|
|
657
|
-
});
|
|
658
|
-
|
|
659
|
-
// src/components/Button/Button.styles.ts
|
|
660
|
-
var baseStyles = "inline-flex items-center justify-center gap-[0.375rem] whitespace-nowrap rounded-[0.5rem] transition-colors duration-150 disabled:opacity-50 disabled:pointer-events-none";
|
|
661
|
-
var sizeStyles = {
|
|
662
|
-
sm: "min-w-[3rem] h-[1.875rem] px-[0.5rem] typo-body2-sm-point",
|
|
663
|
-
md: "h-[2.375rem] px-[0.75rem] typo-body2-sm-point"
|
|
664
|
-
};
|
|
665
|
-
var colorStyles = {
|
|
666
|
-
// base와 active에 대한 설정이 아직 정해지지 않음
|
|
667
|
-
white: {
|
|
668
|
-
base: "bg-white text-gray-400",
|
|
669
|
-
active: "bg-white text-gray-400"
|
|
670
|
-
},
|
|
671
|
-
gray: {
|
|
672
|
-
base: "bg-gray-100 text-gray-400",
|
|
673
|
-
active: "bg-gray-100 text-gray-400"
|
|
674
|
-
},
|
|
675
|
-
red: {
|
|
676
|
-
base: "bg-red-100 text-red-400",
|
|
677
|
-
active: "bg-red-100 text-red-400"
|
|
678
|
-
}
|
|
679
|
-
};
|
|
680
|
-
function buttonStyles({
|
|
681
|
-
size,
|
|
682
|
-
color,
|
|
683
|
-
active = false,
|
|
684
|
-
disabled = false,
|
|
685
|
-
fullWidth = false
|
|
686
|
-
}) {
|
|
687
|
-
return mergeStyles(
|
|
688
|
-
baseStyles,
|
|
689
|
-
disabled ? "cursor-not-allowed pointer-events-none" : "cursor-pointer",
|
|
690
|
-
sizeStyles[size],
|
|
691
|
-
active ? colorStyles[color].active : colorStyles[color].base,
|
|
692
|
-
fullWidth && "w-full"
|
|
693
|
-
);
|
|
694
|
-
}
|
|
695
|
-
function Button({
|
|
696
|
-
size = "md",
|
|
697
|
-
color = "gray",
|
|
698
|
-
active = false,
|
|
699
|
-
fullWidth = false,
|
|
700
|
-
disabled = false,
|
|
701
|
-
children,
|
|
702
|
-
...props
|
|
703
|
-
}) {
|
|
704
|
-
return /* @__PURE__ */ jsx(
|
|
705
|
-
"button",
|
|
706
|
-
{
|
|
707
|
-
className: buttonStyles({
|
|
708
|
-
size,
|
|
709
|
-
color,
|
|
710
|
-
active,
|
|
711
|
-
disabled,
|
|
712
|
-
fullWidth
|
|
713
|
-
}),
|
|
714
|
-
disabled,
|
|
715
|
-
...props,
|
|
716
|
-
children
|
|
717
|
-
}
|
|
718
|
-
);
|
|
719
|
-
}
|
|
720
|
-
|
|
721
|
-
// src/components/CTAButton/CTAButton.styles.ts
|
|
722
|
-
var baseStyles2 = "inline-flex items-center justify-center h-[3.375rem] px-[0.5rem] rounded-[0.75rem] typo-fixed-15 whitespace-nowrap select-none transition-colors";
|
|
723
|
-
var widthStyles = {
|
|
724
|
-
default: "w-[18rem]",
|
|
725
|
-
full: "w-full"
|
|
726
|
-
};
|
|
727
|
-
var colorStyles2 = {
|
|
728
|
-
blue: "bg-blue-100 text-blue-700",
|
|
729
|
-
red: "bg-red-400 text-white",
|
|
730
|
-
dark: "bg-gray-700 text-white",
|
|
731
|
-
light: "bg-gray-100 text-gray-500",
|
|
732
|
-
white: "bg-white text-gray-500",
|
|
733
|
-
disabled: "bg-gray-200 text-gray-300"
|
|
734
|
-
};
|
|
735
|
-
function ctaButtonStyles({
|
|
736
|
-
color,
|
|
737
|
-
fullWidth = false,
|
|
738
|
-
disabled = false
|
|
739
|
-
}) {
|
|
740
|
-
return mergeStyles(
|
|
741
|
-
baseStyles2,
|
|
742
|
-
fullWidth ? widthStyles.full : widthStyles.default,
|
|
743
|
-
colorStyles2[disabled ? "disabled" : color],
|
|
744
|
-
disabled ? "pointer-events-none" : "cursor-pointer"
|
|
745
|
-
);
|
|
746
|
-
}
|
|
747
|
-
function CTAButton({
|
|
748
|
-
color = "light",
|
|
749
|
-
fullWidth = false,
|
|
750
|
-
disabled = false,
|
|
751
|
-
asChild = false,
|
|
752
|
-
className,
|
|
753
|
-
children,
|
|
754
|
-
...props
|
|
755
|
-
}) {
|
|
756
|
-
const Component = asChild ? Slot : "button";
|
|
757
|
-
return /* @__PURE__ */ jsx(
|
|
758
|
-
Component,
|
|
759
|
-
{
|
|
760
|
-
type: asChild ? void 0 : "button",
|
|
761
|
-
disabled,
|
|
762
|
-
className: mergeStyles(
|
|
763
|
-
ctaButtonStyles({ color, fullWidth, disabled }),
|
|
764
|
-
className
|
|
765
|
-
),
|
|
766
|
-
...props,
|
|
767
|
-
children
|
|
768
|
-
}
|
|
769
|
-
);
|
|
770
|
-
}
|
|
771
|
-
|
|
772
|
-
// src/components/FloatingActionButton/FloatingActionButton.styles.ts
|
|
773
|
-
var baseStyles3 = "inline-flex items-center justify-center bg-gray-100 border border-gray-200 text-gray-500 typo-body-sm-point h-[2.875rem] rounded-[6.1875rem] select-none whitespace-nowrap transition-colors";
|
|
774
|
-
var paddingStyles = "px-[1rem] py-[0.625rem]";
|
|
775
|
-
var iconGapStyles = {
|
|
776
|
-
left: "gap-[0.25rem]",
|
|
777
|
-
right: "gap-[0.625rem]",
|
|
778
|
-
none: ""
|
|
779
|
-
};
|
|
780
|
-
function floatingActionButtonStyles({
|
|
781
|
-
iconPosition = "none",
|
|
782
|
-
disabled = false
|
|
783
|
-
}) {
|
|
784
|
-
return mergeStyles(
|
|
785
|
-
baseStyles3,
|
|
786
|
-
paddingStyles,
|
|
787
|
-
iconGapStyles[iconPosition],
|
|
788
|
-
disabled ? "opacity-50 pointer-events-none" : "cursor-pointer"
|
|
789
|
-
);
|
|
790
|
-
}
|
|
791
|
-
function FloatingActionButton({
|
|
792
|
-
leftIcon,
|
|
793
|
-
rightIcon,
|
|
794
|
-
disabled = false,
|
|
795
|
-
asChild = false,
|
|
796
|
-
children,
|
|
797
|
-
className,
|
|
798
|
-
...props
|
|
799
|
-
}) {
|
|
800
|
-
const iconPosition = leftIcon ? "left" : rightIcon ? "right" : "none";
|
|
801
|
-
const Component = asChild ? Slot : "button";
|
|
802
|
-
return /* @__PURE__ */ jsxs(
|
|
803
|
-
Component,
|
|
804
|
-
{
|
|
805
|
-
type: asChild ? void 0 : "button",
|
|
806
|
-
disabled,
|
|
807
|
-
className: mergeStyles(
|
|
808
|
-
floatingActionButtonStyles({ iconPosition, disabled }),
|
|
809
|
-
className
|
|
810
|
-
),
|
|
811
|
-
...props,
|
|
812
|
-
children: [
|
|
813
|
-
leftIcon && /* @__PURE__ */ jsx("span", { className: "flex items-center", children: leftIcon }),
|
|
814
|
-
children && /* @__PURE__ */ jsx("span", { children }),
|
|
815
|
-
rightIcon && /* @__PURE__ */ jsx("span", { className: "flex items-center", children: rightIcon })
|
|
816
|
-
]
|
|
817
|
-
}
|
|
818
|
-
);
|
|
819
|
-
}
|
|
820
|
-
|
|
821
|
-
// src/components/Box/Box.styles.ts
|
|
822
|
-
var paddingClasses = {
|
|
823
|
-
none: "p-0",
|
|
824
|
-
xs: "p-1",
|
|
825
|
-
// 4px
|
|
826
|
-
sm: "p-2",
|
|
827
|
-
// 8px
|
|
828
|
-
md: "p-4",
|
|
829
|
-
// 16px
|
|
830
|
-
lg: "p-6"
|
|
831
|
-
// 24px
|
|
832
|
-
};
|
|
833
|
-
var radiusClasses = {
|
|
834
|
-
none: "rounded-none",
|
|
835
|
-
xs: "rounded-sm",
|
|
836
|
-
sm: "rounded",
|
|
837
|
-
md: "rounded-md",
|
|
838
|
-
lg: "rounded-lg",
|
|
839
|
-
xl: "rounded-xl",
|
|
840
|
-
"2xl": "rounded-2xl",
|
|
841
|
-
"3xl": "rounded-3xl"
|
|
842
|
-
};
|
|
843
|
-
var displayClasses = {
|
|
844
|
-
block: "block",
|
|
845
|
-
flex: "flex",
|
|
846
|
-
grid: "grid",
|
|
847
|
-
"inline-block": "inline-block",
|
|
848
|
-
"inline-flex": "inline-flex",
|
|
849
|
-
none: "hidden"
|
|
850
|
-
};
|
|
851
|
-
var backgroundClasses = {
|
|
852
|
-
default: "",
|
|
853
|
-
subtle: "bg-gray-50",
|
|
854
|
-
inverse: "bg-gray-900 text-white",
|
|
855
|
-
transparent: "bg-transparent"
|
|
856
|
-
};
|
|
857
|
-
function boxStyles({
|
|
858
|
-
padding = "none",
|
|
859
|
-
radius = "none",
|
|
860
|
-
display = "block",
|
|
861
|
-
background = "default"
|
|
862
|
-
}) {
|
|
863
|
-
return mergeStyles([
|
|
864
|
-
paddingClasses[padding],
|
|
865
|
-
radiusClasses[radius],
|
|
866
|
-
displayClasses[display],
|
|
867
|
-
backgroundClasses[background]
|
|
868
|
-
]);
|
|
869
|
-
}
|
|
870
|
-
|
|
871
|
-
// src/components/Box/Box.tsx
|
|
872
|
-
var Box = ({
|
|
873
|
-
as,
|
|
874
|
-
padding,
|
|
875
|
-
radius,
|
|
876
|
-
display,
|
|
877
|
-
background,
|
|
878
|
-
className = "",
|
|
879
|
-
children,
|
|
880
|
-
...props
|
|
881
|
-
}) => {
|
|
882
|
-
const Component = as || "div";
|
|
883
|
-
const classes = boxStyles({ padding, radius, display, background });
|
|
884
|
-
return React4.createElement(
|
|
885
|
-
Component,
|
|
886
|
-
{
|
|
887
|
-
className: mergeStyles(classes, className),
|
|
888
|
-
...props
|
|
889
|
-
},
|
|
890
|
-
children
|
|
891
|
-
);
|
|
892
|
-
};
|
|
893
|
-
Box.displayName = "Box";
|
|
894
|
-
|
|
895
|
-
// src/components/Stack/Stack.styles.ts
|
|
896
|
-
var directionClasses = {
|
|
897
|
-
horizontal: "flex-row",
|
|
898
|
-
vertical: "flex-col"
|
|
899
|
-
};
|
|
900
|
-
var gapClasses = {
|
|
901
|
-
none: "gap-0",
|
|
902
|
-
xs: "gap-1",
|
|
903
|
-
// 4px
|
|
904
|
-
sm: "gap-2",
|
|
905
|
-
// 8px
|
|
906
|
-
md: "gap-4",
|
|
907
|
-
// 16px
|
|
908
|
-
lg: "gap-6",
|
|
909
|
-
// 24px
|
|
910
|
-
xl: "gap-8"
|
|
911
|
-
// 32px
|
|
912
|
-
};
|
|
913
|
-
var alignClasses2 = {
|
|
914
|
-
start: "items-start",
|
|
915
|
-
center: "items-center",
|
|
916
|
-
end: "items-end",
|
|
917
|
-
stretch: "items-stretch"
|
|
918
|
-
};
|
|
919
|
-
var justifyClasses = {
|
|
920
|
-
start: "justify-start",
|
|
921
|
-
center: "justify-center",
|
|
922
|
-
end: "justify-end",
|
|
923
|
-
between: "justify-between"
|
|
924
|
-
};
|
|
925
|
-
function stackStyles({
|
|
926
|
-
direction = "vertical",
|
|
927
|
-
gap = "md",
|
|
928
|
-
align = "stretch",
|
|
929
|
-
justify = "start"
|
|
930
|
-
}) {
|
|
931
|
-
return mergeStyles([
|
|
932
|
-
"flex",
|
|
933
|
-
// Base style
|
|
934
|
-
directionClasses[direction],
|
|
935
|
-
gapClasses[gap],
|
|
936
|
-
alignClasses2[align],
|
|
937
|
-
justifyClasses[justify]
|
|
938
|
-
]);
|
|
939
|
-
}
|
|
940
|
-
|
|
941
|
-
// src/components/Stack/Stack.tsx
|
|
942
|
-
var Stack = ({
|
|
943
|
-
as,
|
|
944
|
-
direction,
|
|
945
|
-
gap,
|
|
946
|
-
align,
|
|
947
|
-
justify,
|
|
948
|
-
className = "",
|
|
949
|
-
children,
|
|
950
|
-
...props
|
|
951
|
-
}) => {
|
|
952
|
-
const Component = as || "div";
|
|
953
|
-
const classes = stackStyles({ direction, gap, align, justify });
|
|
954
|
-
return React4.createElement(
|
|
955
|
-
Component,
|
|
956
|
-
{
|
|
957
|
-
className: mergeStyles(classes, className),
|
|
958
|
-
...props
|
|
959
|
-
},
|
|
960
|
-
children
|
|
961
|
-
);
|
|
962
|
-
};
|
|
963
|
-
Stack.displayName = "Stack";
|
|
964
|
-
var VStack = ({
|
|
965
|
-
...props
|
|
966
|
-
}) => {
|
|
967
|
-
return /* @__PURE__ */ jsx(Stack, { direction: "vertical", ...props });
|
|
968
|
-
};
|
|
969
|
-
VStack.displayName = "VStack";
|
|
970
|
-
var HStack = ({
|
|
971
|
-
...props
|
|
972
|
-
}) => {
|
|
973
|
-
return /* @__PURE__ */ jsx(Stack, { direction: "horizontal", ...props });
|
|
974
|
-
};
|
|
975
|
-
HStack.displayName = "HStack";
|
|
976
|
-
|
|
977
|
-
// src/components/Flex/Flex.styles.ts
|
|
978
|
-
var directionClasses2 = {
|
|
979
|
-
row: "flex-row",
|
|
980
|
-
"row-reverse": "flex-row-reverse",
|
|
981
|
-
column: "flex-col",
|
|
982
|
-
"column-reverse": "flex-col-reverse"
|
|
983
|
-
};
|
|
984
|
-
var gapClasses2 = {
|
|
985
|
-
none: "gap-0",
|
|
986
|
-
xs: "gap-1",
|
|
987
|
-
// 4px
|
|
988
|
-
sm: "gap-2",
|
|
989
|
-
// 8px
|
|
990
|
-
md: "gap-4",
|
|
991
|
-
// 16px
|
|
992
|
-
lg: "gap-6",
|
|
993
|
-
// 24px
|
|
994
|
-
xl: "gap-8"
|
|
995
|
-
// 32px
|
|
996
|
-
};
|
|
997
|
-
var alignClasses3 = {
|
|
998
|
-
start: "items-start",
|
|
999
|
-
center: "items-center",
|
|
1000
|
-
end: "items-end",
|
|
1001
|
-
stretch: "items-stretch",
|
|
1002
|
-
baseline: "items-baseline"
|
|
1003
|
-
};
|
|
1004
|
-
var justifyClasses2 = {
|
|
1005
|
-
start: "justify-start",
|
|
1006
|
-
center: "justify-center",
|
|
1007
|
-
end: "justify-end",
|
|
1008
|
-
between: "justify-between",
|
|
1009
|
-
around: "justify-around",
|
|
1010
|
-
evenly: "justify-evenly"
|
|
1011
|
-
};
|
|
1012
|
-
var wrapClasses = {
|
|
1013
|
-
nowrap: "flex-nowrap",
|
|
1014
|
-
wrap: "flex-wrap",
|
|
1015
|
-
"wrap-reverse": "flex-wrap-reverse"
|
|
1016
|
-
};
|
|
1017
|
-
function flexStyles({
|
|
1018
|
-
direction = "row",
|
|
1019
|
-
gap = "md",
|
|
1020
|
-
align = "stretch",
|
|
1021
|
-
justify = "start",
|
|
1022
|
-
wrap = "nowrap"
|
|
1023
|
-
}) {
|
|
1024
|
-
return mergeStyles([
|
|
1025
|
-
"flex",
|
|
1026
|
-
// Base style
|
|
1027
|
-
directionClasses2[direction],
|
|
1028
|
-
gapClasses2[gap],
|
|
1029
|
-
alignClasses3[align],
|
|
1030
|
-
justifyClasses2[justify],
|
|
1031
|
-
wrapClasses[wrap]
|
|
1032
|
-
]);
|
|
1033
|
-
}
|
|
1034
|
-
|
|
1035
|
-
// src/components/Flex/Flex.tsx
|
|
1036
|
-
var Flex = ({
|
|
1037
|
-
as,
|
|
1038
|
-
direction,
|
|
1039
|
-
gap,
|
|
1040
|
-
align,
|
|
1041
|
-
justify,
|
|
1042
|
-
wrap,
|
|
1043
|
-
className = "",
|
|
1044
|
-
children,
|
|
1045
|
-
...props
|
|
1046
|
-
}) => {
|
|
1047
|
-
const Component = as || "div";
|
|
1048
|
-
const classes = flexStyles({ direction, gap, align, justify, wrap });
|
|
1049
|
-
return React4.createElement(
|
|
1050
|
-
Component,
|
|
1051
|
-
{
|
|
1052
|
-
className: mergeStyles(classes, className),
|
|
1053
|
-
...props
|
|
1054
|
-
},
|
|
1055
|
-
children
|
|
1056
|
-
);
|
|
1057
|
-
};
|
|
1058
|
-
Flex.displayName = "Flex";
|
|
1059
|
-
|
|
1060
|
-
// src/components/Grid/Grid.styles.ts
|
|
1061
|
-
var columnsClasses = {
|
|
1062
|
-
1: "grid-cols-1",
|
|
1063
|
-
2: "grid-cols-2",
|
|
1064
|
-
3: "grid-cols-3",
|
|
1065
|
-
4: "grid-cols-4",
|
|
1066
|
-
5: "grid-cols-5",
|
|
1067
|
-
6: "grid-cols-6",
|
|
1068
|
-
7: "grid-cols-7",
|
|
1069
|
-
8: "grid-cols-8",
|
|
1070
|
-
9: "grid-cols-9",
|
|
1071
|
-
10: "grid-cols-10",
|
|
1072
|
-
11: "grid-cols-11",
|
|
1073
|
-
12: "grid-cols-12",
|
|
1074
|
-
none: "grid-cols-none"
|
|
1075
|
-
};
|
|
1076
|
-
var rowsClasses = {
|
|
1077
|
-
1: "grid-rows-1",
|
|
1078
|
-
2: "grid-rows-2",
|
|
1079
|
-
3: "grid-rows-3",
|
|
1080
|
-
4: "grid-rows-4",
|
|
1081
|
-
5: "grid-rows-5",
|
|
1082
|
-
6: "grid-rows-6",
|
|
1083
|
-
none: "grid-rows-none"
|
|
1084
|
-
};
|
|
1085
|
-
var gapClasses3 = {
|
|
1086
|
-
none: "gap-0",
|
|
1087
|
-
xs: "gap-1",
|
|
1088
|
-
// 4px
|
|
1089
|
-
sm: "gap-2",
|
|
1090
|
-
// 8px
|
|
1091
|
-
md: "gap-4",
|
|
1092
|
-
// 16px
|
|
1093
|
-
lg: "gap-6",
|
|
1094
|
-
// 24px
|
|
1095
|
-
xl: "gap-8"
|
|
1096
|
-
// 32px
|
|
1097
|
-
};
|
|
1098
|
-
var flowClasses = {
|
|
1099
|
-
row: "grid-flow-row",
|
|
1100
|
-
col: "grid-flow-col",
|
|
1101
|
-
"row-dense": "grid-flow-row-dense",
|
|
1102
|
-
"col-dense": "grid-flow-col-dense"
|
|
1103
|
-
};
|
|
1104
|
-
function gridStyles({
|
|
1105
|
-
columns = "none",
|
|
1106
|
-
rows = "none",
|
|
1107
|
-
gap = "md",
|
|
1108
|
-
flow = "row"
|
|
1109
|
-
}) {
|
|
1110
|
-
return mergeStyles([
|
|
1111
|
-
"grid",
|
|
1112
|
-
columnsClasses[columns],
|
|
1113
|
-
rowsClasses[rows],
|
|
1114
|
-
gapClasses3[gap],
|
|
1115
|
-
flowClasses[flow]
|
|
1116
|
-
]);
|
|
1117
|
-
}
|
|
1118
|
-
|
|
1119
|
-
// src/components/Grid/Grid.tsx
|
|
1120
|
-
var Grid = ({
|
|
1121
|
-
as,
|
|
1122
|
-
columns,
|
|
1123
|
-
rows,
|
|
1124
|
-
gap,
|
|
1125
|
-
flow,
|
|
1126
|
-
className = "",
|
|
1127
|
-
children,
|
|
1128
|
-
...props
|
|
1129
|
-
}) => {
|
|
1130
|
-
const Component = as || "div";
|
|
1131
|
-
const classes = gridStyles({ columns, rows, gap, flow });
|
|
1132
|
-
return React4.createElement(
|
|
1133
|
-
Component,
|
|
1134
|
-
{
|
|
1135
|
-
className: mergeStyles(classes, className),
|
|
1136
|
-
...props
|
|
1137
|
-
},
|
|
1138
|
-
children
|
|
1139
|
-
);
|
|
1140
|
-
};
|
|
1141
|
-
Grid.displayName = "Grid";
|
|
1142
|
-
|
|
1143
|
-
// src/components/Separator/Separator.styles.ts
|
|
1144
|
-
var orientationClasses = {
|
|
1145
|
-
horizontal: "h-px w-full my-2",
|
|
1146
|
-
vertical: "h-full w-px mx-2 self-stretch"
|
|
1147
|
-
};
|
|
1148
|
-
var colorClasses2 = "bg-gray-200";
|
|
1149
|
-
function separatorStyles({
|
|
1150
|
-
orientation = "horizontal"
|
|
1151
|
-
}) {
|
|
1152
|
-
return mergeStyles([colorClasses2, orientationClasses[orientation]]);
|
|
1153
|
-
}
|
|
1154
|
-
|
|
1155
|
-
// src/components/Separator/Separator.tsx
|
|
1156
|
-
var Separator = ({
|
|
1157
|
-
as,
|
|
1158
|
-
orientation = "horizontal",
|
|
1159
|
-
className = "",
|
|
1160
|
-
...props
|
|
1161
|
-
}) => {
|
|
1162
|
-
const Component = as || "div";
|
|
1163
|
-
const classes = separatorStyles({ orientation });
|
|
1164
|
-
return React4.createElement(Component, {
|
|
1165
|
-
role: "separator",
|
|
1166
|
-
"aria-orientation": orientation,
|
|
1167
|
-
className: mergeStyles(classes, className),
|
|
1168
|
-
...props
|
|
1169
|
-
});
|
|
1170
|
-
};
|
|
1171
|
-
Separator.displayName = "Separator";
|
|
1172
|
-
|
|
1173
|
-
// src/components/Spacer/Spacer.styles.ts
|
|
1174
|
-
var sizeClasses = {
|
|
1175
|
-
1: "w-1 h-1",
|
|
1176
|
-
// 4px
|
|
1177
|
-
2: "w-2 h-2",
|
|
1178
|
-
// 8px
|
|
1179
|
-
4: "w-4 h-4",
|
|
1180
|
-
// 16px
|
|
1181
|
-
6: "w-6 h-6",
|
|
1182
|
-
// 24px
|
|
1183
|
-
8: "w-8 h-8",
|
|
1184
|
-
// 32px
|
|
1185
|
-
10: "w-10 h-10",
|
|
1186
|
-
// 40px
|
|
1187
|
-
12: "w-12 h-12",
|
|
1188
|
-
// 48px
|
|
1189
|
-
16: "w-16 h-16",
|
|
1190
|
-
// 64px
|
|
1191
|
-
20: "w-20 h-20",
|
|
1192
|
-
// 80px
|
|
1193
|
-
24: "w-24 h-24"
|
|
1194
|
-
// 96px
|
|
1195
|
-
};
|
|
1196
|
-
function spacerStyles({ size = "auto" }) {
|
|
1197
|
-
if (size === "auto") {
|
|
1198
|
-
return "flex-1";
|
|
1199
|
-
}
|
|
1200
|
-
return mergeStyles(["flex-none", sizeClasses[size]]);
|
|
1201
|
-
}
|
|
1202
|
-
|
|
1203
|
-
// src/components/Spacer/Spacer.tsx
|
|
1204
|
-
var Spacer = ({
|
|
1205
|
-
as,
|
|
1206
|
-
size,
|
|
1207
|
-
className = "",
|
|
1208
|
-
...props
|
|
1209
|
-
}) => {
|
|
1210
|
-
const Component = as || "div";
|
|
1211
|
-
const classes = spacerStyles({ size });
|
|
1212
|
-
return React4.createElement(Component, {
|
|
1213
|
-
"aria-hidden": "true",
|
|
1214
|
-
className: mergeStyles(classes, className),
|
|
1215
|
-
...props
|
|
1216
|
-
});
|
|
1217
|
-
};
|
|
1218
|
-
Spacer.displayName = "Spacer";
|
|
1219
|
-
|
|
1220
|
-
export { Box, Button, CTAButton, Checkbox, Field, Flex, FloatingActionButton, Grid, HStack, Radio, RadioGroup, Separator, Spacer, Stack, Text, TextArea, TextInput, Toggle, VStack, mergeStyles, useRadioGroupContext };
|
|
1
|
+
import { Text } from "./components/Text/Text.mjs";
|
|
2
|
+
import { Field } from "./components/Field/Field.mjs";
|
|
3
|
+
import { TextInput } from "./components/TextInput/TextInput.mjs";
|
|
4
|
+
import { Primitive } from "./components/Primitive/Primitive.mjs";
|
|
5
|
+
import { TextArea } from "./components/TextArea/TextArea.mjs";
|
|
6
|
+
import { Radio, RadioGroup, useRadioGroupContext } from "./components/Radio/Radio.mjs";
|
|
7
|
+
import { Toggle } from "./components/Toggle/Toggle.mjs";
|
|
8
|
+
import { Checkbox } from "./components/Checkbox/Checkbox.mjs";
|
|
9
|
+
import { mergeStyles } from "./utils/mergeStyles/mergeStyles.mjs";
|
|
10
|
+
import { convertPxToRem } from "./utils/converter/converter.mjs";
|
|
11
|
+
import { splitVariantProps } from "./utils/splitter/splitter.mjs";
|
|
12
|
+
import { Button } from "./components/Button/Button.mjs";
|
|
13
|
+
import { CTAButton } from "./components/CTAButton/CTAButton.mjs";
|
|
14
|
+
import { FloatingActionButton } from "./components/FloatingActionButton/FloatingActionButton.mjs";
|
|
15
|
+
import { box } from "./components/Box/Box.styles.mjs";
|
|
16
|
+
import { Box } from "./components/Box/Box.mjs";
|
|
17
|
+
import { Stack } from "./components/Stack/Stack.mjs";
|
|
18
|
+
import { VStack } from "./components/VStack/VStack.mjs";
|
|
19
|
+
import { HStack } from "./components/HStack/HStack.mjs";
|
|
20
|
+
import { Flex } from "./components/Flex/Flex.mjs";
|
|
21
|
+
import { Grid } from "./components/Grid/Grid.mjs";
|
|
22
|
+
import { Separator } from "./components/Separator/Separator.mjs";
|
|
23
|
+
import { Spacer } from "./components/Spacer/Spacer.mjs";
|
|
24
|
+
import { RatioChart } from "./components/RatioChart/RatioChart.mjs";
|
|
25
|
+
import { RatioChartEditor } from "./components/RatioChart/RatioChartEditor.mjs";
|
|
26
|
+
import { Select } from "./components/Select/Select.mjs";
|
|
27
|
+
import { Dialog } from "./components/Dialog/Dialog.mjs";
|
|
28
|
+
import { Dropdown } from "./components/Dropdown/Dropdown.mjs";
|
|
29
|
+
import { Float } from "./components/Float/Float.mjs";
|
|
30
|
+
import { Chip } from "./components/Chip/Chip.mjs";
|
|
31
|
+
import { Avatar } from "./components/Avatar/Avatar.mjs";
|
|
32
|
+
import { Tab } from "./components/Tab/Tab.mjs";
|
|
33
|
+
import { Toast, ToastProvider, ToastViewport } from "./components/Toast/Toast.mjs";
|
|
34
|
+
import { Modal } from "./components/Modal/Modal.mjs";
|
|
35
|
+
|
|
36
|
+
export { Avatar, Box, Button, CTAButton, Checkbox, Chip, Dialog, Dropdown, Field, Flex, Float, FloatingActionButton, Grid, HStack, Modal, Primitive, Radio, RadioGroup, RatioChart, RatioChartEditor, Select, Separator, Spacer, Stack, Tab, Text, TextArea, TextInput, Toast, ToastProvider, ToastViewport, Toggle, VStack, box, convertPxToRem, mergeStyles, splitVariantProps, useRadioGroupContext };
|