beyond-system 0.7.0 → 0.8.0
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/package.json +84 -84
- package/dist/colors/base-colors.d.ts +0 -50
- package/dist/colors/base-colors.js +0 -58
- package/dist/colors/base-colors.js.map +0 -1
- package/dist/colors/gradients.d.ts +0 -7
- package/dist/colors/gradients.js +0 -11
- package/dist/colors/gradients.js.map +0 -1
- package/dist/colors/index.d.ts +0 -3
- package/dist/colors/index.js +0 -7
- package/dist/colors/index.js.map +0 -1
- package/dist/colors/shadows.d.ts +0 -7
- package/dist/colors/shadows.js +0 -11
- package/dist/colors/shadows.js.map +0 -1
- package/dist/components/react/Calendar/Calendar.d.ts +0 -5
- package/dist/components/react/Calendar/Calendar.js +0 -12
- package/dist/components/react/Calendar/Calendar.js.map +0 -1
- package/dist/components/react/Calendar/Calendar.stories.d.ts +0 -7
- package/dist/components/react/Calendar/Calendar.stories.js +0 -35
- package/dist/components/react/Calendar/Calendar.stories.js.map +0 -1
- package/dist/components/react/Calendar/index.d.ts +0 -1
- package/dist/components/react/Calendar/index.js +0 -9
- package/dist/components/react/Calendar/index.js.map +0 -1
- package/dist/components/react/Checkbox/Checkbox.d.ts +0 -9
- package/dist/components/react/Checkbox/Checkbox.js +0 -27
- package/dist/components/react/Checkbox/Checkbox.js.map +0 -1
- package/dist/components/react/Checkbox/Checkbox.stories.d.ts +0 -7
- package/dist/components/react/Checkbox/Checkbox.stories.js +0 -51
- package/dist/components/react/Checkbox/Checkbox.stories.js.map +0 -1
- package/dist/components/react/Checkbox/index.d.ts +0 -1
- package/dist/components/react/Checkbox/index.js +0 -9
- package/dist/components/react/Checkbox/index.js.map +0 -1
- package/dist/components/react/Chip/Chip.d.ts +0 -11
- package/dist/components/react/Chip/Chip.js +0 -76
- package/dist/components/react/Chip/Chip.js.map +0 -1
- package/dist/components/react/Chip/Chip.stories.d.ts +0 -10
- package/dist/components/react/Chip/Chip.stories.js +0 -74
- package/dist/components/react/Chip/Chip.stories.js.map +0 -1
- package/dist/components/react/Chip/index.d.ts +0 -1
- package/dist/components/react/Chip/index.js +0 -9
- package/dist/components/react/Chip/index.js.map +0 -1
- package/dist/components/react/DatePicker/DatePicker.d.ts +0 -15
- package/dist/components/react/DatePicker/DatePicker.js +0 -42
- package/dist/components/react/DatePicker/DatePicker.js.map +0 -1
- package/dist/components/react/DatePicker/DatePicker.stories.d.ts +0 -7
- package/dist/components/react/DatePicker/DatePicker.stories.js +0 -46
- package/dist/components/react/DatePicker/DatePicker.stories.js.map +0 -1
- package/dist/components/react/DatePicker/index.d.ts +0 -1
- package/dist/components/react/DatePicker/index.js +0 -9
- package/dist/components/react/DatePicker/index.js.map +0 -1
- package/dist/components/react/DateRangeCalendar/DateRangeCalendar.d.ts +0 -4
- package/dist/components/react/DateRangeCalendar/DateRangeCalendar.js +0 -12
- package/dist/components/react/DateRangeCalendar/DateRangeCalendar.js.map +0 -1
- package/dist/components/react/DateRangeCalendar/DateRangeCalendar.stories.d.ts +0 -7
- package/dist/components/react/DateRangeCalendar/DateRangeCalendar.stories.js +0 -44
- package/dist/components/react/DateRangeCalendar/DateRangeCalendar.stories.js.map +0 -1
- package/dist/components/react/DateRangeCalendar/index.d.ts +0 -1
- package/dist/components/react/DateRangeCalendar/index.js +0 -9
- package/dist/components/react/DateRangeCalendar/index.js.map +0 -1
- package/dist/components/react/DateRangeCalendarWithPanel/DateRangeCalendarWithPanel.d.ts +0 -4
- package/dist/components/react/DateRangeCalendarWithPanel/DateRangeCalendarWithPanel.js +0 -90
- package/dist/components/react/DateRangeCalendarWithPanel/DateRangeCalendarWithPanel.js.map +0 -1
- package/dist/components/react/DateRangeCalendarWithPanel/DateRangeCalendarWithPanel.stories.d.ts +0 -7
- package/dist/components/react/DateRangeCalendarWithPanel/DateRangeCalendarWithPanel.stories.js +0 -44
- package/dist/components/react/DateRangeCalendarWithPanel/DateRangeCalendarWithPanel.stories.js.map +0 -1
- package/dist/components/react/DateRangeCalendarWithPanel/index.d.ts +0 -1
- package/dist/components/react/DateRangeCalendarWithPanel/index.js +0 -9
- package/dist/components/react/DateRangeCalendarWithPanel/index.js.map +0 -1
- package/dist/components/react/DateRangePicker/DateRangePicker.d.ts +0 -25
- package/dist/components/react/DateRangePicker/DateRangePicker.js +0 -56
- package/dist/components/react/DateRangePicker/DateRangePicker.js.map +0 -1
- package/dist/components/react/DateRangePicker/DateRangePicker.stories.d.ts +0 -7
- package/dist/components/react/DateRangePicker/DateRangePicker.stories.js +0 -51
- package/dist/components/react/DateRangePicker/DateRangePicker.stories.js.map +0 -1
- package/dist/components/react/DateRangePicker/index.d.ts +0 -1
- package/dist/components/react/DateRangePicker/index.js +0 -9
- package/dist/components/react/DateRangePicker/index.js.map +0 -1
- package/dist/components/react/DefaultButton/DefaultButton.d.ts +0 -12
- package/dist/components/react/DefaultButton/DefaultButton.js +0 -23
- package/dist/components/react/DefaultButton/DefaultButton.js.map +0 -1
- package/dist/components/react/DefaultButton/DefaultButton.stories.d.ts +0 -7
- package/dist/components/react/DefaultButton/DefaultButton.stories.js +0 -86
- package/dist/components/react/DefaultButton/DefaultButton.stories.js.map +0 -1
- package/dist/components/react/DefaultButton/DefaultButton.styles.d.ts +0 -15
- package/dist/components/react/DefaultButton/DefaultButton.styles.js +0 -9
- package/dist/components/react/DefaultButton/DefaultButton.styles.js.map +0 -1
- package/dist/components/react/DefaultButton/DefaultButton.variants.d.ts +0 -45
- package/dist/components/react/DefaultButton/DefaultButton.variants.js +0 -51
- package/dist/components/react/DefaultButton/DefaultButton.variants.js.map +0 -1
- package/dist/components/react/DefaultButton/index.d.ts +0 -1
- package/dist/components/react/DefaultButton/index.js +0 -9
- package/dist/components/react/DefaultButton/index.js.map +0 -1
- package/dist/components/react/IconButton/IconButton.d.ts +0 -10
- package/dist/components/react/IconButton/IconButton.js +0 -20
- package/dist/components/react/IconButton/IconButton.js.map +0 -1
- package/dist/components/react/IconButton/IconButton.stories.d.ts +0 -7
- package/dist/components/react/IconButton/IconButton.stories.js +0 -68
- package/dist/components/react/IconButton/IconButton.stories.js.map +0 -1
- package/dist/components/react/IconButton/IconButton.styles.d.ts +0 -13
- package/dist/components/react/IconButton/IconButton.styles.js +0 -9
- package/dist/components/react/IconButton/IconButton.styles.js.map +0 -1
- package/dist/components/react/IconButton/IconButton.variants.d.ts +0 -36
- package/dist/components/react/IconButton/IconButton.variants.js +0 -42
- package/dist/components/react/IconButton/IconButton.variants.js.map +0 -1
- package/dist/components/react/IconButton/index.d.ts +0 -1
- package/dist/components/react/IconButton/index.js +0 -9
- package/dist/components/react/IconButton/index.js.map +0 -1
- package/dist/components/react/Loader/Loader.d.ts +0 -11
- package/dist/components/react/Loader/Loader.js +0 -29
- package/dist/components/react/Loader/Loader.js.map +0 -1
- package/dist/components/react/Loader/Loader.stories.d.ts +0 -7
- package/dist/components/react/Loader/Loader.stories.js +0 -36
- package/dist/components/react/Loader/Loader.stories.js.map +0 -1
- package/dist/components/react/Loader/index.d.ts +0 -3
- package/dist/components/react/Loader/index.js +0 -7
- package/dist/components/react/Loader/index.js.map +0 -1
- package/dist/components/react/MonthPicker/MonthPicker.d.ts +0 -15
- package/dist/components/react/MonthPicker/MonthPicker.js +0 -68
- package/dist/components/react/MonthPicker/MonthPicker.js.map +0 -1
- package/dist/components/react/MonthPicker/MonthPicker.stories.d.ts +0 -7
- package/dist/components/react/MonthPicker/MonthPicker.stories.js +0 -34
- package/dist/components/react/MonthPicker/MonthPicker.stories.js.map +0 -1
- package/dist/components/react/MonthPicker/index.d.ts +0 -1
- package/dist/components/react/MonthPicker/index.js +0 -9
- package/dist/components/react/MonthPicker/index.js.map +0 -1
- package/dist/components/react/MultiSelect/MultiSelect.d.ts +0 -8
- package/dist/components/react/MultiSelect/MultiSelect.js +0 -56
- package/dist/components/react/MultiSelect/MultiSelect.js.map +0 -1
- package/dist/components/react/MultiSelect/MultiSelect.stories.d.ts +0 -7
- package/dist/components/react/MultiSelect/MultiSelect.stories.js +0 -37
- package/dist/components/react/MultiSelect/MultiSelect.stories.js.map +0 -1
- package/dist/components/react/MultiSelect/index.d.ts +0 -1
- package/dist/components/react/MultiSelect/index.js +0 -9
- package/dist/components/react/MultiSelect/index.js.map +0 -1
- package/dist/components/react/OutlineButton/OutlineButton.d.ts +0 -12
- package/dist/components/react/OutlineButton/OutlineButton.js +0 -23
- package/dist/components/react/OutlineButton/OutlineButton.js.map +0 -1
- package/dist/components/react/OutlineButton/OutlineButton.stories.d.ts +0 -7
- package/dist/components/react/OutlineButton/OutlineButton.stories.js +0 -86
- package/dist/components/react/OutlineButton/OutlineButton.stories.js.map +0 -1
- package/dist/components/react/OutlineButton/OutlineButton.styles.d.ts +0 -12
- package/dist/components/react/OutlineButton/OutlineButton.styles.js +0 -9
- package/dist/components/react/OutlineButton/OutlineButton.styles.js.map +0 -1
- package/dist/components/react/OutlineButton/OutlineButton.variants.d.ts +0 -36
- package/dist/components/react/OutlineButton/OutlineButton.variants.js +0 -42
- package/dist/components/react/OutlineButton/OutlineButton.variants.js.map +0 -1
- package/dist/components/react/OutlineButton/index.d.ts +0 -1
- package/dist/components/react/OutlineButton/index.js +0 -9
- package/dist/components/react/OutlineButton/index.js.map +0 -1
- package/dist/components/react/RadioInput/RadioInput.d.ts +0 -7
- package/dist/components/react/RadioInput/RadioInput.js +0 -14
- package/dist/components/react/RadioInput/RadioInput.js.map +0 -1
- package/dist/components/react/RadioInput/RadioInput.stories.d.ts +0 -7
- package/dist/components/react/RadioInput/RadioInput.stories.js +0 -53
- package/dist/components/react/RadioInput/RadioInput.stories.js.map +0 -1
- package/dist/components/react/RadioInput/RadioInput.styles.d.ts +0 -14
- package/dist/components/react/RadioInput/RadioInput.styles.js +0 -9
- package/dist/components/react/RadioInput/RadioInput.styles.js.map +0 -1
- package/dist/components/react/RadioInput/RadioInput.variants.d.ts +0 -21
- package/dist/components/react/RadioInput/RadioInput.variants.js +0 -26
- package/dist/components/react/RadioInput/RadioInput.variants.js.map +0 -1
- package/dist/components/react/RadioInput/index.d.ts +0 -1
- package/dist/components/react/RadioInput/index.js +0 -9
- package/dist/components/react/RadioInput/index.js.map +0 -1
- package/dist/components/react/Select/Select.d.ts +0 -8
- package/dist/components/react/Select/Select.js +0 -43
- package/dist/components/react/Select/Select.js.map +0 -1
- package/dist/components/react/Select/Select.stories.d.ts +0 -7
- package/dist/components/react/Select/Select.stories.js +0 -36
- package/dist/components/react/Select/Select.stories.js.map +0 -1
- package/dist/components/react/Select/index.d.ts +0 -1
- package/dist/components/react/Select/index.js +0 -9
- package/dist/components/react/Select/index.js.map +0 -1
- package/dist/components/react/Switch/Switch.d.ts +0 -10
- package/dist/components/react/Switch/Switch.js +0 -15
- package/dist/components/react/Switch/Switch.js.map +0 -1
- package/dist/components/react/Switch/Switch.stories.d.ts +0 -7
- package/dist/components/react/Switch/Switch.stories.js +0 -53
- package/dist/components/react/Switch/Switch.stories.js.map +0 -1
- package/dist/components/react/Switch/Switch.styles.d.ts +0 -13
- package/dist/components/react/Switch/Switch.styles.js +0 -11
- package/dist/components/react/Switch/Switch.styles.js.map +0 -1
- package/dist/components/react/Switch/Switch.variants.d.ts +0 -17
- package/dist/components/react/Switch/Switch.variants.js +0 -22
- package/dist/components/react/Switch/Switch.variants.js.map +0 -1
- package/dist/components/react/Switch/index.d.ts +0 -1
- package/dist/components/react/Switch/index.js +0 -9
- package/dist/components/react/Switch/index.js.map +0 -1
- package/dist/components/react/TelephoneInput/TelephoneInput.d.ts +0 -33
- package/dist/components/react/TelephoneInput/TelephoneInput.js +0 -57
- package/dist/components/react/TelephoneInput/TelephoneInput.js.map +0 -1
- package/dist/components/react/TelephoneInput/TelephoneInput.stories.d.ts +0 -6
- package/dist/components/react/TelephoneInput/TelephoneInput.stories.js +0 -68
- package/dist/components/react/TelephoneInput/TelephoneInput.stories.js.map +0 -1
- package/dist/components/react/TelephoneInput/index.d.ts +0 -1
- package/dist/components/react/TelephoneInput/index.js +0 -9
- package/dist/components/react/TelephoneInput/index.js.map +0 -1
- package/dist/components/react/TextArea/TextArea.d.ts +0 -12
- package/dist/components/react/TextArea/TextArea.js +0 -16
- package/dist/components/react/TextArea/TextArea.js.map +0 -1
- package/dist/components/react/TextArea/TextArea.stories.d.ts +0 -5
- package/dist/components/react/TextArea/TextArea.stories.js +0 -22
- package/dist/components/react/TextArea/TextArea.stories.js.map +0 -1
- package/dist/components/react/TextArea/index.d.ts +0 -1
- package/dist/components/react/TextArea/index.js +0 -9
- package/dist/components/react/TextArea/index.js.map +0 -1
- package/dist/components/react/TextInput/TextInput.d.ts +0 -36
- package/dist/components/react/TextInput/TextInput.js +0 -57
- package/dist/components/react/TextInput/TextInput.js.map +0 -1
- package/dist/components/react/TextInput/TextInput.stories.d.ts +0 -8
- package/dist/components/react/TextInput/TextInput.stories.js +0 -85
- package/dist/components/react/TextInput/TextInput.stories.js.map +0 -1
- package/dist/components/react/TextInput/index.d.ts +0 -1
- package/dist/components/react/TextInput/index.js +0 -9
- package/dist/components/react/TextInput/index.js.map +0 -1
- package/dist/components/react/TransparentButton/TransparentButton.d.ts +0 -7
- package/dist/components/react/TransparentButton/TransparentButton.js +0 -15
- package/dist/components/react/TransparentButton/TransparentButton.js.map +0 -1
- package/dist/components/react/TransparentButton/TransparentButton.stories.d.ts +0 -7
- package/dist/components/react/TransparentButton/TransparentButton.stories.js +0 -53
- package/dist/components/react/TransparentButton/TransparentButton.stories.js.map +0 -1
- package/dist/components/react/TransparentButton/TransparentButton.styles.d.ts +0 -10
- package/dist/components/react/TransparentButton/TransparentButton.styles.js +0 -9
- package/dist/components/react/TransparentButton/TransparentButton.styles.js.map +0 -1
- package/dist/components/react/TransparentButton/TransparentButton.variants.d.ts +0 -32
- package/dist/components/react/TransparentButton/TransparentButton.variants.js +0 -38
- package/dist/components/react/TransparentButton/TransparentButton.variants.js.map +0 -1
- package/dist/components/react/TransparentButton/index.d.ts +0 -1
- package/dist/components/react/TransparentButton/index.js +0 -9
- package/dist/components/react/TransparentButton/index.js.map +0 -1
- package/dist/components/react/index.d.ts +0 -18
- package/dist/components/react/index.js +0 -43
- package/dist/components/react/index.js.map +0 -1
- package/dist/config/index.d.ts +0 -1
- package/dist/config/index.js +0 -9
- package/dist/config/index.js.map +0 -1
- package/dist/config/tailwind.config.d.ts +0 -2
- package/dist/config/tailwind.config.js +0 -97
- package/dist/config/tailwind.config.js.map +0 -1
- package/dist/index.d.ts +0 -3
- package/dist/index.js +0 -7
- package/dist/index.js.map +0 -1
- package/dist/initialize.d.ts +0 -3
- package/dist/initialize.js +0 -6
- package/dist/initialize.js.map +0 -1
- package/dist/stories/base-colors/base-colors.stories.d.ts +0 -4
- package/dist/stories/base-colors/base-colors.stories.js +0 -65
- package/dist/stories/base-colors/base-colors.stories.js.map +0 -1
- package/dist/stories/base-colors/base-colors.stories.styles.d.ts +0 -2
- package/dist/stories/base-colors/base-colors.stories.styles.js +0 -9
- package/dist/stories/base-colors/base-colors.stories.styles.js.map +0 -1
- package/dist/stories/gradients/gradients.stories.d.ts +0 -4
- package/dist/stories/gradients/gradients.stories.js +0 -28
- package/dist/stories/gradients/gradients.stories.js.map +0 -1
- package/dist/stories/gradients/gradients.stories.styles.d.ts +0 -2
- package/dist/stories/gradients/gradients.stories.styles.js +0 -9
- package/dist/stories/gradients/gradients.stories.styles.js.map +0 -1
- package/dist/stories/shadows/shadows.stories.d.ts +0 -4
- package/dist/stories/shadows/shadows.stories.js +0 -26
- package/dist/stories/shadows/shadows.stories.js.map +0 -1
- package/dist/stories/shadows/shadows.stories.styles.d.ts +0 -2
- package/dist/stories/shadows/shadows.stories.styles.js +0 -9
- package/dist/stories/shadows/shadows.stories.styles.js.map +0 -1
- package/dist/styles/global.css +0 -1104
- package/dist/web/border.d.ts +0 -12
- package/dist/web/border.js +0 -16
- package/dist/web/border.js.map +0 -1
- package/dist/web/font.d.ts +0 -34
- package/dist/web/font.js +0 -38
- package/dist/web/font.js.map +0 -1
- package/dist/web/index.d.ts +0 -2
- package/dist/web/index.js +0 -6
- package/dist/web/index.js.map +0 -1
package/package.json
CHANGED
|
@@ -1,84 +1,84 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "beyond-system",
|
|
3
|
-
"author": "Growth Machine",
|
|
4
|
-
"version": "0.
|
|
5
|
-
"private": false,
|
|
6
|
-
"main": "./dist/index.js",
|
|
7
|
-
"module": "./dist/index.js",
|
|
8
|
-
"types": "./dist/index.d.ts",
|
|
9
|
-
"license": "MIT",
|
|
10
|
-
"scripts": {
|
|
11
|
-
"dev": "start-storybook -p 6006",
|
|
12
|
-
"build:tailwind": "tailwindcss -i ./src/styles/global.css -o ./dist/styles/global.css",
|
|
13
|
-
"build:module": "tsc --project tsconfig.json && tscpaths -p tsconfig.json -s ./src -o ./dist",
|
|
14
|
-
"build": "yarn run build:tailwind && yarn run build:module",
|
|
15
|
-
"lint": "eslint .",
|
|
16
|
-
"storybook": "start-storybook -p 6006 -s public",
|
|
17
|
-
"build-storybook": "build-storybook -s public",
|
|
18
|
-
"serve-storybook": "serve storybook-static"
|
|
19
|
-
},
|
|
20
|
-
"peerDependencies": {
|
|
21
|
-
"react": ">=16"
|
|
22
|
-
},
|
|
23
|
-
"files": [
|
|
24
|
-
"dist",
|
|
25
|
-
"LICENSE",
|
|
26
|
-
"README.md"
|
|
27
|
-
],
|
|
28
|
-
"resolutions": {
|
|
29
|
-
"@storybook/react-docgen-typescript-plugin": "1.0.6--canary.9.cd77847.0",
|
|
30
|
-
"styled-components": "^5"
|
|
31
|
-
},
|
|
32
|
-
"dependencies": {
|
|
33
|
-
"@radix-ui/react-checkbox": "^1.0.3",
|
|
34
|
-
"@radix-ui/react-dropdown-menu": "^2.0.4",
|
|
35
|
-
"@radix-ui/react-radio-group": "^1.1.2",
|
|
36
|
-
"@radix-ui/react-slot": "^1.0.1",
|
|
37
|
-
"@radix-ui/react-switch": "^1.0.2",
|
|
38
|
-
"clsx": "^1.2.1",
|
|
39
|
-
"date-fns": "^2.29.3",
|
|
40
|
-
"moment": "^2.29.4",
|
|
41
|
-
"next": "13.2.4",
|
|
42
|
-
"postcss": "^8.4.23",
|
|
43
|
-
"postcss-loader": "^7.1.0",
|
|
44
|
-
"react": "18.2.0",
|
|
45
|
-
"react-date-range": "^1.4.0",
|
|
46
|
-
"react-dom": "18.2.0",
|
|
47
|
-
"react-icons": "^4.8.0",
|
|
48
|
-
"react-input-mask": "^2.0.4",
|
|
49
|
-
"react-select": "^5.7.2",
|
|
50
|
-
"styled-components": "^5.3.9",
|
|
51
|
-
"tailwindcss": "^3.2.7",
|
|
52
|
-
"typescript": "5.0.2"
|
|
53
|
-
},
|
|
54
|
-
"devDependencies": {
|
|
55
|
-
"@babel/core": "^7.21.3",
|
|
56
|
-
"@storybook/addon-actions": "^6.5.16",
|
|
57
|
-
"@storybook/addon-essentials": "^6.5.16",
|
|
58
|
-
"@storybook/addon-interactions": "^6.5.16",
|
|
59
|
-
"@storybook/addon-links": "^6.5.16",
|
|
60
|
-
"@storybook/addon-styling": "^0.3.2",
|
|
61
|
-
"@storybook/builder-webpack5": "^6.5.16",
|
|
62
|
-
"@storybook/manager-webpack5": "^6.5.16",
|
|
63
|
-
"@storybook/react": "^6.5.16",
|
|
64
|
-
"@storybook/testing-library": "^0.0.13",
|
|
65
|
-
"@types/node": "18.15.5",
|
|
66
|
-
"@types/react": "18.0.28",
|
|
67
|
-
"@types/react-date-range": "^1.4.4",
|
|
68
|
-
"@types/react-dom": "18.0.11",
|
|
69
|
-
"@types/react-input-mask": "^3.0.2",
|
|
70
|
-
"@types/styled-components": "^5.1.26",
|
|
71
|
-
"@typescript-eslint/eslint-plugin": "^5.56.0",
|
|
72
|
-
"autoprefixer": "^10.4.14",
|
|
73
|
-
"babel-loader": "^8.3.0",
|
|
74
|
-
"eslint": "8.36.0",
|
|
75
|
-
"eslint-config-next": "13.2.4",
|
|
76
|
-
"eslint-config-prettier": "^8.8.0",
|
|
77
|
-
"eslint-plugin-prettier": "^4.2.1",
|
|
78
|
-
"eslint-plugin-storybook": "^0.6.11",
|
|
79
|
-
"prettier": "^2.8.6",
|
|
80
|
-
"tsconfig-paths": "^4.2.0",
|
|
81
|
-
"tsconfig-paths-webpack-plugin": "^4.0.1",
|
|
82
|
-
"tscpaths": "^0.0.9"
|
|
83
|
-
}
|
|
84
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "beyond-system",
|
|
3
|
+
"author": "Growth Machine",
|
|
4
|
+
"version": "0.8.0",
|
|
5
|
+
"private": false,
|
|
6
|
+
"main": "./dist/index.js",
|
|
7
|
+
"module": "./dist/index.js",
|
|
8
|
+
"types": "./dist/index.d.ts",
|
|
9
|
+
"license": "MIT",
|
|
10
|
+
"scripts": {
|
|
11
|
+
"dev": "start-storybook -p 6006",
|
|
12
|
+
"build:tailwind": "tailwindcss -i ./src/styles/global.css -o ./dist/styles/global.css",
|
|
13
|
+
"build:module": "tsc --project tsconfig.json && tscpaths -p tsconfig.json -s ./src -o ./dist",
|
|
14
|
+
"build": "yarn run build:tailwind && yarn run build:module",
|
|
15
|
+
"lint": "eslint .",
|
|
16
|
+
"storybook": "start-storybook -p 6006 -s public",
|
|
17
|
+
"build-storybook": "build-storybook -s public",
|
|
18
|
+
"serve-storybook": "serve storybook-static"
|
|
19
|
+
},
|
|
20
|
+
"peerDependencies": {
|
|
21
|
+
"react": ">=16"
|
|
22
|
+
},
|
|
23
|
+
"files": [
|
|
24
|
+
"dist",
|
|
25
|
+
"LICENSE",
|
|
26
|
+
"README.md"
|
|
27
|
+
],
|
|
28
|
+
"resolutions": {
|
|
29
|
+
"@storybook/react-docgen-typescript-plugin": "1.0.6--canary.9.cd77847.0",
|
|
30
|
+
"styled-components": "^5"
|
|
31
|
+
},
|
|
32
|
+
"dependencies": {
|
|
33
|
+
"@radix-ui/react-checkbox": "^1.0.3",
|
|
34
|
+
"@radix-ui/react-dropdown-menu": "^2.0.4",
|
|
35
|
+
"@radix-ui/react-radio-group": "^1.1.2",
|
|
36
|
+
"@radix-ui/react-slot": "^1.0.1",
|
|
37
|
+
"@radix-ui/react-switch": "^1.0.2",
|
|
38
|
+
"clsx": "^1.2.1",
|
|
39
|
+
"date-fns": "^2.29.3",
|
|
40
|
+
"moment": "^2.29.4",
|
|
41
|
+
"next": "13.2.4",
|
|
42
|
+
"postcss": "^8.4.23",
|
|
43
|
+
"postcss-loader": "^7.1.0",
|
|
44
|
+
"react": "18.2.0",
|
|
45
|
+
"react-date-range": "^1.4.0",
|
|
46
|
+
"react-dom": "18.2.0",
|
|
47
|
+
"react-icons": "^4.8.0",
|
|
48
|
+
"react-input-mask": "^2.0.4",
|
|
49
|
+
"react-select": "^5.7.2",
|
|
50
|
+
"styled-components": "^5.3.9",
|
|
51
|
+
"tailwindcss": "^3.2.7",
|
|
52
|
+
"typescript": "5.0.2"
|
|
53
|
+
},
|
|
54
|
+
"devDependencies": {
|
|
55
|
+
"@babel/core": "^7.21.3",
|
|
56
|
+
"@storybook/addon-actions": "^6.5.16",
|
|
57
|
+
"@storybook/addon-essentials": "^6.5.16",
|
|
58
|
+
"@storybook/addon-interactions": "^6.5.16",
|
|
59
|
+
"@storybook/addon-links": "^6.5.16",
|
|
60
|
+
"@storybook/addon-styling": "^0.3.2",
|
|
61
|
+
"@storybook/builder-webpack5": "^6.5.16",
|
|
62
|
+
"@storybook/manager-webpack5": "^6.5.16",
|
|
63
|
+
"@storybook/react": "^6.5.16",
|
|
64
|
+
"@storybook/testing-library": "^0.0.13",
|
|
65
|
+
"@types/node": "18.15.5",
|
|
66
|
+
"@types/react": "18.0.28",
|
|
67
|
+
"@types/react-date-range": "^1.4.4",
|
|
68
|
+
"@types/react-dom": "18.0.11",
|
|
69
|
+
"@types/react-input-mask": "^3.0.2",
|
|
70
|
+
"@types/styled-components": "^5.1.26",
|
|
71
|
+
"@typescript-eslint/eslint-plugin": "^5.56.0",
|
|
72
|
+
"autoprefixer": "^10.4.14",
|
|
73
|
+
"babel-loader": "^8.3.0",
|
|
74
|
+
"eslint": "8.36.0",
|
|
75
|
+
"eslint-config-next": "13.2.4",
|
|
76
|
+
"eslint-config-prettier": "^8.8.0",
|
|
77
|
+
"eslint-plugin-prettier": "^4.2.1",
|
|
78
|
+
"eslint-plugin-storybook": "^0.6.11",
|
|
79
|
+
"prettier": "^2.8.6",
|
|
80
|
+
"tsconfig-paths": "^4.2.0",
|
|
81
|
+
"tsconfig-paths-webpack-plugin": "^4.0.1",
|
|
82
|
+
"tscpaths": "^0.0.9"
|
|
83
|
+
}
|
|
84
|
+
}
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
export declare const COLORS: {
|
|
2
|
-
PRIMARY: string;
|
|
3
|
-
SECONDARY: string;
|
|
4
|
-
TEXT_PRIMARY: string;
|
|
5
|
-
TEXT_SECONDARY: string;
|
|
6
|
-
TEXT_ACCENT: string;
|
|
7
|
-
GROWTH_DARK: string;
|
|
8
|
-
GROWTH_MID: string;
|
|
9
|
-
GROWTH_LIGHT: string;
|
|
10
|
-
GROWTH_LIGHTER: string;
|
|
11
|
-
NEUTRAL_LOW: string;
|
|
12
|
-
NEUTRAL_DARKER: string;
|
|
13
|
-
NEUTRAL_DARK: string;
|
|
14
|
-
NEUTRAL_MID: string;
|
|
15
|
-
NEUTRAL_LIGHT: string;
|
|
16
|
-
NEUTRAL_LIGHTER: string;
|
|
17
|
-
NEUTRAL_HIGH: string;
|
|
18
|
-
INFO_DARK: string;
|
|
19
|
-
INFO_MID: string;
|
|
20
|
-
ALERT_DARK: string;
|
|
21
|
-
ALERT_MID: string;
|
|
22
|
-
ATTENTION_DARK: string;
|
|
23
|
-
ATTENTION_MID: string;
|
|
24
|
-
NICE_DARK: string;
|
|
25
|
-
NICE_MID: string;
|
|
26
|
-
BETTER_DARK: string;
|
|
27
|
-
BETTER_MID: string;
|
|
28
|
-
DASHBOARD: {
|
|
29
|
-
CLOUDY_LIGHT: string;
|
|
30
|
-
CLOUDY_MID: string;
|
|
31
|
-
GRASS_LIGHT: string;
|
|
32
|
-
GRASS_MID: string;
|
|
33
|
-
STRAWBERRY_LIGHT: string;
|
|
34
|
-
STRAWBERRY_MID: string;
|
|
35
|
-
EVENING_LIGHT: string;
|
|
36
|
-
EVENING_MID: string;
|
|
37
|
-
BUBBLEGUM_LIGHT: string;
|
|
38
|
-
BUBBLEGUM_MID: string;
|
|
39
|
-
BLUEY_LIGHT: string;
|
|
40
|
-
BLUEY_MID: string;
|
|
41
|
-
SUNBEAM_LIGHT: string;
|
|
42
|
-
SUNBEAM_MID: string;
|
|
43
|
-
POOLPARTY_LIGHT: string;
|
|
44
|
-
POOLPARTY_MID: string;
|
|
45
|
-
LAVENDER_LIGHT: string;
|
|
46
|
-
LAVENDER_MID: string;
|
|
47
|
-
PUMPKIN_LIGHT: string;
|
|
48
|
-
PUMPKIN_MID: string;
|
|
49
|
-
};
|
|
50
|
-
};
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.COLORS = void 0;
|
|
4
|
-
var tslib_1 = require("tslib");
|
|
5
|
-
var BASE_COLORS = {
|
|
6
|
-
GROWTH_DARK: '#EC6E0E',
|
|
7
|
-
GROWTH_MID: '#FF7D12',
|
|
8
|
-
GROWTH_LIGHT: '#FF9A47',
|
|
9
|
-
GROWTH_LIGHTER: '#FCE3CF',
|
|
10
|
-
NEUTRAL_LOW: '#333333',
|
|
11
|
-
NEUTRAL_DARKER: '#454545',
|
|
12
|
-
NEUTRAL_DARK: '#8E96A2',
|
|
13
|
-
NEUTRAL_MID: '#BFC4C9',
|
|
14
|
-
NEUTRAL_LIGHT: '#E2E5EA',
|
|
15
|
-
NEUTRAL_LIGHTER: '#F7F9FC',
|
|
16
|
-
NEUTRAL_HIGH: '#FFFFFF',
|
|
17
|
-
INFO_DARK: '#2E65E5',
|
|
18
|
-
INFO_MID: '#5F8EFF',
|
|
19
|
-
ALERT_DARK: '#cc0000',
|
|
20
|
-
ALERT_MID: '#FC0303',
|
|
21
|
-
ATTENTION_DARK: '#EBB400',
|
|
22
|
-
ATTENTION_MID: '#FFD600',
|
|
23
|
-
NICE_DARK: '#2BB048',
|
|
24
|
-
NICE_MID: '#40D05F',
|
|
25
|
-
BETTER_DARK: '#0D6320',
|
|
26
|
-
BETTER_MID: '#12872C',
|
|
27
|
-
DASHBOARD: {
|
|
28
|
-
CLOUDY_LIGHT: '#B4DAFB',
|
|
29
|
-
CLOUDY_MID: '#70B2EB',
|
|
30
|
-
GRASS_LIGHT: '#64DEA2',
|
|
31
|
-
GRASS_MID: '#2E9E67',
|
|
32
|
-
STRAWBERRY_LIGHT: '#FF6073',
|
|
33
|
-
STRAWBERRY_MID: '#F32039',
|
|
34
|
-
EVENING_LIGHT: '#808BB5',
|
|
35
|
-
EVENING_MID: '#586184',
|
|
36
|
-
BUBBLEGUM_LIGHT: '#F39EE9',
|
|
37
|
-
BUBBLEGUM_MID: '#E16BD3',
|
|
38
|
-
BLUEY_LIGHT: '#88A6FF',
|
|
39
|
-
BLUEY_MID: '#4F6DC4',
|
|
40
|
-
SUNBEAM_LIGHT: '#FBE15D',
|
|
41
|
-
SUNBEAM_MID: '#FFBA42',
|
|
42
|
-
POOLPARTY_LIGHT: '#76CDD6',
|
|
43
|
-
POOLPARTY_MID: '#35A5B1',
|
|
44
|
-
LAVENDER_LIGHT: '#AB9DF7',
|
|
45
|
-
LAVENDER_MID: '#8367E9',
|
|
46
|
-
PUMPKIN_LIGHT: '#FFB172',
|
|
47
|
-
PUMPKIN_MID: '#FF841F',
|
|
48
|
-
},
|
|
49
|
-
};
|
|
50
|
-
var COLOR_ALIASES = {
|
|
51
|
-
PRIMARY: BASE_COLORS.GROWTH_MID,
|
|
52
|
-
SECONDARY: BASE_COLORS.NEUTRAL_DARKER,
|
|
53
|
-
TEXT_PRIMARY: BASE_COLORS.NEUTRAL_DARKER,
|
|
54
|
-
TEXT_SECONDARY: BASE_COLORS.NEUTRAL_DARK,
|
|
55
|
-
TEXT_ACCENT: BASE_COLORS.GROWTH_MID,
|
|
56
|
-
};
|
|
57
|
-
exports.COLORS = tslib_1.__assign(tslib_1.__assign({}, BASE_COLORS), COLOR_ALIASES);
|
|
58
|
-
//# sourceMappingURL=base-colors.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"base-colors.js","sourceRoot":"","sources":["../../src/colors/base-colors.ts"],"names":[],"mappings":";;;;AAAA,IAAM,WAAW,GAAG;IAClB,WAAW,EAAE,SAAS;IACtB,UAAU,EAAE,SAAS;IACrB,YAAY,EAAE,SAAS;IACvB,cAAc,EAAE,SAAS;IAEzB,WAAW,EAAE,SAAS;IACtB,cAAc,EAAE,SAAS;IACzB,YAAY,EAAE,SAAS;IACvB,WAAW,EAAE,SAAS;IACtB,aAAa,EAAE,SAAS;IACxB,eAAe,EAAE,SAAS;IAC1B,YAAY,EAAE,SAAS;IAEvB,SAAS,EAAE,SAAS;IACpB,QAAQ,EAAE,SAAS;IAEnB,UAAU,EAAE,SAAS;IACrB,SAAS,EAAE,SAAS;IAEpB,cAAc,EAAE,SAAS;IACzB,aAAa,EAAE,SAAS;IAExB,SAAS,EAAE,SAAS;IACpB,QAAQ,EAAE,SAAS;IAEnB,WAAW,EAAE,SAAS;IACtB,UAAU,EAAE,SAAS;IAErB,SAAS,EAAE;QACT,YAAY,EAAE,SAAS;QACvB,UAAU,EAAE,SAAS;QAErB,WAAW,EAAE,SAAS;QACtB,SAAS,EAAE,SAAS;QAEpB,gBAAgB,EAAE,SAAS;QAC3B,cAAc,EAAE,SAAS;QAEzB,aAAa,EAAE,SAAS;QACxB,WAAW,EAAE,SAAS;QAEtB,eAAe,EAAE,SAAS;QAC1B,aAAa,EAAE,SAAS;QAExB,WAAW,EAAE,SAAS;QACtB,SAAS,EAAE,SAAS;QAEpB,aAAa,EAAE,SAAS;QACxB,WAAW,EAAE,SAAS;QAEtB,eAAe,EAAE,SAAS;QAC1B,aAAa,EAAE,SAAS;QAExB,cAAc,EAAE,SAAS;QACzB,YAAY,EAAE,SAAS;QAEvB,aAAa,EAAE,SAAS;QACxB,WAAW,EAAE,SAAS;KACvB;CACF,CAAA;AAED,IAAM,aAAa,GAAG;IACpB,OAAO,EAAE,WAAW,CAAC,UAAU;IAC/B,SAAS,EAAE,WAAW,CAAC,cAAc;IAErC,YAAY,EAAE,WAAW,CAAC,cAAc;IACxC,cAAc,EAAE,WAAW,CAAC,YAAY;IACxC,WAAW,EAAE,WAAW,CAAC,UAAU;CACpC,CAAA;AAEY,QAAA,MAAM,yCACd,WAAW,GACX,aAAa,EACjB"}
|
package/dist/colors/gradients.js
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.GRADIENTS = void 0;
|
|
4
|
-
exports.GRADIENTS = {
|
|
5
|
-
GROWTH_BACKGROUND: 'linear-gradient(212.52deg, #FFFFFF 11.19%, #FDF4ED 66.29%);',
|
|
6
|
-
ALERT: 'linear-gradient(261.76deg, #FC0303 2.02%, #AF0808 98.77%);',
|
|
7
|
-
ATTENTION: 'linear-gradient(261.76deg, #FFB800 2.02%, #EA7306 98.77%);',
|
|
8
|
-
NICE: 'linear-gradient(261.76deg, #40D05F 2.02%, #159130 98.77%);',
|
|
9
|
-
BETTER: 'linear-gradient(261.76deg, #179733 2.02%, #016016 98.77%);',
|
|
10
|
-
};
|
|
11
|
-
//# sourceMappingURL=gradients.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"gradients.js","sourceRoot":"","sources":["../../src/colors/gradients.ts"],"names":[],"mappings":";;;AAAa,QAAA,SAAS,GAAG;IACvB,iBAAiB,EACf,6DAA6D;IAE/D,KAAK,EAAE,4DAA4D;IACnE,SAAS,EAAE,4DAA4D;IACvE,IAAI,EAAE,4DAA4D;IAClE,MAAM,EAAE,4DAA4D;CACrE,CAAA"}
|
package/dist/colors/index.d.ts
DELETED
package/dist/colors/index.js
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
var tslib_1 = require("tslib");
|
|
4
|
-
tslib_1.__exportStar(require("./base-colors"), exports);
|
|
5
|
-
tslib_1.__exportStar(require("./gradients"), exports);
|
|
6
|
-
tslib_1.__exportStar(require("./shadows"), exports);
|
|
7
|
-
//# sourceMappingURL=index.js.map
|
package/dist/colors/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/colors/index.ts"],"names":[],"mappings":";;;AAAA,wDAA6B;AAC7B,sDAA2B;AAC3B,oDAAyB"}
|
package/dist/colors/shadows.d.ts
DELETED
package/dist/colors/shadows.js
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SHADOWS = void 0;
|
|
4
|
-
exports.SHADOWS = {
|
|
5
|
-
BOXES: '2px 2px 15px rgba(0, 0, 0, 0.08);',
|
|
6
|
-
POPUPS: '0px 0px 5px rgba(0, 0, 0, 0.2);',
|
|
7
|
-
HOVER: '1px 1px 2px rgba(0, 0, 0, 0.25), 2px 2px 10px rgba(0, 0, 0, 0.15);',
|
|
8
|
-
NAVBAR: '0px 1px 4px rgba(134, 21, 21, 0.15);',
|
|
9
|
-
SIDEBAR: '1px 0px 4px rgba(134, 21, 21, 0.15);',
|
|
10
|
-
};
|
|
11
|
-
//# sourceMappingURL=shadows.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"shadows.js","sourceRoot":"","sources":["../../src/colors/shadows.ts"],"names":[],"mappings":";;;AAAa,QAAA,OAAO,GAAG;IACrB,KAAK,EAAE,mCAAmC;IAC1C,MAAM,EAAE,iCAAiC;IAEzC,KAAK,EAAE,oEAAoE;IAE3E,MAAM,EAAE,sCAAsC;IAC9C,OAAO,EAAE,sCAAsC;CAChD,CAAA"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
var tslib_1 = require("tslib");
|
|
4
|
-
var react_1 = tslib_1.__importDefault(require("react"));
|
|
5
|
-
var react_date_range_1 = require("react-date-range");
|
|
6
|
-
var pt_BR_1 = tslib_1.__importDefault(require("date-fns/locale/pt-BR"));
|
|
7
|
-
var colors_1 = require("../../../colors");
|
|
8
|
-
var Calendar = function (props) {
|
|
9
|
-
return (react_1.default.createElement(react_date_range_1.Calendar, tslib_1.__assign({ editableDateInputs: true, color: colors_1.COLORS.GROWTH_MID, locale: pt_BR_1.default, dateDisplayFormat: "dd/MM/yyyy", dayDisplayFormat: "dd", weekdayDisplayFormat: "eeeee" }, props)));
|
|
10
|
-
};
|
|
11
|
-
exports.default = Calendar;
|
|
12
|
-
//# sourceMappingURL=Calendar.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Calendar.js","sourceRoot":"","sources":["../../../../src/components/react/Calendar/Calendar.tsx"],"names":[],"mappings":";;;AAAA,wDAAyB;AACzB,qDAAgE;AAEhE,wEAA4C;AAE5C,mCAAiC;AAIjC,IAAM,QAAQ,GAAG,UAAC,KAAY;IAC5B,OAAO,CACL,8BAAC,2BAAiB,qBAChB,kBAAkB,EAAE,IAAI,EACxB,KAAK,EAAE,eAAM,CAAC,UAAU,EACxB,MAAM,EAAE,eAAQ,EAChB,iBAAiB,EAAC,YAAY,EAC9B,gBAAgB,EAAC,IAAI,EACrB,oBAAoB,EAAC,OAAO,IACxB,KAAK,EACT,CACH,CAAA;AACH,CAAC,CAAA;AAED,kBAAe,QAAQ,CAAA"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { Meta } from '@storybook/react/types-6-0';
|
|
3
|
-
import CalendarComponent from './Calendar';
|
|
4
|
-
type Props = React.ComponentProps<typeof CalendarComponent>;
|
|
5
|
-
export declare const Calendar: (props: Props) => JSX.Element;
|
|
6
|
-
declare const _default: Meta;
|
|
7
|
-
export default _default;
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Calendar = void 0;
|
|
4
|
-
var tslib_1 = require("tslib");
|
|
5
|
-
var react_1 = tslib_1.__importDefault(require("react"));
|
|
6
|
-
var Calendar_1 = tslib_1.__importDefault(require("./Calendar"));
|
|
7
|
-
var Calendar = function (props) {
|
|
8
|
-
var _a = react_1.default.useState(new Date()), date = _a[0], setDate = _a[1];
|
|
9
|
-
return react_1.default.createElement(Calendar_1.default, tslib_1.__assign({}, props, { date: date, onChange: setDate }));
|
|
10
|
-
};
|
|
11
|
-
exports.Calendar = Calendar;
|
|
12
|
-
exports.default = {
|
|
13
|
-
title: 'Date Inputs/Calendar',
|
|
14
|
-
component: exports.Calendar,
|
|
15
|
-
args: {
|
|
16
|
-
direction: undefined,
|
|
17
|
-
months: 1,
|
|
18
|
-
},
|
|
19
|
-
argTypes: {
|
|
20
|
-
direction: {
|
|
21
|
-
control: {
|
|
22
|
-
type: 'select',
|
|
23
|
-
options: ['horizontal', 'vertical', undefined],
|
|
24
|
-
},
|
|
25
|
-
},
|
|
26
|
-
months: {
|
|
27
|
-
control: {
|
|
28
|
-
type: 'number',
|
|
29
|
-
min: 1,
|
|
30
|
-
},
|
|
31
|
-
},
|
|
32
|
-
onChange: { action: 'changed' },
|
|
33
|
-
},
|
|
34
|
-
};
|
|
35
|
-
//# sourceMappingURL=Calendar.stories.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Calendar.stories.js","sourceRoot":"","sources":["../../../../src/components/react/Calendar/Calendar.stories.tsx"],"names":[],"mappings":";;;;AAAA,wDAAyB;AAGzB,gEAA0C;AAInC,IAAM,QAAQ,GAAG,UAAC,KAAY;IAC7B,IAAA,KAAkB,eAAK,CAAC,QAAQ,CAAO,IAAI,IAAI,EAAE,CAAC,EAAjD,IAAI,QAAA,EAAE,OAAO,QAAoC,CAAA;IAExD,OAAO,8BAAC,kBAAiB,uBAAK,KAAK,IAAE,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,OAAO,IAAI,CAAA;AACxE,CAAC,CAAA;AAJY,QAAA,QAAQ,YAIpB;AAED,kBAAe;IACb,KAAK,EAAE,sBAAsB;IAC7B,SAAS,EAAE,gBAAQ;IACnB,IAAI,EAAE;QACJ,SAAS,EAAE,SAAS;QACpB,MAAM,EAAE,CAAC;KACV;IACD,QAAQ,EAAE;QACR,SAAS,EAAE;YACT,OAAO,EAAE;gBACP,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,CAAC,YAAY,EAAE,UAAU,EAAE,SAAS,CAAC;aAC/C;SACF;QACD,MAAM,EAAE;YACN,OAAO,EAAE;gBACP,IAAI,EAAE,QAAQ;gBACd,GAAG,EAAE,CAAC;aACP;SACF;QACD,QAAQ,EAAE,EAAE,MAAM,EAAE,SAAS,EAAE;KAChC;CACM,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from './Calendar';
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.default = void 0;
|
|
7
|
-
var Calendar_1 = require("./Calendar");
|
|
8
|
-
Object.defineProperty(exports, "default", { enumerable: true, get: function () { return __importDefault(Calendar_1).default; } });
|
|
9
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/react/Calendar/index.tsx"],"names":[],"mappings":";;;;;;AAAA,uCAAoC;AAA3B,oHAAA,OAAO,OAAA"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import * as RadixCheckbox from '@radix-ui/react-checkbox';
|
|
3
|
-
type RootCheckboxProps = React.ComponentProps<typeof RadixCheckbox.Root>;
|
|
4
|
-
type CheckboxProps = {
|
|
5
|
-
size?: 'SM' | 'MD';
|
|
6
|
-
isErrored?: boolean;
|
|
7
|
-
} & RootCheckboxProps;
|
|
8
|
-
declare const Checkbox: ({ size, isErrored, ...props }: CheckboxProps) => JSX.Element;
|
|
9
|
-
export default Checkbox;
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
var tslib_1 = require("tslib");
|
|
4
|
-
var react_1 = tslib_1.__importDefault(require("react"));
|
|
5
|
-
var md_1 = require("react-icons/md");
|
|
6
|
-
var RadixCheckbox = tslib_1.__importStar(require("@radix-ui/react-checkbox"));
|
|
7
|
-
var clsx_1 = tslib_1.__importDefault(require("clsx"));
|
|
8
|
-
var Checkbox = function (_a) {
|
|
9
|
-
var _b = _a.size, size = _b === void 0 ? 'MD' : _b, _c = _a.isErrored, isErrored = _c === void 0 ? false : _c, props = tslib_1.__rest(_a, ["size", "isErrored"]);
|
|
10
|
-
return (react_1.default.createElement(RadixCheckbox.Root, tslib_1.__assign({}, props, { className: (0, clsx_1.default)([
|
|
11
|
-
'border-solid flex items-center justify-center transition aspect-square border rounded-sm bg-neutral-high border-neutral-dark',
|
|
12
|
-
'hover:bg-neutral-lighter',
|
|
13
|
-
'data-[state=checked]:bg-info-mid data-[state=checked]:border-info-mid',
|
|
14
|
-
'data-[state=checked]:hover:bg-info-dark data-[state=checked]:hover:border-info-dark',
|
|
15
|
-
'disabled:bg-neutral-light data-[state=checked]:disabled:bg-neutral-mid data-[state=checked]:disabled:border-neutral-dark disabled:border-neutral-mid disabled:pointer-events-none',
|
|
16
|
-
], {
|
|
17
|
-
'w-3 h-3': size === 'SM',
|
|
18
|
-
'w-4 h-4': size === 'MD',
|
|
19
|
-
}, { 'outline outline-2 outline-alert-mid': isErrored === true }, props.className) }),
|
|
20
|
-
react_1.default.createElement(RadixCheckbox.Indicator, { className: (0, clsx_1.default)([
|
|
21
|
-
'flex items-center justify-center transition aspect-square',
|
|
22
|
-
'data-[state=checked]:text-growth-mid ',
|
|
23
|
-
], { 'text-xxs': size === 'SM' }, { 'text-xs': size === 'MD' }) },
|
|
24
|
-
react_1.default.createElement(md_1.MdOutlineCheck, { className: "text-neutral-high fill-neutral-high" }))));
|
|
25
|
-
};
|
|
26
|
-
exports.default = Checkbox;
|
|
27
|
-
//# sourceMappingURL=Checkbox.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Checkbox.js","sourceRoot":"","sources":["../../../../src/components/react/Checkbox/Checkbox.tsx"],"names":[],"mappings":";;;AAAA,wDAAyB;AACzB,qCAA+C;AAC/C,8EAAyD;AAEzD,sDAAuB;AAQvB,IAAM,QAAQ,GAAG,UAAC,EAIF;IAHd,IAAA,YAAW,EAAX,IAAI,mBAAG,IAAI,KAAA,EACX,iBAAiB,EAAjB,SAAS,mBAAG,KAAK,KAAA,EACd,KAAK,sBAHQ,qBAIjB,CADS;IAER,OAAO,CACL,8BAAC,aAAa,CAAC,IAAI,uBACb,KAAK,IACT,SAAS,EAAE,IAAA,cAAI,EACb;YACE,8HAA8H;YAC9H,0BAA0B;YAC1B,uEAAuE;YACvE,qFAAqF;YACrF,mLAAmL;SACpL,EACD;YACE,SAAS,EAAE,IAAI,KAAK,IAAI;YACxB,SAAS,EAAE,IAAI,KAAK,IAAI;SACzB,EACD,EAAE,qCAAqC,EAAE,SAAS,KAAK,IAAI,EAAE,EAC7D,KAAK,CAAC,SAAS,CAChB;QAED,8BAAC,aAAa,CAAC,SAAS,IACtB,SAAS,EAAE,IAAA,cAAI,EACb;gBACE,2DAA2D;gBAC3D,uCAAuC;aACxC,EACD,EAAE,UAAU,EAAE,IAAI,KAAK,IAAI,EAAE,EAC7B,EAAE,SAAS,EAAE,IAAI,KAAK,IAAI,EAAE,CAC7B;YAED,8BAAC,mBAAc,IAAC,SAAS,EAAC,qCAAqC,GAAG,CAC1C,CACP,CACtB,CAAA;AACH,CAAC,CAAA;AAED,kBAAe,QAAQ,CAAA"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { Meta } from '@storybook/react/types-6-0';
|
|
3
|
-
import CheckboxComponent from './Checkbox';
|
|
4
|
-
type Props = React.ComponentProps<typeof CheckboxComponent>;
|
|
5
|
-
export declare const Checkbox: (props: Props) => JSX.Element;
|
|
6
|
-
declare const _default: Meta;
|
|
7
|
-
export default _default;
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Checkbox = void 0;
|
|
4
|
-
var tslib_1 = require("tslib");
|
|
5
|
-
var react_1 = tslib_1.__importDefault(require("react"));
|
|
6
|
-
var Checkbox_1 = tslib_1.__importDefault(require("./Checkbox"));
|
|
7
|
-
var Checkbox = function (props) {
|
|
8
|
-
return react_1.default.createElement(Checkbox_1.default, tslib_1.__assign({}, props));
|
|
9
|
-
};
|
|
10
|
-
exports.Checkbox = Checkbox;
|
|
11
|
-
exports.default = {
|
|
12
|
-
title: 'Inputs/Checkbox',
|
|
13
|
-
parameters: {
|
|
14
|
-
component: exports.Checkbox,
|
|
15
|
-
},
|
|
16
|
-
args: {
|
|
17
|
-
size: 'MD',
|
|
18
|
-
checked: false,
|
|
19
|
-
disabled: false,
|
|
20
|
-
isErrored: false,
|
|
21
|
-
},
|
|
22
|
-
argTypes: {
|
|
23
|
-
size: {
|
|
24
|
-
control: {
|
|
25
|
-
type: 'select',
|
|
26
|
-
options: ['SM', 'MD'],
|
|
27
|
-
},
|
|
28
|
-
},
|
|
29
|
-
checked: {
|
|
30
|
-
control: {
|
|
31
|
-
type: 'boolean',
|
|
32
|
-
},
|
|
33
|
-
},
|
|
34
|
-
disabled: {
|
|
35
|
-
control: {
|
|
36
|
-
type: 'boolean',
|
|
37
|
-
},
|
|
38
|
-
},
|
|
39
|
-
isErrored: {
|
|
40
|
-
control: {
|
|
41
|
-
type: 'boolean',
|
|
42
|
-
},
|
|
43
|
-
},
|
|
44
|
-
onCheckedChange: {
|
|
45
|
-
control: {
|
|
46
|
-
action: 'changed',
|
|
47
|
-
},
|
|
48
|
-
},
|
|
49
|
-
},
|
|
50
|
-
};
|
|
51
|
-
//# sourceMappingURL=Checkbox.stories.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Checkbox.stories.js","sourceRoot":"","sources":["../../../../src/components/react/Checkbox/Checkbox.stories.tsx"],"names":[],"mappings":";;;;AAAA,wDAAyB;AAGzB,gEAA0C;AAInC,IAAM,QAAQ,GAAG,UAAC,KAAY;IACnC,OAAO,8BAAC,kBAAiB,uBAAK,KAAK,EAAI,CAAA;AACzC,CAAC,CAAA;AAFY,QAAA,QAAQ,YAEpB;AAED,kBAAe;IACb,KAAK,EAAE,iBAAiB;IACxB,UAAU,EAAE;QACV,SAAS,EAAE,gBAAQ;KACpB;IACD,IAAI,EAAE;QACJ,IAAI,EAAE,IAAI;QACV,OAAO,EAAE,KAAK;QACd,QAAQ,EAAE,KAAK;QACf,SAAS,EAAE,KAAK;KACjB;IACD,QAAQ,EAAE;QACR,IAAI,EAAE;YACJ,OAAO,EAAE;gBACP,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,CAAC,IAAI,EAAE,IAAI,CAAC;aACtB;SACF;QACD,OAAO,EAAE;YACP,OAAO,EAAE;gBACP,IAAI,EAAE,SAAS;aAChB;SACF;QACD,QAAQ,EAAE;YACR,OAAO,EAAE;gBACP,IAAI,EAAE,SAAS;aAChB;SACF;QACD,SAAS,EAAE;YACT,OAAO,EAAE;gBACP,IAAI,EAAE,SAAS;aAChB;SACF;QACD,eAAe,EAAE;YACf,OAAO,EAAE;gBACP,MAAM,EAAE,SAAS;aAClB;SACF;KACF;CACM,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from './Checkbox';
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.default = void 0;
|
|
7
|
-
var Checkbox_1 = require("./Checkbox");
|
|
8
|
-
Object.defineProperty(exports, "default", { enumerable: true, get: function () { return __importDefault(Checkbox_1).default; } });
|
|
9
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/react/Checkbox/index.tsx"],"names":[],"mappings":";;;;;;AAAA,uCAAoC;AAA3B,oHAAA,OAAO,OAAA"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
type Props = {
|
|
2
|
-
children: string;
|
|
3
|
-
shape?: 'square' | 'round';
|
|
4
|
-
variant?: 'primary' | 'neutral-darker' | 'neutral-dark' | 'neutral-light' | 'alert-mid' | 'attention-mid' | 'nice-mid' | 'better-mid';
|
|
5
|
-
outline?: boolean;
|
|
6
|
-
disabled?: boolean;
|
|
7
|
-
onRemove?: () => void;
|
|
8
|
-
onClick?: () => void;
|
|
9
|
-
};
|
|
10
|
-
declare const Checkbox: ({ variant, shape, outline, disabled, onRemove, onClick, children, }: Props) => JSX.Element;
|
|
11
|
-
export default Checkbox;
|