beyond-system 0.8.3 → 0.8.5

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.
Files changed (140) hide show
  1. package/dist/components/react/List/List.js +9 -7
  2. package/dist/components/react/List/List.js.map +1 -1
  3. package/dist/styles/global.css +18 -14
  4. package/package.json +83 -84
  5. package/dist/colors/base-colors.d.ts +0 -50
  6. package/dist/colors/gradients.d.ts +0 -7
  7. package/dist/colors/index.d.ts +0 -3
  8. package/dist/colors/shadows.d.ts +0 -7
  9. package/dist/components/react/Calendar/Calendar.d.ts +0 -5
  10. package/dist/components/react/Calendar/Calendar.stories.d.ts +0 -7
  11. package/dist/components/react/Calendar/Calendar.stories.js +0 -35
  12. package/dist/components/react/Calendar/Calendar.stories.js.map +0 -1
  13. package/dist/components/react/Calendar/index.d.ts +0 -1
  14. package/dist/components/react/Checkbox/Checkbox.d.ts +0 -9
  15. package/dist/components/react/Checkbox/Checkbox.stories.d.ts +0 -7
  16. package/dist/components/react/Checkbox/Checkbox.stories.js +0 -51
  17. package/dist/components/react/Checkbox/Checkbox.stories.js.map +0 -1
  18. package/dist/components/react/Checkbox/index.d.ts +0 -1
  19. package/dist/components/react/Chip/Chip.d.ts +0 -11
  20. package/dist/components/react/Chip/Chip.stories.d.ts +0 -10
  21. package/dist/components/react/Chip/Chip.stories.js +0 -74
  22. package/dist/components/react/Chip/Chip.stories.js.map +0 -1
  23. package/dist/components/react/Chip/index.d.ts +0 -1
  24. package/dist/components/react/DatePicker/DatePicker.d.ts +0 -15
  25. package/dist/components/react/DatePicker/DatePicker.stories.d.ts +0 -7
  26. package/dist/components/react/DatePicker/DatePicker.stories.js +0 -46
  27. package/dist/components/react/DatePicker/DatePicker.stories.js.map +0 -1
  28. package/dist/components/react/DatePicker/index.d.ts +0 -1
  29. package/dist/components/react/DateRangeCalendar/DateRangeCalendar.d.ts +0 -4
  30. package/dist/components/react/DateRangeCalendar/DateRangeCalendar.stories.d.ts +0 -7
  31. package/dist/components/react/DateRangeCalendar/DateRangeCalendar.stories.js +0 -44
  32. package/dist/components/react/DateRangeCalendar/DateRangeCalendar.stories.js.map +0 -1
  33. package/dist/components/react/DateRangeCalendar/index.d.ts +0 -1
  34. package/dist/components/react/DateRangeCalendarWithPanel/DateRangeCalendarWithPanel.d.ts +0 -4
  35. package/dist/components/react/DateRangeCalendarWithPanel/DateRangeCalendarWithPanel.stories.d.ts +0 -7
  36. package/dist/components/react/DateRangeCalendarWithPanel/DateRangeCalendarWithPanel.stories.js +0 -44
  37. package/dist/components/react/DateRangeCalendarWithPanel/DateRangeCalendarWithPanel.stories.js.map +0 -1
  38. package/dist/components/react/DateRangeCalendarWithPanel/index.d.ts +0 -1
  39. package/dist/components/react/DateRangePicker/DateRangePicker.d.ts +0 -25
  40. package/dist/components/react/DateRangePicker/DateRangePicker.stories.d.ts +0 -7
  41. package/dist/components/react/DateRangePicker/DateRangePicker.stories.js +0 -51
  42. package/dist/components/react/DateRangePicker/DateRangePicker.stories.js.map +0 -1
  43. package/dist/components/react/DateRangePicker/index.d.ts +0 -1
  44. package/dist/components/react/DefaultButton/DefaultButton.d.ts +0 -12
  45. package/dist/components/react/DefaultButton/DefaultButton.stories.d.ts +0 -7
  46. package/dist/components/react/DefaultButton/DefaultButton.stories.js +0 -86
  47. package/dist/components/react/DefaultButton/DefaultButton.stories.js.map +0 -1
  48. package/dist/components/react/DefaultButton/DefaultButton.styles.d.ts +0 -15
  49. package/dist/components/react/DefaultButton/DefaultButton.variants.d.ts +0 -45
  50. package/dist/components/react/DefaultButton/index.d.ts +0 -1
  51. package/dist/components/react/IconButton/IconButton.d.ts +0 -10
  52. package/dist/components/react/IconButton/IconButton.stories.d.ts +0 -7
  53. package/dist/components/react/IconButton/IconButton.stories.js +0 -68
  54. package/dist/components/react/IconButton/IconButton.stories.js.map +0 -1
  55. package/dist/components/react/IconButton/IconButton.styles.d.ts +0 -13
  56. package/dist/components/react/IconButton/IconButton.variants.d.ts +0 -36
  57. package/dist/components/react/IconButton/index.d.ts +0 -1
  58. package/dist/components/react/List/List.d.ts +0 -10
  59. package/dist/components/react/List/List.stories.d.ts +0 -8
  60. package/dist/components/react/List/List.stories.js +0 -46
  61. package/dist/components/react/List/List.stories.js.map +0 -1
  62. package/dist/components/react/List/index.d.ts +0 -1
  63. package/dist/components/react/Loader/Loader.d.ts +0 -11
  64. package/dist/components/react/Loader/Loader.stories.d.ts +0 -7
  65. package/dist/components/react/Loader/Loader.stories.js +0 -36
  66. package/dist/components/react/Loader/Loader.stories.js.map +0 -1
  67. package/dist/components/react/Loader/index.d.ts +0 -3
  68. package/dist/components/react/MonthPicker/MonthPicker.d.ts +0 -15
  69. package/dist/components/react/MonthPicker/MonthPicker.stories.d.ts +0 -7
  70. package/dist/components/react/MonthPicker/MonthPicker.stories.js +0 -34
  71. package/dist/components/react/MonthPicker/MonthPicker.stories.js.map +0 -1
  72. package/dist/components/react/MonthPicker/index.d.ts +0 -1
  73. package/dist/components/react/MultiSelect/MultiSelect.d.ts +0 -8
  74. package/dist/components/react/MultiSelect/MultiSelect.stories.d.ts +0 -7
  75. package/dist/components/react/MultiSelect/MultiSelect.stories.js +0 -37
  76. package/dist/components/react/MultiSelect/MultiSelect.stories.js.map +0 -1
  77. package/dist/components/react/MultiSelect/index.d.ts +0 -1
  78. package/dist/components/react/OutlineButton/OutlineButton.d.ts +0 -12
  79. package/dist/components/react/OutlineButton/OutlineButton.stories.d.ts +0 -7
  80. package/dist/components/react/OutlineButton/OutlineButton.stories.js +0 -86
  81. package/dist/components/react/OutlineButton/OutlineButton.stories.js.map +0 -1
  82. package/dist/components/react/OutlineButton/OutlineButton.styles.d.ts +0 -12
  83. package/dist/components/react/OutlineButton/OutlineButton.variants.d.ts +0 -36
  84. package/dist/components/react/OutlineButton/index.d.ts +0 -1
  85. package/dist/components/react/RadioInput/RadioInput.d.ts +0 -7
  86. package/dist/components/react/RadioInput/RadioInput.stories.d.ts +0 -7
  87. package/dist/components/react/RadioInput/RadioInput.stories.js +0 -53
  88. package/dist/components/react/RadioInput/RadioInput.stories.js.map +0 -1
  89. package/dist/components/react/RadioInput/RadioInput.styles.d.ts +0 -14
  90. package/dist/components/react/RadioInput/RadioInput.variants.d.ts +0 -21
  91. package/dist/components/react/RadioInput/index.d.ts +0 -1
  92. package/dist/components/react/Select/Select.d.ts +0 -8
  93. package/dist/components/react/Select/Select.stories.d.ts +0 -7
  94. package/dist/components/react/Select/Select.stories.js +0 -36
  95. package/dist/components/react/Select/Select.stories.js.map +0 -1
  96. package/dist/components/react/Select/index.d.ts +0 -1
  97. package/dist/components/react/Switch/Switch.d.ts +0 -10
  98. package/dist/components/react/Switch/Switch.stories.d.ts +0 -7
  99. package/dist/components/react/Switch/Switch.stories.js +0 -53
  100. package/dist/components/react/Switch/Switch.stories.js.map +0 -1
  101. package/dist/components/react/Switch/Switch.styles.d.ts +0 -13
  102. package/dist/components/react/Switch/Switch.variants.d.ts +0 -17
  103. package/dist/components/react/Switch/index.d.ts +0 -1
  104. package/dist/components/react/TextArea/TextArea.d.ts +0 -12
  105. package/dist/components/react/TextArea/TextArea.stories.d.ts +0 -5
  106. package/dist/components/react/TextArea/TextArea.stories.js +0 -22
  107. package/dist/components/react/TextArea/TextArea.stories.js.map +0 -1
  108. package/dist/components/react/TextArea/index.d.ts +0 -1
  109. package/dist/components/react/TextInput/TextInput.d.ts +0 -36
  110. package/dist/components/react/TextInput/TextInput.stories.d.ts +0 -8
  111. package/dist/components/react/TextInput/TextInput.stories.js +0 -85
  112. package/dist/components/react/TextInput/TextInput.stories.js.map +0 -1
  113. package/dist/components/react/TextInput/index.d.ts +0 -1
  114. package/dist/components/react/TransparentButton/TransparentButton.d.ts +0 -7
  115. package/dist/components/react/TransparentButton/TransparentButton.stories.d.ts +0 -7
  116. package/dist/components/react/TransparentButton/TransparentButton.stories.js +0 -53
  117. package/dist/components/react/TransparentButton/TransparentButton.stories.js.map +0 -1
  118. package/dist/components/react/TransparentButton/TransparentButton.styles.d.ts +0 -10
  119. package/dist/components/react/TransparentButton/TransparentButton.variants.d.ts +0 -32
  120. package/dist/components/react/TransparentButton/index.d.ts +0 -1
  121. package/dist/components/react/index.d.ts +0 -19
  122. package/dist/config/index.d.ts +0 -1
  123. package/dist/config/tailwind.config.d.ts +0 -2
  124. package/dist/index.d.ts +0 -3
  125. package/dist/initialize.d.ts +0 -3
  126. package/dist/stories/base-colors/base-colors.stories.d.ts +0 -4
  127. package/dist/stories/base-colors/base-colors.stories.js +0 -65
  128. package/dist/stories/base-colors/base-colors.stories.js.map +0 -1
  129. package/dist/stories/base-colors/base-colors.stories.styles.d.ts +0 -2
  130. package/dist/stories/gradients/gradients.stories.d.ts +0 -4
  131. package/dist/stories/gradients/gradients.stories.js +0 -28
  132. package/dist/stories/gradients/gradients.stories.js.map +0 -1
  133. package/dist/stories/gradients/gradients.stories.styles.d.ts +0 -2
  134. package/dist/stories/shadows/shadows.stories.d.ts +0 -4
  135. package/dist/stories/shadows/shadows.stories.js +0 -26
  136. package/dist/stories/shadows/shadows.stories.js.map +0 -1
  137. package/dist/stories/shadows/shadows.stories.styles.d.ts +0 -2
  138. package/dist/web/border.d.ts +0 -12
  139. package/dist/web/font.d.ts +0 -34
  140. package/dist/web/index.d.ts +0 -2
