@councilbox/councilbox-ui 2.0.52 → 2.0.54
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/HOCs/overlayA11yStack.js +47 -0
- package/dist/HOCs/useA11yGuard.js +38 -0
- package/dist/HOCs/useDynamicStyles.js +18 -38
- package/dist/HOCs/useMenuNavigation.js +110 -0
- package/dist/HOCs/useOverlay.js +87 -0
- package/dist/HOCs/usePopoverPosition.js +228 -0
- package/dist/HOCs/useRipple.js +17 -35
- package/dist/HOCs/useWindowSize.js +24 -42
- package/dist/build-index.js +49 -99
- package/dist/components/1.Introduction.stories.mdx +1 -1
- package/dist/components/2.Changelog.stories.mdx +45 -0
- package/dist/components/3.Guide.stories.mdx +1 -1
- package/dist/components/Accordion/Accordion.css +7 -0
- package/dist/components/Accordion/Accordion.js +97 -102
- package/dist/components/Accordion/Accordion.stories.js +10 -12
- package/dist/components/Accordion/AccordionOld.js +32 -56
- package/dist/components/Accordion/DesignAccordion.stories.js +10 -21
- package/dist/components/Alert/Alert.js +55 -55
- package/dist/components/Alert/Alert.stories.js +10 -11
- package/dist/components/Avatar/Avatar.js +82 -74
- package/dist/components/Avatar/Avatar.stories.js +19 -23
- package/dist/components/Avatar/AvatarOld.js +46 -60
- package/dist/components/Avatar/DesignAvatar.stories.js +18 -26
- package/dist/components/Avatar/DesignAvatarText.stories.js +31 -40
- package/dist/components/AvatarGroup/AvatarGroup.js +7 -14
- package/dist/components/AvatarGroup/AvatarGroup.stories.js +6 -13
- package/dist/components/AvatarGroup/DesignAvatarGroup.stories.js +34 -45
- package/dist/components/Block/Block.css +3 -3
- package/dist/components/Block/Block.js +31 -45
- package/dist/components/Block/Block.stories.js +5 -12
- package/dist/components/Block/DesignBlock.stories.js +7 -13
- package/dist/components/Button/Button.js +44 -66
- package/dist/components/Button/Button.stories.js +8 -14
- package/dist/components/Button/button.css +1 -1
- package/dist/components/ButtonBasic/ButtonBasic.css +6 -1
- package/dist/components/ButtonBasic/ButtonBasic.js +96 -118
- package/dist/components/ButtonBasic/ButtonBasic.stories.js +14 -15
- package/dist/components/ButtonBasic/ButtonBasicOld.js +57 -77
- package/dist/components/Checkbox/Checkbox.css +6 -0
- package/dist/components/Checkbox/Checkbox.js +81 -100
- package/dist/components/Checkbox/Checkbox.stories.js +10 -11
- package/dist/components/Checkbox/CheckboxOld.js +19 -35
- package/dist/components/DragDrop/DragDrop.css +20 -9
- package/dist/components/DragDrop/DragDrop.js +80 -76
- package/dist/components/DragDrop/DragDrop.stories.js +9 -16
- package/dist/components/DrawerPanel/DesignDrawerPanel.js +35 -53
- package/dist/components/DrawerPanel/DrawerPanel.js +157 -146
- package/dist/components/DrawerPanel/DrawerPanel.stories.js +10 -12
- package/dist/components/DrawerPanel/DrawerPanelOld.js +76 -98
- package/dist/components/DropDown/DesignDropDown.stories.js +79 -97
- package/dist/components/DropDown/DropDown.js +168 -342
- package/dist/components/DropDown/DropDown.stories.js +6 -12
- package/dist/components/DropDown/DropDownOld.js +57 -89
- package/dist/components/DropDown/PopoverPlayground.js +68 -98
- package/dist/components/EnhancedTable/DesignEnhancedTable.stories.js +26 -36
- package/dist/components/EnhancedTable/EnhancedMyTable.js +16 -19
- package/dist/components/EnhancedTable/EnhancedTable.js +77 -136
- package/dist/components/EnhancedTable/EnhancedTable.stories.js +5 -12
- package/dist/components/EnhancedTable/EnhancedTableBody.js +11 -14
- package/dist/components/EnhancedTable/EnhancedTableCell.js +25 -34
- package/dist/components/EnhancedTable/EnhancedTableContainer.js +11 -14
- package/dist/components/EnhancedTable/EnhancedTableHead.js +11 -14
- package/dist/components/EnhancedTable/EnhancedTableRow.js +15 -18
- package/dist/components/EnhancedTable/EnhancedTableSortLabel.js +15 -18
- package/dist/components/FabButton/DesignFabButton.stories.js +9 -16
- package/dist/components/FabButton/FabButton.js +51 -54
- package/dist/components/FabButton/FabButton.stories.js +10 -12
- package/dist/components/Grid/DesignGrid.stories.js +7 -14
- package/dist/components/Grid/Grid.js +38 -46
- package/dist/components/Grid/Grid.stories.js +6 -13
- package/dist/components/Grid/GridItem.js +37 -39
- package/dist/components/Grid/GridItemOld.js +13 -18
- package/dist/components/Grid/GridOld.js +14 -21
- package/dist/components/Header/DesignHeader.stories.js +20 -24
- package/dist/components/Header/Header.js +201 -242
- package/dist/components/Header/Header.stories.js +9 -21
- package/dist/components/Header/header.css +10 -5
- package/dist/components/IconButton/DesignIconButton.stories.js +31 -36
- package/dist/components/IconButton/IconButton.css +6 -1
- package/dist/components/IconButton/IconButton.js +132 -138
- package/dist/components/IconButton/IconButton.stories.js +12 -13
- package/dist/components/IconButton/IconButtonOld.js +41 -57
- package/dist/components/IconButtonSquare/DesignIconButtonSquare.stories.js +5 -11
- package/dist/components/IconButtonSquare/IconButtonSquare.js +11 -25
- package/dist/components/IconButtonSquare/IconButtonSquare.stories.js +7 -13
- package/dist/components/IconButtonSquare/IconButtonSquareOld.js +44 -62
- package/dist/components/IconFont/IconFont.js +27 -48
- package/dist/components/IconFont/IconFont.stories.js +5 -11
- package/dist/components/InputAutocomplete/InputAutocomplete.css +6 -0
- package/dist/components/InputAutocomplete/InputAutocomplete.js +184 -260
- package/dist/components/InputAutocomplete/InputAutocomplete.stories.js +5 -11
- package/dist/components/InputAutocomplete/InputAutocompleteOld.js +43 -62
- package/dist/components/InputPassword/InputPassword.css +0 -6
- package/dist/components/InputPassword/InputPassword.js +58 -73
- package/dist/components/InputPassword/InputPassword.stories.js +5 -11
- package/dist/components/InputText/InputText.css +86 -78
- package/dist/components/InputText/InputText.js +207 -211
- package/dist/components/InputText/InputText.stories.js +11 -11
- package/dist/components/InputText/InputTextOld.js +48 -74
- package/dist/components/InputTextArea/DesignInputTextArea.stories.js +38 -51
- package/dist/components/InputTextArea/InputTextArea.js +84 -93
- package/dist/components/InputTextArea/InputTextArea.stories.js +5 -12
- package/dist/components/LoadingSection/LoadingSection.js +44 -51
- package/dist/components/LoadingSection/LoadingSection.stories.js +5 -11
- package/dist/components/MenuItem/DesignMenuItem.stories.js +20 -34
- package/dist/components/MenuItem/MenuItem.css +7 -2
- package/dist/components/MenuItem/MenuItem.js +100 -113
- package/dist/components/MenuItem/MenuItem.stories.js +6 -15
- package/dist/components/MenuItem/MenuItemOld.js +40 -56
- package/dist/components/MenuLateralLeft/MenuLateralLeft.css +24 -0
- package/dist/components/MenuLateralLeft/MenuLateralLeft.js +123 -160
- package/dist/components/MenuLateralLeft/MenuLateralLeft.stories.js +5 -12
- package/dist/components/MenuLateralRight/MenuLateralRight.css +2 -2
- package/dist/components/MenuLateralRight/MenuLateralRight.js +73 -77
- package/dist/components/MenuLateralRight/MenuLateralRight.stories.js +5 -12
- package/dist/components/Modal/DesignModal.stories.js +15 -30
- package/dist/components/Modal/Modal.css +35 -15
- package/dist/components/Modal/Modal.js +154 -145
- package/dist/components/Modal/Modal.stories.js +7 -16
- package/dist/components/Modal/ModalOld.js +73 -90
- package/dist/components/PaginationFooter/DesignPaginationFooter.stories.js +4 -10
- package/dist/components/PaginationFooter/PaginationFooter.css +10 -0
- package/dist/components/PaginationFooter/PaginationFooter.js +99 -91
- package/dist/components/PaginationFooter/PaginationFooter.stories.js +5 -12
- package/dist/components/RadioButton/Radio.css +19 -18
- package/dist/components/RadioButton/Radio.js +65 -83
- package/dist/components/RadioButton/Radio.stories.js +27 -36
- package/dist/components/RadioButton/RadioOld.js +23 -39
- package/dist/components/Ripple/DesignRipple.js +25 -41
- package/dist/components/Ripple/Ripple.stories.js +5 -11
- package/dist/components/Scrollbar/DesignScrollbar.js +5 -10
- package/dist/components/Scrollbar/Scrollbar.js +37 -56
- package/dist/components/Scrollbar/Scrollbar.stories.js +5 -12
- package/dist/components/SelectInput/DesignSelectInput.js +22 -45
- package/dist/components/SelectInput/SelectInput.js +101 -155
- package/dist/components/SelectInput/SelectInput.stories.js +6 -15
- package/dist/components/SelectInput/SelectInputOld.js +52 -81
- package/dist/components/Slider/DesignSlider.js +8 -14
- package/dist/components/Slider/Slider.css +57 -37
- package/dist/components/Slider/Slider.js +85 -84
- package/dist/components/Slider/Slider.stories.js +5 -12
- package/dist/components/Spacing/Spacing.js +38 -45
- package/dist/components/Spacing/Spacing.stories.js +5 -11
- package/dist/components/Stars/DesignStars.js +17 -30
- package/dist/components/Stars/Stars.css +55 -104
- package/dist/components/Stars/Stars.js +89 -73
- package/dist/components/Stars/Stars.stories.js +5 -12
- package/dist/components/Stepper/DesignStepper.stories.js +16 -30
- package/dist/components/Stepper/Stepper.css +46 -10
- package/dist/components/Stepper/Stepper.js +118 -134
- package/dist/components/Stepper/Stepper.stories.js +5 -12
- package/dist/components/Table/DesignTable.stories.js +200 -211
- package/dist/components/Table/Table.css +33 -2
- package/dist/components/Table/Table.js +30 -38
- package/dist/components/Table/Table.stories.js +5 -12
- package/dist/components/Table/TableBody.js +22 -34
- package/dist/components/Table/TableCell.js +71 -61
- package/dist/components/Table/TableContainer.js +22 -34
- package/dist/components/Table/TableHead.js +22 -34
- package/dist/components/Table/TableOld.js +52 -84
- package/dist/components/Table/TableRow.js +33 -37
- package/dist/components/Table/TableSortLabel.js +42 -52
- package/dist/components/Tabs/DesignTabs.js +14 -28
- package/dist/components/Tabs/Tabs.css +30 -11
- package/dist/components/Tabs/Tabs.js +151 -137
- package/dist/components/Tabs/Tabs.stories.js +5 -12
- package/dist/components/Tabs/TabsOld.js +28 -42
- package/dist/components/Tag/DesignTags.stories.js +24 -39
- package/dist/components/Tag/Tag.css +61 -42
- package/dist/components/Tag/Tag.js +93 -91
- package/dist/components/Tag/Tag.stories.js +5 -12
- package/dist/components/TextInput/TextInput.js +38 -54
- package/dist/components/TextInput/TextInput.stories.js +5 -11
- package/dist/components/ThemeProvider/Colors.js +2 -2
- package/dist/components/ThemeProvider/CouncilboxThemeContext.js +7 -10
- package/dist/components/ThemeProvider/ThemeProvider.js +34 -52
- package/dist/components/Timeline/DesignTimeline.stories.js +4 -10
- package/dist/components/Timeline/Timeline.js +66 -46
- package/dist/components/Timeline/Timeline.stories.js +5 -12
- package/dist/components/Toggle/Toggle.css +10 -0
- package/dist/components/Toggle/Toggle.js +115 -98
- package/dist/components/Toggle/Toggle.stories.js +10 -11
- package/dist/components/Tooltip/DesignTooltip.stories.js +10 -16
- package/dist/components/Tooltip/Tooltip.css +17 -1
- package/dist/components/Tooltip/Tooltip.js +190 -366
- package/dist/components/Tooltip/Tooltip.stories.js +5 -12
- package/dist/components/Typography/Typography.css +57 -6
- package/dist/components/Typography/Typography.js +44 -97
- package/dist/components/Typography/Typography.stories.js +5 -11
- package/dist/components/Typography/TypographyOld.js +29 -42
- package/dist/index.js +2 -6
- package/dist/reportWebVitals.js +8 -14
- package/dist/storybook.test.js +2 -4
- package/dist/styles/colorConsts.css +4 -4
- package/dist/styles/main.css +16 -0
- package/dist/styles/stylesheet.js +10 -22
- package/dist/testing/TestAutocomplete.js +74 -97
- package/dist/testing/TestComponents.js +5 -10
- package/dist/testing/TestDropdown.js +33 -41
- package/dist/utils/autoDetectScroll.js +12 -35
- package/dist/utils/index.js +37 -63
- package/dist/utils/useFallbackId.js +19 -0
- package/package.json +5 -2
|
@@ -3,19 +3,14 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports
|
|
7
|
-
|
|
6
|
+
exports["default"] = exports.DesignSliderTemplate = void 0;
|
|
8
7
|
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
|
|
10
8
|
var _Slider = _interopRequireDefault(require("./Slider"));
|
|
11
|
-
|
|
12
9
|
var _DesignSlider = _interopRequireDefault(require("./DesignSlider"));
|
|
13
|
-
|
|
14
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
15
|
-
|
|
10
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
16
11
|
var _default = {
|
|
17
12
|
title: 'Components/Slider',
|
|
18
|
-
component: _Slider
|
|
13
|
+
component: _Slider["default"],
|
|
19
14
|
argTypes: {},
|
|
20
15
|
parameters: {
|
|
21
16
|
storybookCodePanel: {
|
|
@@ -32,12 +27,10 @@ var _default = {
|
|
|
32
27
|
}
|
|
33
28
|
}
|
|
34
29
|
};
|
|
35
|
-
exports
|
|
36
|
-
|
|
30
|
+
exports["default"] = _default;
|
|
37
31
|
var TemplateSlider = function TemplateSlider(args) {
|
|
38
|
-
return /*#__PURE__*/_react
|
|
32
|
+
return /*#__PURE__*/_react["default"].createElement(_DesignSlider["default"], args);
|
|
39
33
|
};
|
|
40
|
-
|
|
41
34
|
TemplateSlider.displayName = "TemplateSlider";
|
|
42
35
|
var DesignSliderTemplate = TemplateSlider.bind({});
|
|
43
36
|
exports.DesignSliderTemplate = DesignSliderTemplate;
|
|
@@ -3,153 +3,146 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports
|
|
7
|
-
|
|
6
|
+
exports["default"] = void 0;
|
|
8
7
|
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
|
|
10
8
|
var _Typography = _interopRequireDefault(require("../Typography/Typography"));
|
|
11
|
-
|
|
12
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
13
|
-
|
|
9
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
14
10
|
var Spacing = function Spacing() {
|
|
15
|
-
return /*#__PURE__*/_react
|
|
11
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
16
12
|
style: {
|
|
17
13
|
overflowY: 'auto',
|
|
18
14
|
height: '100%',
|
|
19
15
|
overflowX: 'hidden'
|
|
20
16
|
}
|
|
21
|
-
}, /*#__PURE__*/_react
|
|
17
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
22
18
|
style: {
|
|
23
19
|
display: 'flex',
|
|
24
20
|
justifyContent: 'space-between',
|
|
25
21
|
marginBottom: '1em'
|
|
26
22
|
}
|
|
27
|
-
}, /*#__PURE__*/_react
|
|
23
|
+
}, /*#__PURE__*/_react["default"].createElement(Box, {
|
|
28
24
|
text: '4px',
|
|
29
25
|
size: 'var(--spacing4)'
|
|
30
|
-
}), /*#__PURE__*/_react
|
|
26
|
+
}), /*#__PURE__*/_react["default"].createElement(Box, {
|
|
31
27
|
text: '8px',
|
|
32
28
|
size: 'var(--spacing8)'
|
|
33
|
-
}), /*#__PURE__*/_react
|
|
29
|
+
}), /*#__PURE__*/_react["default"].createElement(Box, {
|
|
34
30
|
text: '12px',
|
|
35
31
|
size: 'var(--spacing12)'
|
|
36
|
-
}), /*#__PURE__*/_react
|
|
32
|
+
}), /*#__PURE__*/_react["default"].createElement(Box, {
|
|
37
33
|
text: '16px',
|
|
38
34
|
size: 'var(--spacing16)'
|
|
39
|
-
})), /*#__PURE__*/_react
|
|
35
|
+
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
40
36
|
style: {
|
|
41
37
|
display: 'flex',
|
|
42
38
|
justifyContent: 'space-between',
|
|
43
39
|
marginBottom: '1em'
|
|
44
40
|
}
|
|
45
|
-
}, /*#__PURE__*/_react
|
|
41
|
+
}, /*#__PURE__*/_react["default"].createElement(Box, {
|
|
46
42
|
text: '20px',
|
|
47
43
|
size: 'var(--spacing20)'
|
|
48
|
-
}), /*#__PURE__*/_react
|
|
44
|
+
}), /*#__PURE__*/_react["default"].createElement(Box, {
|
|
49
45
|
text: '24px',
|
|
50
46
|
size: 'var(--spacing24)'
|
|
51
|
-
}), /*#__PURE__*/_react
|
|
47
|
+
}), /*#__PURE__*/_react["default"].createElement(Box, {
|
|
52
48
|
text: '32px',
|
|
53
49
|
size: 'var(--spacing32)'
|
|
54
|
-
}), /*#__PURE__*/_react
|
|
50
|
+
}), /*#__PURE__*/_react["default"].createElement(Box, {
|
|
55
51
|
text: '40px',
|
|
56
52
|
size: 'var(--spacing40)'
|
|
57
|
-
})), /*#__PURE__*/_react
|
|
53
|
+
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
58
54
|
style: {
|
|
59
55
|
display: 'flex',
|
|
60
56
|
justifyContent: 'space-between',
|
|
61
57
|
marginBottom: '1em'
|
|
62
58
|
}
|
|
63
|
-
}, /*#__PURE__*/_react
|
|
59
|
+
}, /*#__PURE__*/_react["default"].createElement(Box, {
|
|
64
60
|
text: '48px',
|
|
65
61
|
size: 'var(--spacing48)'
|
|
66
|
-
}), /*#__PURE__*/_react
|
|
62
|
+
}), /*#__PURE__*/_react["default"].createElement(Box, {
|
|
67
63
|
text: '56px',
|
|
68
64
|
size: 'var(--spacing56)'
|
|
69
|
-
}), /*#__PURE__*/_react
|
|
65
|
+
}), /*#__PURE__*/_react["default"].createElement(Box, {
|
|
70
66
|
text: '64px',
|
|
71
67
|
size: 'var(--spacing64)'
|
|
72
|
-
}), /*#__PURE__*/_react
|
|
68
|
+
}), /*#__PURE__*/_react["default"].createElement(Box, {
|
|
73
69
|
text: '72px',
|
|
74
70
|
size: 'var(--spacing72)'
|
|
75
|
-
})), /*#__PURE__*/_react
|
|
71
|
+
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
76
72
|
style: {
|
|
77
73
|
display: 'flex',
|
|
78
74
|
justifyContent: 'space-between',
|
|
79
75
|
marginBottom: '1em'
|
|
80
76
|
}
|
|
81
|
-
}, /*#__PURE__*/_react
|
|
77
|
+
}, /*#__PURE__*/_react["default"].createElement(Box, {
|
|
82
78
|
text: '80px',
|
|
83
79
|
size: 'var(--spacing80)'
|
|
84
|
-
}), /*#__PURE__*/_react
|
|
80
|
+
}), /*#__PURE__*/_react["default"].createElement(Box, {
|
|
85
81
|
text: '96px',
|
|
86
82
|
size: 'var(--spacing96)'
|
|
87
|
-
}), /*#__PURE__*/_react
|
|
83
|
+
}), /*#__PURE__*/_react["default"].createElement(Box, {
|
|
88
84
|
text: '112px',
|
|
89
85
|
size: 'var(--spacing112)'
|
|
90
|
-
}), /*#__PURE__*/_react
|
|
86
|
+
}), /*#__PURE__*/_react["default"].createElement(Box, {
|
|
91
87
|
text: '128px',
|
|
92
88
|
size: 'var(--spacing128)'
|
|
93
|
-
})), /*#__PURE__*/_react
|
|
89
|
+
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
94
90
|
style: {
|
|
95
91
|
display: 'flex',
|
|
96
92
|
justifyContent: 'space-between',
|
|
97
93
|
marginBottom: '1em'
|
|
98
94
|
}
|
|
99
|
-
}, /*#__PURE__*/_react
|
|
95
|
+
}, /*#__PURE__*/_react["default"].createElement(Box, {
|
|
100
96
|
text: '144px',
|
|
101
97
|
size: 'var(--spacing144)'
|
|
102
|
-
}), /*#__PURE__*/_react
|
|
98
|
+
}), /*#__PURE__*/_react["default"].createElement(Box, {
|
|
103
99
|
text: '160px',
|
|
104
100
|
size: 'var(--spacing160)'
|
|
105
|
-
}), /*#__PURE__*/_react
|
|
101
|
+
}), /*#__PURE__*/_react["default"].createElement(Box, {
|
|
106
102
|
text: '176px',
|
|
107
103
|
size: 'var(--spacing176)'
|
|
108
|
-
}), /*#__PURE__*/_react
|
|
104
|
+
}), /*#__PURE__*/_react["default"].createElement(Box, {
|
|
109
105
|
text: '192px',
|
|
110
106
|
size: 'var(--spacing192)'
|
|
111
|
-
})), /*#__PURE__*/_react
|
|
107
|
+
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
112
108
|
style: {
|
|
113
109
|
display: 'flex',
|
|
114
110
|
justifyContent: 'space-between',
|
|
115
111
|
marginBottom: '1em'
|
|
116
112
|
}
|
|
117
|
-
}, /*#__PURE__*/_react
|
|
113
|
+
}, /*#__PURE__*/_react["default"].createElement(Box, {
|
|
118
114
|
text: '36px',
|
|
119
115
|
size: 'var(--spacing36)'
|
|
120
|
-
}), /*#__PURE__*/_react
|
|
116
|
+
}), /*#__PURE__*/_react["default"].createElement(Box, {
|
|
121
117
|
text: '52px',
|
|
122
118
|
size: 'var(--spacing52)'
|
|
123
|
-
}), /*#__PURE__*/_react
|
|
119
|
+
}), /*#__PURE__*/_react["default"].createElement(Box, {
|
|
124
120
|
text: '76px',
|
|
125
121
|
size: 'var(--spacing76)'
|
|
126
|
-
}), /*#__PURE__*/_react
|
|
122
|
+
}), /*#__PURE__*/_react["default"].createElement(Box, {
|
|
127
123
|
text: '190px',
|
|
128
124
|
size: 'var(--spacing120)'
|
|
129
125
|
})));
|
|
130
126
|
};
|
|
131
|
-
|
|
132
127
|
Spacing.displayName = "Spacing";
|
|
133
|
-
|
|
134
128
|
var Box = function Box(_ref) {
|
|
135
129
|
var text = _ref.text,
|
|
136
|
-
|
|
137
|
-
return /*#__PURE__*/_react
|
|
130
|
+
size = _ref.size;
|
|
131
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
138
132
|
style: {
|
|
139
133
|
textAlign: 'center'
|
|
140
134
|
}
|
|
141
|
-
}, /*#__PURE__*/_react
|
|
135
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
142
136
|
style: {
|
|
143
137
|
width: size,
|
|
144
138
|
height: size,
|
|
145
139
|
background: 'var(--primary50)'
|
|
146
140
|
}
|
|
147
|
-
}), /*#__PURE__*/_react
|
|
141
|
+
}), /*#__PURE__*/_react["default"].createElement(_Typography["default"], {
|
|
148
142
|
variant: 'S',
|
|
149
143
|
color: 'var(--primary900)'
|
|
150
144
|
}, text));
|
|
151
145
|
};
|
|
152
|
-
|
|
153
146
|
Box.displayName = "Box";
|
|
154
147
|
var _default = Spacing;
|
|
155
|
-
exports
|
|
148
|
+
exports["default"] = _default;
|
|
@@ -3,17 +3,13 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports
|
|
7
|
-
|
|
6
|
+
exports["default"] = exports.Default = void 0;
|
|
8
7
|
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
|
|
10
8
|
var _Spacing = _interopRequireDefault(require("./Spacing"));
|
|
11
|
-
|
|
12
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
13
|
-
|
|
9
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
14
10
|
var _default = {
|
|
15
11
|
title: 'Components/Spacing',
|
|
16
|
-
component: _Spacing
|
|
12
|
+
component: _Spacing["default"],
|
|
17
13
|
argTypes: {},
|
|
18
14
|
parameters: {
|
|
19
15
|
storybookCodePanel: {
|
|
@@ -26,12 +22,10 @@ var _default = {
|
|
|
26
22
|
}
|
|
27
23
|
}
|
|
28
24
|
};
|
|
29
|
-
exports
|
|
30
|
-
|
|
25
|
+
exports["default"] = _default;
|
|
31
26
|
var Template = function Template(args) {
|
|
32
|
-
return /*#__PURE__*/_react
|
|
27
|
+
return /*#__PURE__*/_react["default"].createElement(_Spacing["default"], args);
|
|
33
28
|
};
|
|
34
|
-
|
|
35
29
|
Template.displayName = "Template";
|
|
36
30
|
var Default = Template.bind({});
|
|
37
31
|
exports.Default = Default;
|
|
@@ -3,39 +3,27 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports
|
|
7
|
-
|
|
6
|
+
exports["default"] = void 0;
|
|
8
7
|
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
|
|
10
8
|
var _Stars = _interopRequireDefault(require("./Stars"));
|
|
11
|
-
|
|
12
|
-
function
|
|
13
|
-
|
|
14
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
15
|
-
|
|
9
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
10
|
+
function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
|
|
16
11
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
17
|
-
|
|
18
|
-
function
|
|
19
|
-
|
|
20
|
-
function
|
|
21
|
-
|
|
22
|
-
function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
23
|
-
|
|
24
|
-
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
25
|
-
|
|
12
|
+
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
13
|
+
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) { n[e] = r[e]; } return n; }
|
|
14
|
+
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0) { ; } } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
15
|
+
function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
26
16
|
var DesignDrawerPanel = function DesignDrawerPanel(_ref) {
|
|
27
17
|
var lengthStars = _ref.lengthStars,
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
return /*#__PURE__*/_react.default.createElement("div", null, /*#__PURE__*/_react.default.createElement(_Stars.default, {
|
|
18
|
+
disabled = _ref.disabled,
|
|
19
|
+
error = _ref.error,
|
|
20
|
+
lowStars = _ref.lowStars,
|
|
21
|
+
variant = _ref.variant;
|
|
22
|
+
var _React$useState = _react["default"].useState(0),
|
|
23
|
+
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
24
|
+
stars = _React$useState2[0],
|
|
25
|
+
setStars = _React$useState2[1];
|
|
26
|
+
return /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement(_Stars["default"], {
|
|
39
27
|
name: 'stars',
|
|
40
28
|
value: stars,
|
|
41
29
|
disabled: disabled,
|
|
@@ -48,7 +36,6 @@ var DesignDrawerPanel = function DesignDrawerPanel(_ref) {
|
|
|
48
36
|
variant: variant
|
|
49
37
|
}));
|
|
50
38
|
};
|
|
51
|
-
|
|
52
39
|
DesignDrawerPanel.displayName = "DesignDrawerPanel";
|
|
53
40
|
var _default = DesignDrawerPanel;
|
|
54
|
-
exports
|
|
41
|
+
exports["default"] = _default;
|
|
@@ -1,123 +1,74 @@
|
|
|
1
|
-
.cbx-rating
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
top: -9999px;
|
|
9
|
-
clip: rect(0, 0, 0, 0);
|
|
10
|
-
visibility: hidden;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
.cbx-rating:not(:checked)>label {
|
|
14
|
-
float: right;
|
|
15
|
-
width: 3.125rem;
|
|
16
|
-
padding: 0 0.319rem;
|
|
17
|
-
overflow: hidden;
|
|
18
|
-
white-space: nowrap;
|
|
19
|
-
cursor: pointer;
|
|
20
|
-
font-size: 320%;
|
|
21
|
-
margin-bottom: 0;
|
|
22
|
-
line-height: 1.2;
|
|
23
|
-
color: #ddd;
|
|
24
|
-
transition: color .2s;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
.cbx-rating:not(:checked)>label.cbx-lowStars {
|
|
28
|
-
font-size: 200%;
|
|
29
|
-
width: 2.125rem;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
.cbx-rating:not(:checked)>label:before {
|
|
33
|
-
content: '★ ';
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
.cbx-rating>input:checked~label {
|
|
37
|
-
color: var(--primary);
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
.cbx-rating.cbx-rating-secondary>input:checked~label {
|
|
41
|
-
color: var(--secondary);
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
.cbx-rating:not(:checked)>label:hover,
|
|
45
|
-
.cbx-rating:not(:checked)>label:hover~label {
|
|
46
|
-
color: var(--primary);
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
.cbx-rating.cbx-rating-secondary:not(:checked)>label:hover,
|
|
50
|
-
.cbx-rating.cbx-rating-secondary:not(:checked)>label:hover~label {
|
|
51
|
-
color: var(--secondary);
|
|
1
|
+
.cbx-rating,
|
|
2
|
+
.cbx-rating-disabled {
|
|
3
|
+
display: flex;
|
|
4
|
+
align-items: center;
|
|
5
|
+
border: none;
|
|
6
|
+
padding: 0;
|
|
7
|
+
margin: 0;
|
|
52
8
|
}
|
|
53
9
|
|
|
54
|
-
.cbx-rating>input
|
|
55
|
-
.cbx-rating>input
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
10
|
+
.cbx-rating > input,
|
|
11
|
+
.cbx-rating-disabled > input {
|
|
12
|
+
position: absolute;
|
|
13
|
+
width: 1px;
|
|
14
|
+
height: 1px;
|
|
15
|
+
padding: 0;
|
|
16
|
+
margin: -1px;
|
|
17
|
+
overflow: hidden;
|
|
18
|
+
clip: rect(0, 0, 0, 0);
|
|
19
|
+
white-space: nowrap;
|
|
20
|
+
border: 0;
|
|
60
21
|
}
|
|
61
22
|
|
|
62
|
-
.cbx-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
23
|
+
.cbx-star-label {
|
|
24
|
+
display: inline-flex;
|
|
25
|
+
align-items: center;
|
|
26
|
+
justify-content: center;
|
|
27
|
+
width: 3.125rem;
|
|
28
|
+
cursor: pointer;
|
|
29
|
+
font-size: 320%;
|
|
30
|
+
line-height: 1.2;
|
|
31
|
+
color: var(--gray3);
|
|
32
|
+
transition: color 0.2s;
|
|
68
33
|
}
|
|
69
34
|
|
|
70
|
-
.cbx-rating
|
|
71
|
-
|
|
72
|
-
top: 0.125rem;
|
|
73
|
-
left: 0.125rem;
|
|
35
|
+
.cbx-rating-disabled .cbx-star-label {
|
|
36
|
+
cursor: default;
|
|
74
37
|
}
|
|
75
38
|
|
|
76
|
-
.cbx-
|
|
77
|
-
|
|
78
|
-
|
|
39
|
+
.cbx-star-label.cbx-lowStars {
|
|
40
|
+
font-size: 200%;
|
|
41
|
+
width: 2.125rem;
|
|
79
42
|
}
|
|
80
43
|
|
|
81
|
-
.cbx-
|
|
82
|
-
|
|
83
|
-
position: absolute;
|
|
84
|
-
top: -9999px;
|
|
85
|
-
clip: rect(0, 0, 0, 0);
|
|
44
|
+
.cbx-star-filled {
|
|
45
|
+
color: var(--primary);
|
|
86
46
|
}
|
|
87
47
|
|
|
88
|
-
.cbx-rating-
|
|
89
|
-
|
|
90
|
-
width: 3.125rem;
|
|
91
|
-
padding: 0 0.319rem;
|
|
92
|
-
overflow: hidden;
|
|
93
|
-
white-space: nowrap;
|
|
94
|
-
font-size: 320%;
|
|
95
|
-
margin-bottom: 0;
|
|
96
|
-
line-height: 1.2;
|
|
97
|
-
color: #ddd;
|
|
48
|
+
.cbx-rating-secondary .cbx-star-filled {
|
|
49
|
+
color: var(--primary75);
|
|
98
50
|
}
|
|
99
51
|
|
|
100
|
-
.cbx-
|
|
101
|
-
|
|
102
|
-
|
|
52
|
+
.cbx-star-label:active {
|
|
53
|
+
position: relative;
|
|
54
|
+
top: 0.125rem;
|
|
55
|
+
left: 0.125rem;
|
|
103
56
|
}
|
|
104
57
|
|
|
105
|
-
.cbx-rating
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
.cbx-rating-disabled>input:checked~label {
|
|
110
|
-
color: var(--primary);
|
|
58
|
+
.cbx-rating > input:focus-visible + .cbx-star-label {
|
|
59
|
+
outline: 2px solid var(--accent);
|
|
60
|
+
outline-offset: 2px;
|
|
61
|
+
border-radius: 0.25rem;
|
|
111
62
|
}
|
|
112
63
|
|
|
113
64
|
.cbx-rating-legend-hidden {
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
65
|
+
position: absolute;
|
|
66
|
+
width: 1px;
|
|
67
|
+
height: 1px;
|
|
68
|
+
padding: 0;
|
|
69
|
+
margin: -1px;
|
|
70
|
+
overflow: hidden;
|
|
71
|
+
clip: rect(0, 0, 0, 0);
|
|
72
|
+
white-space: nowrap;
|
|
73
|
+
border: 0;
|
|
74
|
+
}
|