@causw/core 0.0.9 → 0.0.11
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 -207
- package/dist/index.mjs +35 -658
- 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 +22 -10
- package/src/styles/global.css +162 -79
- package/dist/index.d.ts +0 -207
- package/dist/index.js +0 -674
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
import * as tailwind_variants0 from "tailwind-variants";
|
|
2
|
+
import { VariantProps } from "tailwind-variants";
|
|
3
|
+
|
|
4
|
+
//#region src/components/Text/Text.styles.d.ts
|
|
5
|
+
declare const text: tailwind_variants0.TVReturnType<{
|
|
6
|
+
typography: {
|
|
7
|
+
'title-48-bold': string;
|
|
8
|
+
'title-32-bold': string;
|
|
9
|
+
'title-30-bold': string;
|
|
10
|
+
'title-24-bold': string;
|
|
11
|
+
'title-22-bold': string;
|
|
12
|
+
'subtitle-20-bold': string;
|
|
13
|
+
'subtitle-18-bold': string;
|
|
14
|
+
'subtitle-16-bold': string;
|
|
15
|
+
'body-18-medium': string;
|
|
16
|
+
'body-16-medium': string;
|
|
17
|
+
'body-16-regular': string;
|
|
18
|
+
'body-15-semibold': string;
|
|
19
|
+
'body-15-medium': string;
|
|
20
|
+
'body-14-semibold': string;
|
|
21
|
+
'body-14-medium': string;
|
|
22
|
+
'body-14-regular': string;
|
|
23
|
+
'caption-12-semibold': string;
|
|
24
|
+
'caption-12-medium': string;
|
|
25
|
+
'caption-12-regular': string;
|
|
26
|
+
};
|
|
27
|
+
textColor: {
|
|
28
|
+
'gray-50': string;
|
|
29
|
+
'gray-100': string;
|
|
30
|
+
'gray-200': string;
|
|
31
|
+
'gray-300': string;
|
|
32
|
+
'gray-400': string;
|
|
33
|
+
'gray-500': string;
|
|
34
|
+
'gray-600': string;
|
|
35
|
+
'gray-700': string;
|
|
36
|
+
'gray-800': string;
|
|
37
|
+
'gray-900': string;
|
|
38
|
+
'blue-100': string;
|
|
39
|
+
'blue-500': string;
|
|
40
|
+
'blue-700': string;
|
|
41
|
+
'red-100': string;
|
|
42
|
+
'red-400': string;
|
|
43
|
+
white: string;
|
|
44
|
+
black: string;
|
|
45
|
+
};
|
|
46
|
+
align: {
|
|
47
|
+
left: string;
|
|
48
|
+
center: string;
|
|
49
|
+
right: string;
|
|
50
|
+
justify: string;
|
|
51
|
+
};
|
|
52
|
+
}, undefined, "font-sans", {
|
|
53
|
+
typography: {
|
|
54
|
+
'title-48-bold': string;
|
|
55
|
+
'title-32-bold': string;
|
|
56
|
+
'title-30-bold': string;
|
|
57
|
+
'title-24-bold': string;
|
|
58
|
+
'title-22-bold': string;
|
|
59
|
+
'subtitle-20-bold': string;
|
|
60
|
+
'subtitle-18-bold': string;
|
|
61
|
+
'subtitle-16-bold': string;
|
|
62
|
+
'body-18-medium': string;
|
|
63
|
+
'body-16-medium': string;
|
|
64
|
+
'body-16-regular': string;
|
|
65
|
+
'body-15-semibold': string;
|
|
66
|
+
'body-15-medium': string;
|
|
67
|
+
'body-14-semibold': string;
|
|
68
|
+
'body-14-medium': string;
|
|
69
|
+
'body-14-regular': string;
|
|
70
|
+
'caption-12-semibold': string;
|
|
71
|
+
'caption-12-medium': string;
|
|
72
|
+
'caption-12-regular': string;
|
|
73
|
+
};
|
|
74
|
+
textColor: {
|
|
75
|
+
'gray-50': string;
|
|
76
|
+
'gray-100': string;
|
|
77
|
+
'gray-200': string;
|
|
78
|
+
'gray-300': string;
|
|
79
|
+
'gray-400': string;
|
|
80
|
+
'gray-500': string;
|
|
81
|
+
'gray-600': string;
|
|
82
|
+
'gray-700': string;
|
|
83
|
+
'gray-800': string;
|
|
84
|
+
'gray-900': string;
|
|
85
|
+
'blue-100': string;
|
|
86
|
+
'blue-500': string;
|
|
87
|
+
'blue-700': string;
|
|
88
|
+
'red-100': string;
|
|
89
|
+
'red-400': string;
|
|
90
|
+
white: string;
|
|
91
|
+
black: string;
|
|
92
|
+
};
|
|
93
|
+
align: {
|
|
94
|
+
left: string;
|
|
95
|
+
center: string;
|
|
96
|
+
right: string;
|
|
97
|
+
justify: string;
|
|
98
|
+
};
|
|
99
|
+
}, undefined, tailwind_variants0.TVReturnType<{
|
|
100
|
+
typography: {
|
|
101
|
+
'title-48-bold': string;
|
|
102
|
+
'title-32-bold': string;
|
|
103
|
+
'title-30-bold': string;
|
|
104
|
+
'title-24-bold': string;
|
|
105
|
+
'title-22-bold': string;
|
|
106
|
+
'subtitle-20-bold': string;
|
|
107
|
+
'subtitle-18-bold': string;
|
|
108
|
+
'subtitle-16-bold': string;
|
|
109
|
+
'body-18-medium': string;
|
|
110
|
+
'body-16-medium': string;
|
|
111
|
+
'body-16-regular': string;
|
|
112
|
+
'body-15-semibold': string;
|
|
113
|
+
'body-15-medium': string;
|
|
114
|
+
'body-14-semibold': string;
|
|
115
|
+
'body-14-medium': string;
|
|
116
|
+
'body-14-regular': string;
|
|
117
|
+
'caption-12-semibold': string;
|
|
118
|
+
'caption-12-medium': string;
|
|
119
|
+
'caption-12-regular': string;
|
|
120
|
+
};
|
|
121
|
+
textColor: {
|
|
122
|
+
'gray-50': string;
|
|
123
|
+
'gray-100': string;
|
|
124
|
+
'gray-200': string;
|
|
125
|
+
'gray-300': string;
|
|
126
|
+
'gray-400': string;
|
|
127
|
+
'gray-500': string;
|
|
128
|
+
'gray-600': string;
|
|
129
|
+
'gray-700': string;
|
|
130
|
+
'gray-800': string;
|
|
131
|
+
'gray-900': string;
|
|
132
|
+
'blue-100': string;
|
|
133
|
+
'blue-500': string;
|
|
134
|
+
'blue-700': string;
|
|
135
|
+
'red-100': string;
|
|
136
|
+
'red-400': string;
|
|
137
|
+
white: string;
|
|
138
|
+
black: string;
|
|
139
|
+
};
|
|
140
|
+
align: {
|
|
141
|
+
left: string;
|
|
142
|
+
center: string;
|
|
143
|
+
right: string;
|
|
144
|
+
justify: string;
|
|
145
|
+
};
|
|
146
|
+
}, undefined, "font-sans", unknown, unknown, undefined>>;
|
|
147
|
+
type TextVariants = VariantProps<typeof text>;
|
|
148
|
+
//#endregion
|
|
149
|
+
export { TextVariants };
|
|
150
|
+
//# sourceMappingURL=Text.styles.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Text.styles.d.mts","names":[],"sources":["../../../src/components/Text/Text.styles.ts"],"mappings":";;;;cAEa,IAAA,EAkDX,kBAAA,CAlDe,YAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAkDf,kBAAA,CAAA,YAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAEU,YAAA,GAAe,YAAA,QAAoB,IAAA"}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { tv } from "tailwind-variants";
|
|
2
|
+
|
|
3
|
+
//#region src/components/Text/Text.styles.ts
|
|
4
|
+
const text = tv({
|
|
5
|
+
base: "font-sans",
|
|
6
|
+
variants: {
|
|
7
|
+
typography: {
|
|
8
|
+
"title-48-bold": "typo-title-48-bold",
|
|
9
|
+
"title-32-bold": "typo-title-32-bold",
|
|
10
|
+
"title-30-bold": "typo-title-30-bold",
|
|
11
|
+
"title-24-bold": "typo-title-24-bold",
|
|
12
|
+
"title-22-bold": "typo-title-22-bold",
|
|
13
|
+
"subtitle-20-bold": "typo-subtitle-20-bold",
|
|
14
|
+
"subtitle-18-bold": "typo-subtitle-18-bold",
|
|
15
|
+
"subtitle-16-bold": "typo-subtitle-16-bold",
|
|
16
|
+
"body-18-medium": "typo-body-18-medium",
|
|
17
|
+
"body-16-medium": "typo-body-16-medium",
|
|
18
|
+
"body-16-regular": "typo-body-16-regular",
|
|
19
|
+
"body-15-semibold": "typo-body-15-semibold",
|
|
20
|
+
"body-15-medium": "typo-body-15-medium",
|
|
21
|
+
"body-14-semibold": "typo-body-14-semibold",
|
|
22
|
+
"body-14-medium": "typo-body-14-medium",
|
|
23
|
+
"body-14-regular": "typo-body-14-regular",
|
|
24
|
+
"caption-12-semibold": "typo-caption-12-semibold",
|
|
25
|
+
"caption-12-medium": "typo-caption-12-medium",
|
|
26
|
+
"caption-12-regular": "typo-caption-12-regular"
|
|
27
|
+
},
|
|
28
|
+
textColor: {
|
|
29
|
+
"gray-50": "text-gray-50",
|
|
30
|
+
"gray-100": "text-gray-100",
|
|
31
|
+
"gray-200": "text-gray-200",
|
|
32
|
+
"gray-300": "text-gray-300",
|
|
33
|
+
"gray-400": "text-gray-400",
|
|
34
|
+
"gray-500": "text-gray-500",
|
|
35
|
+
"gray-600": "text-gray-600",
|
|
36
|
+
"gray-700": "text-gray-700",
|
|
37
|
+
"gray-800": "text-gray-800",
|
|
38
|
+
"gray-900": "text-gray-900",
|
|
39
|
+
"blue-100": "text-blue-100",
|
|
40
|
+
"blue-500": "text-blue-500",
|
|
41
|
+
"blue-700": "text-blue-700",
|
|
42
|
+
"red-100": "text-red-100",
|
|
43
|
+
"red-400": "text-red-400",
|
|
44
|
+
white: "text-white-main",
|
|
45
|
+
black: "text-black-main"
|
|
46
|
+
},
|
|
47
|
+
align: {
|
|
48
|
+
left: "text-left",
|
|
49
|
+
center: "text-center",
|
|
50
|
+
right: "text-right",
|
|
51
|
+
justify: "text-justify"
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
});
|
|
55
|
+
|
|
56
|
+
//#endregion
|
|
57
|
+
export { text };
|
|
58
|
+
//# sourceMappingURL=Text.styles.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Text.styles.mjs","names":[],"sources":["../../../src/components/Text/Text.styles.ts"],"sourcesContent":["import { tv, type VariantProps } from 'tailwind-variants';\n\nexport const text = tv({\n base: 'font-sans',\n variants: {\n typography: {\n 'title-48-bold': 'typo-title-48-bold',\n 'title-32-bold': 'typo-title-32-bold',\n 'title-30-bold': 'typo-title-30-bold',\n 'title-24-bold': 'typo-title-24-bold',\n 'title-22-bold': 'typo-title-22-bold',\n 'subtitle-20-bold': 'typo-subtitle-20-bold',\n 'subtitle-18-bold': 'typo-subtitle-18-bold',\n 'subtitle-16-bold': 'typo-subtitle-16-bold',\n 'body-18-medium': 'typo-body-18-medium',\n 'body-16-medium': 'typo-body-16-medium',\n 'body-16-regular': 'typo-body-16-regular',\n 'body-15-semibold': 'typo-body-15-semibold',\n 'body-15-medium': 'typo-body-15-medium',\n 'body-14-semibold': 'typo-body-14-semibold',\n 'body-14-medium': 'typo-body-14-medium',\n 'body-14-regular': 'typo-body-14-regular',\n 'caption-12-semibold': 'typo-caption-12-semibold',\n 'caption-12-medium': 'typo-caption-12-medium',\n 'caption-12-regular': 'typo-caption-12-regular',\n },\n textColor: {\n 'gray-50': 'text-gray-50',\n 'gray-100': 'text-gray-100',\n 'gray-200': 'text-gray-200',\n 'gray-300': 'text-gray-300',\n 'gray-400': 'text-gray-400',\n 'gray-500': 'text-gray-500',\n 'gray-600': 'text-gray-600',\n 'gray-700': 'text-gray-700',\n 'gray-800': 'text-gray-800',\n 'gray-900': 'text-gray-900',\n 'blue-100': 'text-blue-100',\n 'blue-500': 'text-blue-500',\n 'blue-700': 'text-blue-700',\n 'red-100': 'text-red-100',\n 'red-400': 'text-red-400',\n white: 'text-white-main',\n black: 'text-black-main',\n },\n align: {\n left: 'text-left',\n center: 'text-center',\n right: 'text-right',\n justify: 'text-justify',\n },\n },\n});\n\nexport type TextVariants = VariantProps<typeof text>;\n"],"mappings":";;;AAEA,MAAa,OAAO,GAAG;CACrB,MAAM;CACN,UAAU;EACR,YAAY;GACV,iBAAiB;GACjB,iBAAiB;GACjB,iBAAiB;GACjB,iBAAiB;GACjB,iBAAiB;GACjB,oBAAoB;GACpB,oBAAoB;GACpB,oBAAoB;GACpB,kBAAkB;GAClB,kBAAkB;GAClB,mBAAmB;GACnB,oBAAoB;GACpB,kBAAkB;GAClB,oBAAoB;GACpB,kBAAkB;GAClB,mBAAmB;GACnB,uBAAuB;GACvB,qBAAqB;GACrB,sBAAsB;GACvB;EACD,WAAW;GACT,WAAW;GACX,YAAY;GACZ,YAAY;GACZ,YAAY;GACZ,YAAY;GACZ,YAAY;GACZ,YAAY;GACZ,YAAY;GACZ,YAAY;GACZ,YAAY;GACZ,YAAY;GACZ,YAAY;GACZ,YAAY;GACZ,WAAW;GACX,WAAW;GACX,OAAO;GACP,OAAO;GACR;EACD,OAAO;GACL,MAAM;GACN,QAAQ;GACR,OAAO;GACP,SAAS;GACV;EACF;CACF,CAAC"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
|
|
2
|
+
const require_useFieldContext = require('../../hooks/field/useFieldContext.cjs');
|
|
3
|
+
const require_Primitive = require('../Primitive/Primitive.cjs');
|
|
4
|
+
const require_TextArea_styles = require('./TextArea.styles.cjs');
|
|
5
|
+
let react = require("react");
|
|
6
|
+
react = require_rolldown_runtime.__toESM(react);
|
|
7
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
8
|
+
|
|
9
|
+
//#region src/components/TextArea/TextArea.tsx
|
|
10
|
+
const TextAreaRoot = ({ className, children, ...props }) => {
|
|
11
|
+
const field = require_useFieldContext.useFieldContext();
|
|
12
|
+
const { root } = require_TextArea_styles.textArea({
|
|
13
|
+
disabled: field?.disabled,
|
|
14
|
+
error: field?.error
|
|
15
|
+
});
|
|
16
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_Primitive.Primitive.div, {
|
|
17
|
+
className: root({ className }),
|
|
18
|
+
...props,
|
|
19
|
+
children
|
|
20
|
+
});
|
|
21
|
+
};
|
|
22
|
+
const TextAreaInput = ({ resize = true, disabled: disabledProp, className, ...props }) => {
|
|
23
|
+
const field = require_useFieldContext.useFieldContext();
|
|
24
|
+
const disabled = disabledProp ?? field?.disabled ?? false;
|
|
25
|
+
const { input } = require_TextArea_styles.textArea({
|
|
26
|
+
disabled,
|
|
27
|
+
resize
|
|
28
|
+
});
|
|
29
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("textarea", {
|
|
30
|
+
className: input({ className }),
|
|
31
|
+
disabled,
|
|
32
|
+
...props
|
|
33
|
+
});
|
|
34
|
+
};
|
|
35
|
+
const TextAreaFooter = ({ className, children, ...props }) => {
|
|
36
|
+
const { footer } = require_TextArea_styles.textArea();
|
|
37
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_Primitive.Primitive.div, {
|
|
38
|
+
className: footer({ className }),
|
|
39
|
+
...props,
|
|
40
|
+
children
|
|
41
|
+
});
|
|
42
|
+
};
|
|
43
|
+
TextAreaRoot.displayName = "TextArea";
|
|
44
|
+
TextAreaInput.displayName = "TextArea.Input";
|
|
45
|
+
TextAreaFooter.displayName = "TextArea.Footer";
|
|
46
|
+
const TextArea = Object.assign(TextAreaRoot, {
|
|
47
|
+
Input: TextAreaInput,
|
|
48
|
+
Footer: TextAreaFooter
|
|
49
|
+
});
|
|
50
|
+
|
|
51
|
+
//#endregion
|
|
52
|
+
exports.TextArea = TextArea;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { PrimitiveProps } from "../Primitive/Primitive.cjs";
|
|
2
|
+
import { TextAreaVariants } from "./TextArea.styles.cjs";
|
|
3
|
+
import React from "react";
|
|
4
|
+
import * as react_jsx_runtime2 from "react/jsx-runtime";
|
|
5
|
+
|
|
6
|
+
//#region src/components/TextArea/TextArea.d.ts
|
|
7
|
+
interface TextAreaProps extends React.HTMLAttributes<HTMLDivElement>, PrimitiveProps {
|
|
8
|
+
children: React.ReactNode;
|
|
9
|
+
}
|
|
10
|
+
interface TextAreaInputProps extends React.ComponentProps<'textarea'>, Pick<TextAreaVariants, 'resize'> {}
|
|
11
|
+
interface TextAreaFooterProps extends React.HTMLAttributes<HTMLDivElement>, PrimitiveProps {
|
|
12
|
+
children: React.ReactNode;
|
|
13
|
+
}
|
|
14
|
+
declare const TextArea: {
|
|
15
|
+
({
|
|
16
|
+
className,
|
|
17
|
+
children,
|
|
18
|
+
...props
|
|
19
|
+
}: TextAreaProps): react_jsx_runtime2.JSX.Element;
|
|
20
|
+
displayName: string;
|
|
21
|
+
} & {
|
|
22
|
+
Input: {
|
|
23
|
+
({
|
|
24
|
+
resize,
|
|
25
|
+
disabled: disabledProp,
|
|
26
|
+
className,
|
|
27
|
+
...props
|
|
28
|
+
}: TextAreaInputProps): react_jsx_runtime2.JSX.Element;
|
|
29
|
+
displayName: string;
|
|
30
|
+
};
|
|
31
|
+
Footer: {
|
|
32
|
+
({
|
|
33
|
+
className,
|
|
34
|
+
children,
|
|
35
|
+
...props
|
|
36
|
+
}: TextAreaFooterProps): react_jsx_runtime2.JSX.Element;
|
|
37
|
+
displayName: string;
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
//#endregion
|
|
41
|
+
export { TextArea, TextAreaFooterProps, TextAreaInputProps, TextAreaProps };
|
|
42
|
+
//# sourceMappingURL=TextArea.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TextArea.d.cts","names":[],"sources":["../../../src/components/TextArea/TextArea.tsx"],"mappings":";;;;;;UAMiB,aAAA,SACP,KAAA,CAAM,cAAA,CAAe,cAAA,GAAiB,cAAA;EAC9C,QAAA,EAAU,KAAA,CAAM,SAAA;AAAA;AAAA,UAmBD,kBAAA,SACP,KAAA,CAAM,cAAA,cAA4B,IAAA,CAAK,gBAAA;AAAA,UAmBhC,mBAAA,SACP,KAAA,CAAM,cAAA,CAAe,cAAA,GAAiB,cAAA;EAC9C,QAAA,EAAU,KAAA,CAAM,SAAA;AAAA;AAAA,cAqBL,QAAA;EAAA;;;;KA3D4C,aAAA,GAAa,kBAAA,CAAA,GAAA,CAAA,OAAA;;;;;;;;;OAwBnE,kBAAA,GAAkB,kBAAA,CAAA,GAAA,CAAA,OAAA;;;;;;;;OAqBlB,mBAAA,GAAmB,kBAAA,CAAA,GAAA,CAAA,OAAA"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { PrimitiveProps } from "../Primitive/Primitive.mjs";
|
|
2
|
+
import "../Primitive/index.mjs";
|
|
3
|
+
import { TextAreaVariants } from "./TextArea.styles.mjs";
|
|
4
|
+
import React from "react";
|
|
5
|
+
import * as react_jsx_runtime3 from "react/jsx-runtime";
|
|
6
|
+
|
|
7
|
+
//#region src/components/TextArea/TextArea.d.ts
|
|
8
|
+
interface TextAreaProps extends React.HTMLAttributes<HTMLDivElement>, PrimitiveProps {
|
|
9
|
+
children: React.ReactNode;
|
|
10
|
+
}
|
|
11
|
+
interface TextAreaInputProps extends React.ComponentProps<'textarea'>, Pick<TextAreaVariants, 'resize'> {}
|
|
12
|
+
interface TextAreaFooterProps extends React.HTMLAttributes<HTMLDivElement>, PrimitiveProps {
|
|
13
|
+
children: React.ReactNode;
|
|
14
|
+
}
|
|
15
|
+
declare const TextArea: {
|
|
16
|
+
({
|
|
17
|
+
className,
|
|
18
|
+
children,
|
|
19
|
+
...props
|
|
20
|
+
}: TextAreaProps): react_jsx_runtime3.JSX.Element;
|
|
21
|
+
displayName: string;
|
|
22
|
+
} & {
|
|
23
|
+
Input: {
|
|
24
|
+
({
|
|
25
|
+
resize,
|
|
26
|
+
disabled: disabledProp,
|
|
27
|
+
className,
|
|
28
|
+
...props
|
|
29
|
+
}: TextAreaInputProps): react_jsx_runtime3.JSX.Element;
|
|
30
|
+
displayName: string;
|
|
31
|
+
};
|
|
32
|
+
Footer: {
|
|
33
|
+
({
|
|
34
|
+
className,
|
|
35
|
+
children,
|
|
36
|
+
...props
|
|
37
|
+
}: TextAreaFooterProps): react_jsx_runtime3.JSX.Element;
|
|
38
|
+
displayName: string;
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
//#endregion
|
|
42
|
+
export { TextArea, TextAreaFooterProps, TextAreaInputProps, TextAreaProps };
|
|
43
|
+
//# sourceMappingURL=TextArea.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TextArea.d.mts","names":[],"sources":["../../../src/components/TextArea/TextArea.tsx"],"mappings":";;;;;;;UAMiB,aAAA,SACP,KAAA,CAAM,cAAA,CAAe,cAAA,GAAiB,cAAA;EAC9C,QAAA,EAAU,KAAA,CAAM,SAAA;AAAA;AAAA,UAmBD,kBAAA,SACP,KAAA,CAAM,cAAA,cAA4B,IAAA,CAAK,gBAAA;AAAA,UAmBhC,mBAAA,SACP,KAAA,CAAM,cAAA,CAAe,cAAA,GAAiB,cAAA;EAC9C,QAAA,EAAU,KAAA,CAAM,SAAA;AAAA;AAAA,cAqBL,QAAA;EAAA;;;;KA3D4C,aAAA,GAAa,kBAAA,CAAA,GAAA,CAAA,OAAA;;;;;;;;;OAwBnE,kBAAA,GAAkB,kBAAA,CAAA,GAAA,CAAA,OAAA;;;;;;;;OAqBlB,mBAAA,GAAmB,kBAAA,CAAA,GAAA,CAAA,OAAA"}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { useFieldContext } from "../../hooks/field/useFieldContext.mjs";
|
|
2
|
+
import { Primitive } from "../Primitive/Primitive.mjs";
|
|
3
|
+
import { textArea } from "./TextArea.styles.mjs";
|
|
4
|
+
import React from "react";
|
|
5
|
+
import { jsx } from "react/jsx-runtime";
|
|
6
|
+
|
|
7
|
+
//#region src/components/TextArea/TextArea.tsx
|
|
8
|
+
const TextAreaRoot = ({ className, children, ...props }) => {
|
|
9
|
+
const field = useFieldContext();
|
|
10
|
+
const { root } = textArea({
|
|
11
|
+
disabled: field?.disabled,
|
|
12
|
+
error: field?.error
|
|
13
|
+
});
|
|
14
|
+
return /* @__PURE__ */ jsx(Primitive.div, {
|
|
15
|
+
className: root({ className }),
|
|
16
|
+
...props,
|
|
17
|
+
children
|
|
18
|
+
});
|
|
19
|
+
};
|
|
20
|
+
const TextAreaInput = ({ resize = true, disabled: disabledProp, className, ...props }) => {
|
|
21
|
+
const field = useFieldContext();
|
|
22
|
+
const disabled = disabledProp ?? field?.disabled ?? false;
|
|
23
|
+
const { input } = textArea({
|
|
24
|
+
disabled,
|
|
25
|
+
resize
|
|
26
|
+
});
|
|
27
|
+
return /* @__PURE__ */ jsx("textarea", {
|
|
28
|
+
className: input({ className }),
|
|
29
|
+
disabled,
|
|
30
|
+
...props
|
|
31
|
+
});
|
|
32
|
+
};
|
|
33
|
+
const TextAreaFooter = ({ className, children, ...props }) => {
|
|
34
|
+
const { footer } = textArea();
|
|
35
|
+
return /* @__PURE__ */ jsx(Primitive.div, {
|
|
36
|
+
className: footer({ className }),
|
|
37
|
+
...props,
|
|
38
|
+
children
|
|
39
|
+
});
|
|
40
|
+
};
|
|
41
|
+
TextAreaRoot.displayName = "TextArea";
|
|
42
|
+
TextAreaInput.displayName = "TextArea.Input";
|
|
43
|
+
TextAreaFooter.displayName = "TextArea.Footer";
|
|
44
|
+
const TextArea = Object.assign(TextAreaRoot, {
|
|
45
|
+
Input: TextAreaInput,
|
|
46
|
+
Footer: TextAreaFooter
|
|
47
|
+
});
|
|
48
|
+
|
|
49
|
+
//#endregion
|
|
50
|
+
export { TextArea };
|
|
51
|
+
//# sourceMappingURL=TextArea.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TextArea.mjs","names":[],"sources":["../../../src/components/TextArea/TextArea.tsx"],"sourcesContent":["import React from 'react';\nimport { useFieldContext } from '../../hooks';\nimport { Primitive, PrimitiveProps } from '../Primitive';\nimport { textArea, type TextAreaVariants } from './TextArea.styles';\n\n// TextArea Root\nexport interface TextAreaProps\n extends React.HTMLAttributes<HTMLDivElement>, PrimitiveProps {\n children: React.ReactNode;\n}\n\nconst TextAreaRoot = ({ className, children, ...props }: TextAreaProps) => {\n const field = useFieldContext();\n\n const { root } = textArea({\n disabled: field?.disabled,\n error: field?.error,\n });\n\n return (\n <Primitive.div className={root({ className })} {...props}>\n {children}\n </Primitive.div>\n );\n};\n\n// TextArea.Input\nexport interface TextAreaInputProps\n extends React.ComponentProps<'textarea'>, Pick<TextAreaVariants, 'resize'> {}\n\nconst TextAreaInput = ({\n resize = true,\n disabled: disabledProp,\n className,\n ...props\n}: TextAreaInputProps) => {\n const field = useFieldContext();\n const disabled = disabledProp ?? field?.disabled ?? false;\n\n const { input } = textArea({ disabled, resize });\n\n return (\n <textarea className={input({ className })} disabled={disabled} {...props} />\n );\n};\n\n// TextArea.Footer\nexport interface TextAreaFooterProps\n extends React.HTMLAttributes<HTMLDivElement>, PrimitiveProps {\n children: React.ReactNode;\n}\n\nconst TextAreaFooter = ({\n className,\n children,\n ...props\n}: TextAreaFooterProps) => {\n const { footer } = textArea();\n return (\n <Primitive.div className={footer({ className })} {...props}>\n {children}\n </Primitive.div>\n );\n};\n\n// Compound Component\nTextAreaRoot.displayName = 'TextArea';\nTextAreaInput.displayName = 'TextArea.Input';\nTextAreaFooter.displayName = 'TextArea.Footer';\n\nexport const TextArea = Object.assign(TextAreaRoot, {\n Input: TextAreaInput,\n Footer: TextAreaFooter,\n});\n"],"mappings":";;;;;;;AAWA,MAAM,gBAAgB,EAAE,WAAW,UAAU,GAAG,YAA2B;CACzE,MAAM,QAAQ,iBAAiB;CAE/B,MAAM,EAAE,SAAS,SAAS;EACxB,UAAU,OAAO;EACjB,OAAO,OAAO;EACf,CAAC;AAEF,QACE,oBAAC,UAAU;EAAI,WAAW,KAAK,EAAE,WAAW,CAAC;EAAE,GAAI;EAChD;GACa;;AAQpB,MAAM,iBAAiB,EACrB,SAAS,MACT,UAAU,cACV,WACA,GAAG,YACqB;CACxB,MAAM,QAAQ,iBAAiB;CAC/B,MAAM,WAAW,gBAAgB,OAAO,YAAY;CAEpD,MAAM,EAAE,UAAU,SAAS;EAAE;EAAU;EAAQ,CAAC;AAEhD,QACE,oBAAC;EAAS,WAAW,MAAM,EAAE,WAAW,CAAC;EAAY;EAAU,GAAI;GAAS;;AAUhF,MAAM,kBAAkB,EACtB,WACA,UACA,GAAG,YACsB;CACzB,MAAM,EAAE,WAAW,UAAU;AAC7B,QACE,oBAAC,UAAU;EAAI,WAAW,OAAO,EAAE,WAAW,CAAC;EAAE,GAAI;EAClD;GACa;;AAKpB,aAAa,cAAc;AAC3B,cAAc,cAAc;AAC5B,eAAe,cAAc;AAE7B,MAAa,WAAW,OAAO,OAAO,cAAc;CAClD,OAAO;CACP,QAAQ;CACT,CAAC"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
|
|
2
|
+
let tailwind_variants = require("tailwind-variants");
|
|
3
|
+
|
|
4
|
+
//#region src/components/TextArea/TextArea.styles.ts
|
|
5
|
+
const textArea = (0, tailwind_variants.tv)({
|
|
6
|
+
slots: {
|
|
7
|
+
root: "bg-white rounded-md p-4 focus-within:ring-2 focus-within:ring-gray-600",
|
|
8
|
+
input: "w-full min-w-0 min-h-10 bg-transparent outline-none typo-body-16-regular text-gray-700 placeholder:text-gray-400 caret-gray-600",
|
|
9
|
+
footer: "mt-2"
|
|
10
|
+
},
|
|
11
|
+
variants: {
|
|
12
|
+
disabled: { true: {
|
|
13
|
+
root: "cursor-not-allowed opacity-50",
|
|
14
|
+
input: "cursor-not-allowed"
|
|
15
|
+
} },
|
|
16
|
+
error: {
|
|
17
|
+
true: { root: "ring-2 ring-red-400 focus-within:ring-red-400" },
|
|
18
|
+
false: {}
|
|
19
|
+
},
|
|
20
|
+
resize: {
|
|
21
|
+
true: { input: "resize-y" },
|
|
22
|
+
false: { input: "resize-none" }
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
defaultVariants: {
|
|
26
|
+
disabled: false,
|
|
27
|
+
error: false,
|
|
28
|
+
resize: true
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
|
|
32
|
+
//#endregion
|
|
33
|
+
exports.textArea = textArea;
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import * as tailwind_variants29 from "tailwind-variants";
|
|
2
|
+
import { VariantProps } from "tailwind-variants";
|
|
3
|
+
|
|
4
|
+
//#region src/components/TextArea/TextArea.styles.d.ts
|
|
5
|
+
declare const textArea: tailwind_variants29.TVReturnType<{
|
|
6
|
+
disabled: {
|
|
7
|
+
true: {
|
|
8
|
+
root: string;
|
|
9
|
+
input: string;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
error: {
|
|
13
|
+
true: {
|
|
14
|
+
root: string;
|
|
15
|
+
};
|
|
16
|
+
false: {};
|
|
17
|
+
};
|
|
18
|
+
resize: {
|
|
19
|
+
true: {
|
|
20
|
+
input: string;
|
|
21
|
+
};
|
|
22
|
+
false: {
|
|
23
|
+
input: string;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
}, {
|
|
27
|
+
root: string;
|
|
28
|
+
input: string;
|
|
29
|
+
footer: string;
|
|
30
|
+
}, undefined, {
|
|
31
|
+
disabled: {
|
|
32
|
+
true: {
|
|
33
|
+
root: string;
|
|
34
|
+
input: string;
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
error: {
|
|
38
|
+
true: {
|
|
39
|
+
root: string;
|
|
40
|
+
};
|
|
41
|
+
false: {};
|
|
42
|
+
};
|
|
43
|
+
resize: {
|
|
44
|
+
true: {
|
|
45
|
+
input: string;
|
|
46
|
+
};
|
|
47
|
+
false: {
|
|
48
|
+
input: string;
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
}, {
|
|
52
|
+
root: string;
|
|
53
|
+
input: string;
|
|
54
|
+
footer: string;
|
|
55
|
+
}, tailwind_variants29.TVReturnType<{
|
|
56
|
+
disabled: {
|
|
57
|
+
true: {
|
|
58
|
+
root: string;
|
|
59
|
+
input: string;
|
|
60
|
+
};
|
|
61
|
+
};
|
|
62
|
+
error: {
|
|
63
|
+
true: {
|
|
64
|
+
root: string;
|
|
65
|
+
};
|
|
66
|
+
false: {};
|
|
67
|
+
};
|
|
68
|
+
resize: {
|
|
69
|
+
true: {
|
|
70
|
+
input: string;
|
|
71
|
+
};
|
|
72
|
+
false: {
|
|
73
|
+
input: string;
|
|
74
|
+
};
|
|
75
|
+
};
|
|
76
|
+
}, {
|
|
77
|
+
root: string;
|
|
78
|
+
input: string;
|
|
79
|
+
footer: string;
|
|
80
|
+
}, undefined, unknown, unknown, undefined>>;
|
|
81
|
+
type TextAreaVariants = VariantProps<typeof textArea>;
|
|
82
|
+
//#endregion
|
|
83
|
+
export { TextAreaVariants };
|
|
84
|
+
//# sourceMappingURL=TextArea.styles.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TextArea.styles.d.cts","names":[],"sources":["../../../src/components/TextArea/TextArea.styles.ts"],"mappings":";;;;cAEa,QAAA,EAkCX,mBAAA,CAlCmB,YAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCnB,mBAAA,CAAA,YAAA;;;;;;;;;;;;;;;;;;;;;;;;;;KAEU,gBAAA,GAAmB,YAAA,QAAoB,QAAA"}
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import * as tailwind_variants27 from "tailwind-variants";
|
|
2
|
+
import { VariantProps } from "tailwind-variants";
|
|
3
|
+
|
|
4
|
+
//#region src/components/TextArea/TextArea.styles.d.ts
|
|
5
|
+
declare const textArea: tailwind_variants27.TVReturnType<{
|
|
6
|
+
disabled: {
|
|
7
|
+
true: {
|
|
8
|
+
root: string;
|
|
9
|
+
input: string;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
error: {
|
|
13
|
+
true: {
|
|
14
|
+
root: string;
|
|
15
|
+
};
|
|
16
|
+
false: {};
|
|
17
|
+
};
|
|
18
|
+
resize: {
|
|
19
|
+
true: {
|
|
20
|
+
input: string;
|
|
21
|
+
};
|
|
22
|
+
false: {
|
|
23
|
+
input: string;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
}, {
|
|
27
|
+
root: string;
|
|
28
|
+
input: string;
|
|
29
|
+
footer: string;
|
|
30
|
+
}, undefined, {
|
|
31
|
+
disabled: {
|
|
32
|
+
true: {
|
|
33
|
+
root: string;
|
|
34
|
+
input: string;
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
error: {
|
|
38
|
+
true: {
|
|
39
|
+
root: string;
|
|
40
|
+
};
|
|
41
|
+
false: {};
|
|
42
|
+
};
|
|
43
|
+
resize: {
|
|
44
|
+
true: {
|
|
45
|
+
input: string;
|
|
46
|
+
};
|
|
47
|
+
false: {
|
|
48
|
+
input: string;
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
}, {
|
|
52
|
+
root: string;
|
|
53
|
+
input: string;
|
|
54
|
+
footer: string;
|
|
55
|
+
}, tailwind_variants27.TVReturnType<{
|
|
56
|
+
disabled: {
|
|
57
|
+
true: {
|
|
58
|
+
root: string;
|
|
59
|
+
input: string;
|
|
60
|
+
};
|
|
61
|
+
};
|
|
62
|
+
error: {
|
|
63
|
+
true: {
|
|
64
|
+
root: string;
|
|
65
|
+
};
|
|
66
|
+
false: {};
|
|
67
|
+
};
|
|
68
|
+
resize: {
|
|
69
|
+
true: {
|
|
70
|
+
input: string;
|
|
71
|
+
};
|
|
72
|
+
false: {
|
|
73
|
+
input: string;
|
|
74
|
+
};
|
|
75
|
+
};
|
|
76
|
+
}, {
|
|
77
|
+
root: string;
|
|
78
|
+
input: string;
|
|
79
|
+
footer: string;
|
|
80
|
+
}, undefined, unknown, unknown, undefined>>;
|
|
81
|
+
type TextAreaVariants = VariantProps<typeof textArea>;
|
|
82
|
+
//#endregion
|
|
83
|
+
export { TextAreaVariants };
|
|
84
|
+
//# sourceMappingURL=TextArea.styles.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TextArea.styles.d.mts","names":[],"sources":["../../../src/components/TextArea/TextArea.styles.ts"],"mappings":";;;;cAEa,QAAA,EAkCX,mBAAA,CAlCmB,YAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCnB,mBAAA,CAAA,YAAA;;;;;;;;;;;;;;;;;;;;;;;;;;KAEU,gBAAA,GAAmB,YAAA,QAAoB,QAAA"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { tv } from "tailwind-variants";
|
|
2
|
+
|
|
3
|
+
//#region src/components/TextArea/TextArea.styles.ts
|
|
4
|
+
const textArea = tv({
|
|
5
|
+
slots: {
|
|
6
|
+
root: "bg-white rounded-md p-4 focus-within:ring-2 focus-within:ring-gray-600",
|
|
7
|
+
input: "w-full min-w-0 min-h-10 bg-transparent outline-none typo-body-16-regular text-gray-700 placeholder:text-gray-400 caret-gray-600",
|
|
8
|
+
footer: "mt-2"
|
|
9
|
+
},
|
|
10
|
+
variants: {
|
|
11
|
+
disabled: { true: {
|
|
12
|
+
root: "cursor-not-allowed opacity-50",
|
|
13
|
+
input: "cursor-not-allowed"
|
|
14
|
+
} },
|
|
15
|
+
error: {
|
|
16
|
+
true: { root: "ring-2 ring-red-400 focus-within:ring-red-400" },
|
|
17
|
+
false: {}
|
|
18
|
+
},
|
|
19
|
+
resize: {
|
|
20
|
+
true: { input: "resize-y" },
|
|
21
|
+
false: { input: "resize-none" }
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
defaultVariants: {
|
|
25
|
+
disabled: false,
|
|
26
|
+
error: false,
|
|
27
|
+
resize: true
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
|
|
31
|
+
//#endregion
|
|
32
|
+
export { textArea };
|
|
33
|
+
//# sourceMappingURL=TextArea.styles.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TextArea.styles.mjs","names":[],"sources":["../../../src/components/TextArea/TextArea.styles.ts"],"sourcesContent":["import { tv, type VariantProps } from 'tailwind-variants';\n\nexport const textArea = tv({\n slots: {\n root: 'bg-white rounded-md p-4 focus-within:ring-2 focus-within:ring-gray-600',\n input:\n 'w-full min-w-0 min-h-10 bg-transparent outline-none typo-body-16-regular text-gray-700 placeholder:text-gray-400 caret-gray-600',\n footer: 'mt-2',\n },\n variants: {\n disabled: {\n true: {\n root: 'cursor-not-allowed opacity-50',\n input: 'cursor-not-allowed',\n },\n },\n error: {\n true: {\n root: 'ring-2 ring-red-400 focus-within:ring-red-400',\n },\n false: {},\n },\n resize: {\n true: {\n input: 'resize-y',\n },\n false: {\n input: 'resize-none',\n },\n },\n },\n defaultVariants: {\n disabled: false,\n error: false,\n resize: true,\n },\n});\n\nexport type TextAreaVariants = VariantProps<typeof textArea>;\n"],"mappings":";;;AAEA,MAAa,WAAW,GAAG;CACzB,OAAO;EACL,MAAM;EACN,OACE;EACF,QAAQ;EACT;CACD,UAAU;EACR,UAAU,EACR,MAAM;GACJ,MAAM;GACN,OAAO;GACR,EACF;EACD,OAAO;GACL,MAAM,EACJ,MAAM,iDACP;GACD,OAAO,EAAE;GACV;EACD,QAAQ;GACN,MAAM,EACJ,OAAO,YACR;GACD,OAAO,EACL,OAAO,eACR;GACF;EACF;CACD,iBAAiB;EACf,UAAU;EACV,OAAO;EACP,QAAQ;EACT;CACF,CAAC"}
|