@@ -1,22 +1,24 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  var tslib_1 = require("tslib");
4
- var react_1 = tslib_1.__importDefault(require("react"));
4
+ var react_1 = tslib_1.__importStar(require("react"));
5
5
  var clsx_1 = tslib_1.__importDefault(require("clsx"));
6
- var ListContainer = function (props) {
7
- return (react_1.default.createElement("div", tslib_1.__assign({}, props, { className: (0, clsx_1.default)('bg-neutral-50 rounded border border-neutral-300 w-fit shadow-lg', props.className) })));
8
- };
9
- var ListItem = function (_a) {
6
+ var ListContainer = (0, react_1.forwardRef)(function (props, ref) {
7
+ return (react_1.default.createElement("div", tslib_1.__assign({}, props, { ref: ref, className: (0, clsx_1.default)('bg-neutral-50 rounded border border-neutral-300 w-fit shadow-lg', '[&>*]:border-b last:[&>*]:border-b-0 first:[&>*]:rounded-t last:[&>*]:rounded-b ', props.className) })));
8
+ });
9
+ ListContainer.displayName = 'ListContainer';
10
+ var ListItem = (0, react_1.forwardRef)(function (_a, ref) {
10
11
  var _b = _a.selected, selected = _b === void 0 ? false : _b, as = _a.as, props = tslib_1.__rest(_a, ["selected", "as"]);
11
12
  var Component = (as || 'button');
12
- return (react_1.default.createElement(Component, tslib_1.__assign({}, props, { className: (0, clsx_1.default)('outline-none py-1 px-2 flex items-center border-neutral-300 min-w-[150px] border-b last:border-b-0 first:rounded-t last:rounded-b active:bg-growth-mid group cursor-pointer transition [&>*]:text-sm', {
13
+ return (react_1.default.createElement(Component, tslib_1.__assign({}, props, { ref: ref, className: (0, clsx_1.default)('outline-none py-1 px-2 flex items-center border-neutral-300 min-w-[150px] active:bg-growth-mid group cursor-pointer transition text-sm [&>*]:text-sm', {
13
14
  'hover:bg-neutral-200 text-neutral-600 [&>*]:active:text-neutral-50 active:text-neutral-50': !selected && !props.disabled,
14
15
  'bg-growth-mid text-neutral-50 hover:bg-growth-light': selected && !props.disabled,
15
16
  }, {
16
17
  'text-neutral-400 pointer-events-none': props.disabled,
17
18
  'bg-growth-light text-neutral-50': props.disabled && selected,
18
19
  }, props.className) })));
19
- };
20
+ });
21
+ ListItem.displayName = 'ListItem';
20
22
  var List = {
21
23
  Container: ListContainer,
22
24
  Item: ListItem,
@@ -1 +1 @@
1
- {"version":3,"file":"List.js","sourceRoot":"","sources":["../../../../src/components/react/List/List.tsx"],"names":[],"mappings":";;;AAAA,wDAAyB;AACzB,sDAAuB;AAOvB,IAAM,aAAa,GAAG,UAAC,KAAkC;IACvD,OAAO,CACL,0DACM,KAAK,IACT,SAAS,EAAE,IAAA,cAAI,EACb,iEAAiE,EACjE,KAAK,CAAC,SAAS,CAChB,IACD,CACH,CAAA;AACH,CAAC,CAAA;AAED,IAAM,QAAQ,GAAG,UAAC,EAAiD;IAA/C,IAAA,gBAAgB,EAAhB,QAAQ,mBAAG,KAAK,KAAA,EAAE,EAAE,QAAA,EAAK,KAAK,sBAAhC,kBAAkC,CAAF;IAChD,IAAM,SAAS,GAAG,CAAC,EAAE,IAAI,QAAQ,CAAsB,CAAA;IAEvD,OAAO,CACL,8BAAC,SAAS,uBACJ,KAAK,IACT,SAAS,EAAE,IAAA,cAAI,EACb,sMAAsM,EACtM;YACE,2FAA2F,EACzF,CAAC,QAAQ,IAAI,CAAC,KAAK,CAAC,QAAQ;YAC9B,qDAAqD,EACnD,QAAQ,IAAI,CAAC,KAAK,CAAC,QAAQ;SAC9B,EACD;YACE,sCAAsC,EAAE,KAAK,CAAC,QAAQ;YACtD,iCAAiC,EAAE,KAAK,CAAC,QAAQ,IAAI,QAAQ;SAC9D,EACD,KAAK,CAAC,SAAS,CAChB,IACD,CACH,CAAA;AACH,CAAC,CAAA;AAED,IAAM,IAAI,GAAG;IACX,SAAS,EAAE,aAAa;IACxB,IAAI,EAAE,QAAQ;CACf,CAAA;AAED,kBAAe,IAAI,CAAA"}
1
+ {"version":3,"file":"List.js","sourceRoot":"","sources":["../../../../src/components/react/List/List.tsx"],"names":[],"mappings":";;;AAAA,qDAAyC;AACzC,sDAAuB;AAOvB,IAAM,aAAa,GAAG,IAAA,kBAAU,EAC9B,UACE,KAAkC,EAClC,GAAuC;IAEvC,OAAO,CACL,0DACM,KAAK,IACT,GAAG,EAAE,GAAG,EACR,SAAS,EAAE,IAAA,cAAI,EACb,iEAAiE,EACjE,kFAAkF,EAClF,KAAK,CAAC,SAAS,CAChB,IACD,CACH,CAAA;AACH,CAAC,CACF,CAAA;AAED,aAAa,CAAC,WAAW,GAAG,eAAe,CAAA;AAE3C,IAAM,QAAQ,GAAG,IAAA,kBAAU,EACzB,UACE,EAAiD,EACjD,GAA0C;IADxC,IAAA,gBAAgB,EAAhB,QAAQ,mBAAG,KAAK,KAAA,EAAE,EAAE,QAAA,EAAK,KAAK,sBAAhC,kBAAkC,CAAF;IAGhC,IAAM,SAAS,GAAG,CAAC,EAAE,IAAI,QAAQ,CAAsB,CAAA;IAEvD,OAAO,CACL,8BAAC,SAAS,uBACJ,KAAK,IACT,GAAG,EAAE,GAAG,EACR,SAAS,EAAE,IAAA,cAAI,EACb,sJAAsJ,EACtJ;YACE,2FAA2F,EACzF,CAAC,QAAQ,IAAI,CAAC,KAAK,CAAC,QAAQ;YAC9B,qDAAqD,EACnD,QAAQ,IAAI,CAAC,KAAK,CAAC,QAAQ;SAC9B,EACD;YACE,sCAAsC,EAAE,KAAK,CAAC,QAAQ;YACtD,iCAAiC,EAAE,KAAK,CAAC,QAAQ,IAAI,QAAQ;SAC9D,EACD,KAAK,CAAC,SAAS,CAChB,IACD,CACH,CAAA;AACH,CAAC,CACF,CAAA;AAED,QAAQ,CAAC,WAAW,GAAG,UAAU,CAAA;AAEjC,IAAM,IAAI,GAAG;IACX,SAAS,EAAE,aAAa;IACxB,IAAI,EAAE,QAAQ;CACf,CAAA;AAED,kBAAe,IAAI,CAAA"}
@@ -1019,20 +1019,6 @@ video {
1019
1019
  transition-duration: 100ms;
1020
1020
  }
1021
1021
 
1022
- .first\:rounded-t:first-child {
1023
- border-top-left-radius: 0.25rem;
1024
- border-top-right-radius: 0.25rem;
1025
- }
1026
-
1027
- .last\:rounded-b:last-child {
1028
- border-bottom-right-radius: 0.25rem;
1029
- border-bottom-left-radius: 0.25rem;
1030
- }
1031
-
1032
- .last\:border-b-0:last-child {
1033
- border-bottom-width: 0px;
1034
- }
1035
-
1036
1022
  .last\:border-none:last-child {
1037
1023
  border-style: none;
1038
1024
  }
@@ -1147,11 +1133,29 @@ video {
1147
1133
  background-color: rgb(191 196 201 / var(--tw-bg-opacity));
1148
1134
  }
1149
1135
 
1136
+ .\[\&\>\*\]\:border-b>* {
1137
+ border-bottom-width: 1px;
1138
+ }
1139
+
1150
1140
  .\[\&\>\*\]\:text-sm>* {
1151
1141
  font-size: 0.875rem;
1152
1142
  line-height: 1.25rem;
1153
1143
  }
1154
1144
 
1145
+ .first\:\[\&\>\*\]\:rounded-t>*:first-child {
1146
+ border-top-left-radius: 0.25rem;
1147
+ border-top-right-radius: 0.25rem;
1148
+ }
1149
+
1150
+ .last\:\[\&\>\*\]\:rounded-b>*:last-child {
1151
+ border-bottom-right-radius: 0.25rem;
1152
+ border-bottom-left-radius: 0.25rem;
1153
+ }
1154
+
1155
+ .last\:\[\&\>\*\]\:border-b-0>*:last-child {
1156
+ border-bottom-width: 0px;
1157
+ }
1158
+
1155
1159
  .\[\&\>\*\]\:active\:text-neutral-50:active>* {
1156
1160
  --tw-text-opacity: 1;
1157
1161
  color: rgb(250 251 252 / var(--tw-text-opacity));
package/package.json CHANGED
@@ -1,84 +1,83 @@
1
- {
2
- "name": "beyond-system",
3
- "author": "Growth Machine",
4
- "version": "0.8.3",
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.5",
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": "storybook dev -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": "storybook dev -p 6006 -s public",
17
+ "build-storybook": "storybook build -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
+ "styled-components": "^5"
30
+ },
31
+ "dependencies": {
32
+ "@radix-ui/react-checkbox": "^1.0.3",
33
+ "@radix-ui/react-dropdown-menu": "^2.0.4",
34
+ "@radix-ui/react-radio-group": "^1.1.2",
35
+ "@radix-ui/react-slot": "^1.0.1",
36
+ "@radix-ui/react-switch": "^1.0.2",
37
+ "clsx": "^1.2.1",
38
+ "date-fns": "^2.29.3",
39
+ "moment": "^2.29.4",
40
+ "postcss": "^8.4.23",
41
+ "postcss-loader": "^7.1.0",
42
+ "react": "18.2.0",
43
+ "react-date-range": "^1.4.0",
44
+ "react-dom": "18.2.0",
45
+ "react-icons": "^4.8.0",
46
+ "react-input-mask": "^2.0.4",
47
+ "react-select": "^5.7.2",
48
+ "styled-components": "^5.3.9",
49
+ "tailwindcss": "^3.2.7",
50
+ "typescript": "5.0.2"
51
+ },
52
+ "devDependencies": {
53
+ "@babel/core": "^7.21.3",
54
+ "@storybook/addon-actions": "^7.0.9",
55
+ "@storybook/addon-essentials": "^7.0.9",
56
+ "@storybook/addon-interactions": "^7.0.9",
57
+ "@storybook/addon-links": "^7.0.9",
58
+ "@storybook/addon-styling": "^1.0.6",
59
+ "@storybook/nextjs": "7.0.9",
60
+ "@storybook/react": "^7.0.9",
61
+ "@storybook/testing-library": "^0.1.0",
62
+ "@types/node": "18.15.5",
63
+ "@types/react": "18.0.28",
64
+ "@types/react-date-range": "^1.4.4",
65
+ "@types/react-dom": "18.0.11",
66
+ "@types/react-input-mask": "^3.0.2",
67
+ "@types/styled-components": "^5.1.26",
68
+ "@typescript-eslint/eslint-plugin": "^5.56.0",
69
+ "autoprefixer": "^10.4.14",
70
+ "babel-loader": "^8.3.0",
71
+ "eslint": "8.36.0",
72
+ "eslint-config-next": "13.2.4",
73
+ "eslint-config-prettier": "^8.8.0",
74
+ "eslint-plugin-prettier": "^4.2.1",
75
+ "eslint-plugin-storybook": "^0.6.12",
76
+ "next": "13.2.4",
77
+ "prettier": "^2.8.6",
78
+ "storybook": "7.0.9",
79
+ "tsconfig-paths": "^4.2.0",
80
+ "tsconfig-paths-webpack-plugin": "^4.0.1",
81
+ "tscpaths": "^0.0.9"
82
+ }
83
+ }
@@ -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,7 +0,0 @@
1
- export declare const GRADIENTS: {
2
- GROWTH_BACKGROUND: string;
3
- ALERT: string;
4
- ATTENTION: string;
5
- NICE: string;
6
- BETTER: string;
7
- };
@@ -1,3 +0,0 @@
1
- export * from './base-colors';
2
- export * from './gradients';
3
- export * from './shadows';
@@ -1,7 +0,0 @@
1
- export declare const SHADOWS: {
2
- BOXES: string;
3
- POPUPS: string;
4
- HOVER: string;
5
- NAVBAR: string;
6
- SIDEBAR: string;
7
- };
@@ -1,5 +0,0 @@
1
- import React from 'react';
2
- import { Calendar as CalendarComponent } from 'react-date-range';
3
- type Props = React.ComponentProps<typeof CalendarComponent>;
4
- declare const Calendar: (props: Props) => JSX.Element;
5
- export default Calendar;
@@ -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
- 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,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,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;
@@ -1,10 +0,0 @@
1
- import React from 'react';
2
- import { Meta } from '@storybook/react/types-6-0';
3
- import ChipComponent from './Chip';
4
- type Props = React.ComponentProps<typeof ChipComponent>;
5
- export declare const Chip: (props: Props) => JSX.Element;
6
- export declare const ChipWithClick: (props: Props) => JSX.Element;
7
- export declare const ChipWithRemove: (props: Props) => JSX.Element;
8
- export declare const ChipWithRemoveAndClick: (props: Props) => JSX.Element;
9
- declare const _default: Meta;
10
- export default _default;
@@ -1,74 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ChipWithRemoveAndClick = exports.ChipWithRemove = exports.ChipWithClick = exports.Chip = void 0;
4
- var tslib_1 = require("tslib");
5
- var react_1 = tslib_1.__importDefault(require("react"));
6
- var Chip_1 = tslib_1.__importDefault(require("./Chip"));
7
- var Chip = function (props) {
8
- return react_1.default.createElement(Chip_1.default, tslib_1.__assign({}, props, { onClick: undefined, onRemove: undefined }));
9
- };
10
- exports.Chip = Chip;
11
- var ChipWithClick = function (props) {
12
- return react_1.default.createElement(Chip_1.default, tslib_1.__assign({}, props, { onRemove: undefined }));
13
- };
14
- exports.ChipWithClick = ChipWithClick;
15
- var ChipWithRemove = function (props) {
16
- return react_1.default.createElement(Chip_1.default, tslib_1.__assign({}, props, { onClick: undefined }));
17
- };
18
- exports.ChipWithRemove = ChipWithRemove;
19
- var ChipWithRemoveAndClick = function (props) {
20
- return react_1.default.createElement(Chip_1.default, tslib_1.__assign({}, props));
21
- };
22
- exports.ChipWithRemoveAndClick = ChipWithRemoveAndClick;
23
- exports.default = {
24
- title: 'Others/Chip',
25
- parameters: {
26
- component: exports.Chip,
27
- },
28
- args: {
29
- children: 'Chip',
30
- variant: 'neutral-light',
31
- shape: 'round',
32
- outline: false,
33
- disabled: false,
34
- },
35
- argTypes: {
36
- variant: {
37
- control: {
38
- type: 'select',
39
- options: [
40
- 'primary',
41
- 'neutral-darker',
42
- 'neutral-dark',
43
- 'neutral-light',
44
- 'alert-mid',
45
- 'attention-mid',
46
- 'nice-mid',
47
- 'better-mid',
48
- ],
49
- },
50
- },
51
- shape: {
52
- control: {
53
- type: 'select',
54
- options: ['square', 'round'],
55
- },
56
- },
57
- disabled: {
58
- control: {
59
- type: 'boolean',
60
- },
61
- },
62
- onRemove: {
63
- control: {
64
- action: 'clicked',
65
- },
66
- },
67
- onClick: {
68
- control: {
69
- action: 'clicked',
70
- },
71
- },
72
- },
73
- };
74
- //# sourceMappingURL=Chip.stories.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Chip.stories.js","sourceRoot":"","sources":["../../../../src/components/react/Chip/Chip.stories.tsx"],"names":[],"mappings":";;;;AAAA,wDAAyB;AAGzB,wDAAkC;AAI3B,IAAM,IAAI,GAAG,UAAC,KAAY;IAC/B,OAAO,8BAAC,cAAa,uBAAK,KAAK,IAAE,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,SAAS,IAAI,CAAA;AAC9E,CAAC,CAAA;AAFY,QAAA,IAAI,QAEhB;AAEM,IAAM,aAAa,GAAG,UAAC,KAAY;IACxC,OAAO,8BAAC,cAAa,uBAAK,KAAK,IAAE,QAAQ,EAAE,SAAS,IAAI,CAAA;AAC1D,CAAC,CAAA;AAFY,QAAA,aAAa,iBAEzB;AACM,IAAM,cAAc,GAAG,UAAC,KAAY;IACzC,OAAO,8BAAC,cAAa,uBAAK,KAAK,IAAE,OAAO,EAAE,SAAS,IAAkB,CAAA;AACvE,CAAC,CAAA;AAFY,QAAA,cAAc,kBAE1B;AACM,IAAM,sBAAsB,GAAG,UAAC,KAAY;IACjD,OAAO,8BAAC,cAAa,uBAAK,KAAK,EAAI,CAAA;AACrC,CAAC,CAAA;AAFY,QAAA,sBAAsB,0BAElC;AAED,kBAAe;IACb,KAAK,EAAE,aAAa;IACpB,UAAU,EAAE;QACV,SAAS,EAAE,YAAI;KAChB;IACD,IAAI,EAAE;QACJ,QAAQ,EAAE,MAAM;QAChB,OAAO,EAAE,eAAe;QACxB,KAAK,EAAE,OAAO;QACd,OAAO,EAAE,KAAK;QACd,QAAQ,EAAE,KAAK;KAChB;IACD,QAAQ,EAAE;QACR,OAAO,EAAE;YACP,OAAO,EAAE;gBACP,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE;oBACP,SAAS;oBACT,gBAAgB;oBAChB,cAAc;oBACd,eAAe;oBACf,WAAW;oBACX,eAAe;oBACf,UAAU;oBACV,YAAY;iBACb;aACF;SACF;QACD,KAAK,EAAE;YACL,OAAO,EAAE;gBACP,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,CAAC,QAAQ,EAAE,OAAO,CAAC;aAC7B;SACF;QACD,QAAQ,EAAE;YACR,OAAO,EAAE;gBACP,IAAI,EAAE,SAAS;aAChB;SACF;QACD,QAAQ,EAAE;YACR,OAAO,EAAE;gBACP,MAAM,EAAE,SAAS;aAClB;SACF;QACD,OAAO,EAAE;YACP,OAAO,EAAE;gBACP,MAAM,EAAE,SAAS;aAClB;SACF;KACF;CACM,CAAA"}
@@ -1 +0,0 @@
1
- export { default } from './Chip';
@@ -1,15 +0,0 @@
1
- import React from 'react';
2
- import Calendar from '../Calendar';
3
- interface DatePickerProps extends React.ComponentProps<typeof Calendar> {
4
- fill?: boolean;
5
- shape?: 'square' | 'round' | 'line' | 'none';
6
- leftIcon?: boolean | React.ReactNode;
7
- rightIcon?: boolean | React.ReactNode;
8
- isValid?: boolean;
9
- isErrored?: boolean;
10
- paintLeftIcon?: boolean;
11
- paintRightIcon?: boolean;
12
- closeOnSelect?: boolean;
13
- }
14
- declare const DatePicker: (props: DatePickerProps) => JSX.Element;
15
- export default DatePicker;
@@ -1,7 +0,0 @@
1
- import React from 'react';
2
- import { Meta } from '@storybook/react/types-6-0';
3
- import DatePickerComponent from './DatePicker';
4
- type Props = React.ComponentProps<typeof DatePickerComponent>;
5
- export declare const DatePicker: (props: Props) => JSX.Element;
6
- declare const _default: Meta;
7
- export default _default;