react-miui 0.35.0 → 0.36.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/CHANGELOG.md +4 -0
- package/dist/components/layout/header/HeaderIconAction.d.ts.map +1 -1
- package/dist/components/layout/header/HeaderIconAction.js +13 -3
- package/dist/components/layout/header/HeaderIconAction.js.map +1 -1
- package/dist/components/layout/header/HeaderIconAction.styled.d.ts.map +1 -1
- package/dist/components/layout/header/HeaderIconAction.styled.js +11 -17
- package/dist/components/layout/header/HeaderIconAction.styled.js.map +1 -1
- package/dist/components/layout/list/Item.d.ts.map +1 -1
- package/dist/components/layout/list/Item.js +17 -7
- package/dist/components/layout/list/Item.js.map +1 -1
- package/dist/components/layout/list/Item.styled.d.ts.map +1 -1
- package/dist/components/layout/list/Item.styled.js +2 -1
- package/dist/components/layout/list/Item.styled.js.map +1 -1
- package/dist/components/ui/button/Button.d.ts +94 -1
- package/dist/components/ui/button/Button.d.ts.map +1 -1
- package/dist/components/ui/button/Button.js +59 -2
- package/dist/components/ui/button/Button.js.map +1 -1
- package/dist/components/ui/button/Button.styled.d.ts +2 -2
- package/dist/components/ui/button/Button.styled.d.ts.map +1 -1
- package/dist/components/ui/button/Button.styled.js +4 -3
- package/dist/components/ui/button/Button.styled.js.map +1 -1
- package/dist/components/ui/directionPad/Button.d.ts.map +1 -1
- package/dist/components/ui/directionPad/Button.js +7 -2
- package/dist/components/ui/directionPad/Button.js.map +1 -1
- package/dist/components/ui/directionPad/Button.styled.d.ts.map +1 -1
- package/dist/components/ui/directionPad/Button.styled.js +2 -1
- package/dist/components/ui/directionPad/Button.styled.js.map +1 -1
- package/dist/components/ui/directionPad/Middle.d.ts.map +1 -1
- package/dist/components/ui/directionPad/Middle.js +7 -1
- package/dist/components/ui/directionPad/Middle.js.map +1 -1
- package/dist/components/ui/directionPad/Middle.styled.d.ts.map +1 -1
- package/dist/components/ui/directionPad/Middle.styled.js +2 -1
- package/dist/components/ui/directionPad/Middle.styled.js.map +1 -1
- package/dist/components/ui/modal/ModalButtons.d.ts +179 -1
- package/dist/components/ui/modal/ModalButtons.d.ts.map +1 -1
- package/dist/components/ui/modal/ModalButtons.js +63 -2
- package/dist/components/ui/modal/ModalButtons.js.map +1 -1
- package/dist/components/ui/modal/ModalButtons.styled.d.ts +90 -91
- package/dist/components/ui/modal/ModalButtons.styled.d.ts.map +1 -1
- package/dist/components/ui/modal/ModalButtons.styled.js +5 -7
- package/dist/components/ui/modal/ModalButtons.styled.js.map +1 -1
- package/dist/components/ui/pop/Pop.styled.d.ts.map +1 -1
- package/dist/components/ui/pop/Pop.styled.js +15 -17
- package/dist/components/ui/pop/Pop.styled.js.map +1 -1
- package/dist/components/ui/pop/PopOption.d.ts.map +1 -1
- package/dist/components/ui/pop/PopOption.js +7 -2
- package/dist/components/ui/pop/PopOption.js.map +1 -1
- package/dist/components/ui/toolButton/ToolButton.d.ts +94 -1
- package/dist/components/ui/toolButton/ToolButton.d.ts.map +1 -1
- package/dist/components/ui/toolButton/ToolButton.js +59 -2
- package/dist/components/ui/toolButton/ToolButton.js.map +1 -1
- package/dist/components/ui/toolButton/ToolButton.styled.d.ts +2 -2
- package/dist/components/ui/toolButton/ToolButton.styled.d.ts.map +1 -1
- package/dist/components/ui/toolButton/ToolButton.styled.js +20 -25
- package/dist/components/ui/toolButton/ToolButton.styled.js.map +1 -1
- package/dist/utils/useRipple.d.ts +15 -0
- package/dist/utils/useRipple.d.ts.map +1 -0
- package/dist/utils/useRipple.js +120 -0
- package/dist/utils/useRipple.js.map +1 -0
- package/dist/utils/useRipple.styled.d.ts +28 -0
- package/dist/utils/useRipple.styled.d.ts.map +1 -0
- package/dist/utils/useRipple.styled.js +36 -0
- package/dist/utils/useRipple.styled.js.map +1 -0
- package/docs/classes/index.Pop.html +7 -7
- package/docs/documents/Test.html +2 -2
- package/docs/enums/index.ICON.html +2 -2
- package/docs/functions/index.Action.html +3 -3
- package/docs/functions/index.Button.html +3 -9
- package/docs/functions/index.Card.html +2 -2
- package/docs/functions/index.Checkbox.html +3 -3
- package/docs/functions/index.Choice.html +2 -2
- package/docs/functions/index.ColorPicker.html +3 -3
- package/docs/functions/index.CoveringLoader.html +3 -3
- package/docs/functions/index.DirectionPad.html +2 -2
- package/docs/functions/index.Drawer.html +2 -2
- package/docs/functions/index.EqualActions.html +2 -2
- package/docs/functions/index.FullLoader.html +3 -3
- package/docs/functions/index.Gap.html +2 -2
- package/docs/functions/index.HandleEsc.html +3 -3
- package/docs/functions/index.Header.html +3 -3
- package/docs/functions/index.HeaderIconAction.html +3 -3
- package/docs/functions/index.Icon-1.html +2 -2
- package/docs/functions/index.If.html +3 -3
- package/docs/functions/index.Input.html +1 -1
- package/docs/functions/index.KeyValue.html +2 -2
- package/docs/functions/index.Label.html +2 -2
- package/docs/functions/index.Line.html +3 -3
- package/docs/functions/index.List.html +2 -2
- package/docs/functions/index.Loader.html +3 -3
- package/docs/functions/index.Loading.html +3 -3
- package/docs/functions/index.Message.html +3 -3
- package/docs/functions/index.Modal.html +2 -2
- package/docs/functions/index.ModalButtons.html +3 -3
- package/docs/functions/index.PopLoader.html +3 -3
- package/docs/functions/index.PopOption.html +2 -2
- package/docs/functions/index.Progress.html +2 -2
- package/docs/functions/index.SearchContainer.html +2 -2
- package/docs/functions/index.Section.html +4 -4
- package/docs/functions/index.Select.html +2 -2
- package/docs/functions/index.Selector.html +2 -2
- package/docs/functions/index.Spacer.html +2 -2
- package/docs/functions/index.Stats.html +2 -2
- package/docs/functions/index.StickyHeader.html +4 -4
- package/docs/functions/index.Table.html +2 -2
- package/docs/functions/index.TextArea.html +2 -2
- package/docs/functions/index.TimePicker.html +2 -2
- package/docs/functions/index.ToasterProvider.html +3 -3
- package/docs/functions/index.Toggle.html +3 -3
- package/docs/functions/index.ToolButton.html +3 -9
- package/docs/functions/index.Tooltip.html +3 -3
- package/docs/functions/index.TooltipProvider.html +2 -2
- package/docs/functions/index.borderPxToRem.html +1 -1
- package/docs/functions/index.createTheme.html +1 -1
- package/docs/functions/index.css.html +1 -1
- package/docs/functions/index.dimensionsPxToRem.html +1 -1
- package/docs/functions/index.fontPxToRem.html +1 -1
- package/docs/functions/index.getCssText.html +1 -1
- package/docs/functions/index.globalCss.html +2 -2
- package/docs/functions/index.injectGlobalStyles.html +1 -1
- package/docs/functions/index.keyframes.html +1 -1
- package/docs/functions/index.pxToRem.html +1 -1
- package/docs/functions/index.styled.html +1 -1
- package/docs/functions/index.toast.html +2 -2
- package/docs/functions/index.useToaster.html +1 -1
- package/docs/index.html +2 -2
- package/docs/interfaces/index.IconProps.html +2 -2
- package/docs/interfaces/index.InputCustomProps.html +3 -3
- package/docs/interfaces/index.LoaderProps.html +6 -6
- package/docs/interfaces/index.StickyHeaderProps.html +4 -4
- package/docs/interfaces/index.ToasterProviderProps.html +3 -3
- package/docs/interfaces/index.TooltipProps.html +14 -14
- package/docs/interfaces/index.TooltipProviderProps.html +5 -5
- package/docs/modules/index.html +1 -1
- package/docs/modules.html +1 -1
- package/docs/types/index.ActionProps.html +1 -1
- package/docs/types/index.CardProps.html +1 -1
- package/docs/types/index.CheckboxProps.html +2 -2
- package/docs/types/index.ChoiceProps.html +1 -1
- package/docs/types/index.ColorPickerProps.html +1 -1
- package/docs/types/index.DirectionPadProps.html +1 -1
- package/docs/types/index.DrawerFrom.html +1 -1
- package/docs/types/index.DrawerProps.html +2 -2
- package/docs/types/index.EqualActionsProps.html +1 -1
- package/docs/types/index.HeaderProps.html +1 -1
- package/docs/types/index.InputProps.html +1 -1
- package/docs/types/index.KeyValueProps.html +1 -1
- package/docs/types/index.LabelProps.html +1 -1
- package/docs/types/index.OverwriteProps.html +1 -1
- package/docs/types/index.ProgressProps.html +2 -2
- package/docs/types/index.SelectProps.html +1 -1
- package/docs/types/index.SelectorProps.html +1 -1
- package/docs/types/index.Stat.html +1 -1
- package/docs/types/index.StatsProps.html +1 -1
- package/docs/types/index.TextAreaProps.html +1 -1
- package/docs/types/index.ThemeCSS.html +1 -1
- package/docs/types/index.TimePickerProps.html +1 -1
- package/docs/types/index.ToggleProps.html +2 -2
- package/docs/variables/index.ActionBadgeSelector.html +1 -1
- package/docs/variables/index.ActionCircleSelector.html +1 -1
- package/docs/variables/index.CheckboxCheckmarkWrapperSelector.html +1 -1
- package/docs/variables/index.CheckboxTextLabelSelector.html +1 -1
- package/docs/variables/index.ChoiceItemSelector.html +1 -1
- package/docs/variables/index.ColorPickerColorDisplaySelector.html +1 -1
- package/docs/variables/index.DirectionPadButtonDotSelector.html +1 -1
- package/docs/variables/index.DirectionPadButtonSelector.html +1 -1
- package/docs/variables/index.DirectionPadLineSelector.html +1 -1
- package/docs/variables/index.DirectionPadMiddleSelector.html +1 -1
- package/docs/variables/index.DrawerContentSelector.html +1 -1
- package/docs/variables/index.HeaderAfterSelector.html +1 -1
- package/docs/variables/index.HeaderBeforeSelector.html +1 -1
- package/docs/variables/index.HeaderContentsSelector.html +1 -1
- package/docs/variables/index.HeaderIconActionIconSelector.html +1 -1
- package/docs/variables/index.InputContainerSelector.html +1 -1
- package/docs/variables/index.InputInputSelector.html +1 -1
- package/docs/variables/index.InputLabelSelector.html +1 -1
- package/docs/variables/index.InputPrefixSelector.html +1 -1
- package/docs/variables/index.InputSuffixSelector.html +1 -1
- package/docs/variables/index.KeyValueIconSelector.html +1 -1
- package/docs/variables/index.KeyValueItemSelector.html +1 -1
- package/docs/variables/index.KeyValueKeySelector.html +1 -1
- package/docs/variables/index.KeyValuePairSelector.html +1 -1
- package/docs/variables/index.KeyValueValueSelector.html +1 -1
- package/docs/variables/index.LabelTextSelector.html +1 -1
- package/docs/variables/index.ListItemInnerContainerClassNameSelector.html +1 -1
- package/docs/variables/index.ModalContainerSelector.html +1 -1
- package/docs/variables/index.ModalRemovePaddingSelector.html +1 -1
- package/docs/variables/index.ModalTitleSelector.html +1 -1
- package/docs/variables/index.PopListSelector.html +1 -1
- package/docs/variables/index.PopOptionButtonSelector.html +1 -1
- package/docs/variables/index.PopOptionIconSelector.html +1 -1
- package/docs/variables/index.PopOverlaySelector.html +1 -1
- package/docs/variables/index.ProgressBackgroundSelector.html +1 -1
- package/docs/variables/index.ProgressValueSelector.html +1 -1
- package/docs/variables/index.SelectorItemSelector.html +1 -1
- package/docs/variables/index.StatsItemSelector.html +1 -1
- package/docs/variables/index.StatsLabelSelector.html +1 -1
- package/docs/variables/index.StatsSeparatorSelector.html +1 -1
- package/docs/variables/index.StatsValueSelector.html +1 -1
- package/docs/variables/index.TextAreaLabelSelector.html +1 -1
- package/docs/variables/index.TextAreaTextAreaSelector.html +1 -1
- package/docs/variables/index.TextAreaWrapperSelector.html +1 -1
- package/docs/variables/index.ToggleStyledToggleSelector.html +1 -1
- package/docs/variables/index.TooltipContentSelector.html +1 -1
- package/docs/variables/index.config.html +1 -1
- package/docs/variables/index.cssReset.html +2 -2
- package/docs/variables/index.darkTheme.html +1 -1
- package/docs/variables/index.miuiScrollbars.html +1 -1
- package/docs/variables/index.theme.html +1 -1
- package/esm/components/layout/header/HeaderIconAction.d.ts.map +1 -1
- package/esm/components/layout/header/HeaderIconAction.js +13 -3
- package/esm/components/layout/header/HeaderIconAction.js.map +1 -1
- package/esm/components/layout/header/HeaderIconAction.styled.d.ts.map +1 -1
- package/esm/components/layout/header/HeaderIconAction.styled.js +11 -17
- package/esm/components/layout/header/HeaderIconAction.styled.js.map +1 -1
- package/esm/components/layout/list/Item.d.ts.map +1 -1
- package/esm/components/layout/list/Item.js +18 -8
- package/esm/components/layout/list/Item.js.map +1 -1
- package/esm/components/layout/list/Item.styled.d.ts.map +1 -1
- package/esm/components/layout/list/Item.styled.js +2 -1
- package/esm/components/layout/list/Item.styled.js.map +1 -1
- package/esm/components/ui/button/Button.d.ts +94 -1
- package/esm/components/ui/button/Button.d.ts.map +1 -1
- package/esm/components/ui/button/Button.js +15 -1
- package/esm/components/ui/button/Button.js.map +1 -1
- package/esm/components/ui/button/Button.styled.d.ts +2 -2
- package/esm/components/ui/button/Button.styled.d.ts.map +1 -1
- package/esm/components/ui/button/Button.styled.js +3 -2
- package/esm/components/ui/button/Button.styled.js.map +1 -1
- package/esm/components/ui/directionPad/Button.d.ts.map +1 -1
- package/esm/components/ui/directionPad/Button.js +7 -2
- package/esm/components/ui/directionPad/Button.js.map +1 -1
- package/esm/components/ui/directionPad/Button.styled.d.ts.map +1 -1
- package/esm/components/ui/directionPad/Button.styled.js +2 -1
- package/esm/components/ui/directionPad/Button.styled.js.map +1 -1
- package/esm/components/ui/directionPad/Middle.d.ts.map +1 -1
- package/esm/components/ui/directionPad/Middle.js +7 -1
- package/esm/components/ui/directionPad/Middle.js.map +1 -1
- package/esm/components/ui/directionPad/Middle.styled.d.ts.map +1 -1
- package/esm/components/ui/directionPad/Middle.styled.js +2 -1
- package/esm/components/ui/directionPad/Middle.styled.js.map +1 -1
- package/esm/components/ui/modal/ModalButtons.d.ts +179 -1
- package/esm/components/ui/modal/ModalButtons.d.ts.map +1 -1
- package/esm/components/ui/modal/ModalButtons.js +19 -1
- package/esm/components/ui/modal/ModalButtons.js.map +1 -1
- package/esm/components/ui/modal/ModalButtons.styled.d.ts +90 -91
- package/esm/components/ui/modal/ModalButtons.styled.d.ts.map +1 -1
- package/esm/components/ui/modal/ModalButtons.styled.js +3 -6
- package/esm/components/ui/modal/ModalButtons.styled.js.map +1 -1
- package/esm/components/ui/pop/Pop.styled.d.ts.map +1 -1
- package/esm/components/ui/pop/Pop.styled.js +15 -17
- package/esm/components/ui/pop/Pop.styled.js.map +1 -1
- package/esm/components/ui/pop/PopOption.d.ts.map +1 -1
- package/esm/components/ui/pop/PopOption.js +7 -2
- package/esm/components/ui/pop/PopOption.js.map +1 -1
- package/esm/components/ui/toolButton/ToolButton.d.ts +94 -1
- package/esm/components/ui/toolButton/ToolButton.d.ts.map +1 -1
- package/esm/components/ui/toolButton/ToolButton.js +15 -1
- package/esm/components/ui/toolButton/ToolButton.js.map +1 -1
- package/esm/components/ui/toolButton/ToolButton.styled.d.ts +2 -2
- package/esm/components/ui/toolButton/ToolButton.styled.d.ts.map +1 -1
- package/esm/components/ui/toolButton/ToolButton.styled.js +19 -24
- package/esm/components/ui/toolButton/ToolButton.styled.js.map +1 -1
- package/esm/utils/useRipple.d.ts +15 -0
- package/esm/utils/useRipple.d.ts.map +1 -0
- package/esm/utils/useRipple.js +84 -0
- package/esm/utils/useRipple.js.map +1 -0
- package/esm/utils/useRipple.styled.d.ts +28 -0
- package/esm/utils/useRipple.styled.d.ts.map +1 -0
- package/esm/utils/useRipple.styled.js +33 -0
- package/esm/utils/useRipple.styled.js.map +1 -0
- package/package.json +1 -1
- package/src/components/layout/header/HeaderIconAction.styled.ts +11 -18
- package/src/components/layout/header/HeaderIconAction.tsx +32 -5
- package/src/components/layout/list/Item.styled.ts +2 -1
- package/src/components/layout/list/Item.tsx +38 -5
- package/src/components/ui/button/Button.styled.ts +3 -2
- package/src/components/ui/button/Button.tsx +33 -1
- package/src/components/ui/directionPad/Button.styled.ts +2 -1
- package/src/components/ui/directionPad/Button.tsx +13 -1
- package/src/components/ui/directionPad/Middle.styled.ts +2 -1
- package/src/components/ui/directionPad/Middle.tsx +13 -1
- package/src/components/ui/modal/ModalButtons.styled.ts +4 -7
- package/src/components/ui/modal/ModalButtons.tsx +38 -1
- package/src/components/ui/pop/Pop.styled.ts +15 -18
- package/src/components/ui/pop/PopOption.tsx +15 -1
- package/src/components/ui/toolButton/ToolButton.styled.ts +20 -26
- package/src/components/ui/toolButton/ToolButton.tsx +33 -0
- package/src/utils/useRipple.styled.ts +56 -0
- package/src/utils/useRipple.tsx +139 -0
- package/src/components/ui/toolButton/ToolButton.ts +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
declare const
|
|
1
|
+
declare const Container: import("../../../../node_modules/@stitches/react/types/styled-component").StyledComponent<"div", {}, {}, import("../../../../node_modules/@stitches/react/types/css-util").CSS<{}, {
|
|
2
2
|
colors: {
|
|
3
3
|
background: "white";
|
|
4
4
|
mainColor: "#008ad2";
|
|
@@ -82,94 +82,93 @@ declare const ModalButtons: import("../../../../node_modules/@stitches/react/typ
|
|
|
82
82
|
width: string | number;
|
|
83
83
|
height: string | number;
|
|
84
84
|
};
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
};
|
|
174
|
-
export { ModalButtons, };
|
|
85
|
+
}>>;
|
|
86
|
+
declare const StyledButton: import("../../../../node_modules/@stitches/react/types/styled-component").StyledComponent<"button", {
|
|
87
|
+
variant?: "main";
|
|
88
|
+
}, {}, import("../../../../node_modules/@stitches/react/types/css-util").CSS<{}, {
|
|
89
|
+
colors: {
|
|
90
|
+
background: "white";
|
|
91
|
+
mainColor: "#008ad2";
|
|
92
|
+
mainColorAlt: "#006AA9";
|
|
93
|
+
activeBg: "#e7e7e7";
|
|
94
|
+
inactiveBg: "#d3d3de";
|
|
95
|
+
inactiveDarkBg: "#999";
|
|
96
|
+
toggleHandleBg: "#e0e0e0";
|
|
97
|
+
toggleHandleBorder: "#cdcdcd";
|
|
98
|
+
toggleBgDisabled: "#f0f0f0";
|
|
99
|
+
toggleHandleBorderDisabled: "#c29f7d";
|
|
100
|
+
toggleHandleBgDisabled: "#deae84";
|
|
101
|
+
icon: "#636363";
|
|
102
|
+
border: "#d5d5d5";
|
|
103
|
+
buttonBorder: "#bababa";
|
|
104
|
+
headerBorder: "#c8c8c9";
|
|
105
|
+
headerBg: "#efeff0";
|
|
106
|
+
headerText: "#484848";
|
|
107
|
+
text: "#323232";
|
|
108
|
+
text2: "#181818";
|
|
109
|
+
text3: "#000000";
|
|
110
|
+
sub: "#959595";
|
|
111
|
+
popText: "#666";
|
|
112
|
+
toolbarBorder: "#ababab";
|
|
113
|
+
toolbarBg: "#f8f8f8";
|
|
114
|
+
modalBg: "#f7f7f7";
|
|
115
|
+
modalButtonBg: "#f8f8f8";
|
|
116
|
+
modalButtonBorder: "#c2c2c2";
|
|
117
|
+
inputDisabledBg: "#f3f3f3";
|
|
118
|
+
inputDisabledText: "#959595";
|
|
119
|
+
choiceBg: "#ffffff";
|
|
120
|
+
choiceText: "#999999";
|
|
121
|
+
choiceActiveBg: "#f3f3f3";
|
|
122
|
+
choiceActiveText: "#313131";
|
|
123
|
+
choiceBorder: "#cfcfcf";
|
|
124
|
+
selectorText: "#606060";
|
|
125
|
+
selectorActive: "#008ad2";
|
|
126
|
+
blue1: "#038bf4";
|
|
127
|
+
blue2: "#b7d6f5";
|
|
128
|
+
blue3: "#dbe6ff";
|
|
129
|
+
blue4: "#33b4ff";
|
|
130
|
+
blue5: "#30a2e6";
|
|
131
|
+
orange1: "#ff7200";
|
|
132
|
+
orange1Darker: "#cc5b00";
|
|
133
|
+
purple1: "#7357e8";
|
|
134
|
+
green1: "#3ec234";
|
|
135
|
+
green1Darker: "#38af2f";
|
|
136
|
+
pink1: "#ff388f";
|
|
137
|
+
red1: "#ea2700";
|
|
138
|
+
yellow1: "#ffde9d";
|
|
139
|
+
yellow2: "#e4a429";
|
|
140
|
+
yellow3: "#fff5db";
|
|
141
|
+
pinky1: "#f5c0b7";
|
|
142
|
+
pinky2: "#e07b67";
|
|
143
|
+
pinky3: "#ffe1db";
|
|
144
|
+
grey1: "#737373";
|
|
145
|
+
focusColor: "#dcaf00";
|
|
146
|
+
scrollbarsThumb: "#737373";
|
|
147
|
+
scrollbarsBg: "transparent";
|
|
148
|
+
tableStripedBg: "#fafafa";
|
|
149
|
+
toolButtonText: "#666e80";
|
|
150
|
+
};
|
|
151
|
+
}, import("../../../../node_modules/@stitches/react/types/config").DefaultThemeMap, {
|
|
152
|
+
mx: (value: string | number) => {
|
|
153
|
+
marginLeft: string | number;
|
|
154
|
+
marginRight: string | number;
|
|
155
|
+
};
|
|
156
|
+
my: (value: string | number) => {
|
|
157
|
+
marginTop: string | number;
|
|
158
|
+
marginBottom: string | number;
|
|
159
|
+
};
|
|
160
|
+
px: (value: string | number) => {
|
|
161
|
+
paddingLeft: string | number;
|
|
162
|
+
paddingRight: string | number;
|
|
163
|
+
};
|
|
164
|
+
py: (value: string | number) => {
|
|
165
|
+
paddingTop: string | number;
|
|
166
|
+
paddingBottom: string | number;
|
|
167
|
+
};
|
|
168
|
+
size: (value: string | number) => {
|
|
169
|
+
width: string | number;
|
|
170
|
+
height: string | number;
|
|
171
|
+
};
|
|
172
|
+
}>>;
|
|
173
|
+
export { Container, StyledButton, };
|
|
175
174
|
//# sourceMappingURL=ModalButtons.styled.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ModalButtons.styled.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/modal/ModalButtons.styled.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ModalButtons.styled.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/modal/ModalButtons.styled.ts"],"names":[],"mappings":"AAIA,QAAA,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAKb,CAAC;AAEH,QAAA,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BhB,CAAC;AAEH,OAAO,EACH,SAAS,EACT,YAAY,GACf,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { dimensionsPxToRem, styled } from "../../../theme.js";
|
|
2
|
-
import {
|
|
2
|
+
import { rippleHostStyles } from "../../../utils/useRipple.styled.js";
|
|
3
3
|
import { NEGATIVE_PADDING } from "./Modal.styled.js";
|
|
4
4
|
const Container = styled("div", {
|
|
5
5
|
display: "flex",
|
|
@@ -7,7 +7,7 @@ const Container = styled("div", {
|
|
|
7
7
|
mx: NEGATIVE_PADDING,
|
|
8
8
|
marginBottom: NEGATIVE_PADDING,
|
|
9
9
|
});
|
|
10
|
-
const
|
|
10
|
+
const StyledButton = styled("button", rippleHostStyles, {
|
|
11
11
|
"border": "none",
|
|
12
12
|
"borderTop": "1px solid $modalButtonBorder",
|
|
13
13
|
"background": "$modalButtonBg",
|
|
@@ -34,8 +34,5 @@ const Button = styled("button", {
|
|
|
34
34
|
},
|
|
35
35
|
},
|
|
36
36
|
});
|
|
37
|
-
|
|
38
|
-
Button,
|
|
39
|
-
});
|
|
40
|
-
export { ModalButtons, };
|
|
37
|
+
export { Container, StyledButton, };
|
|
41
38
|
//# sourceMappingURL=ModalButtons.styled.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ModalButtons.styled.js","sourceRoot":"","sources":["../../../../src/components/ui/modal/ModalButtons.styled.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"ModalButtons.styled.js","sourceRoot":"","sources":["../../../../src/components/ui/modal/ModalButtons.styled.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AACnE,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAElD,MAAM,SAAS,GAAG,MAAM,CAAC,KAAK,EAAE;IAC5B,OAAO,EAAE,MAAM;IACf,SAAS,EAAE,iBAAiB,CAAC,GAAG,CAAC;IACjC,EAAE,EAAE,gBAAgB;IACpB,YAAY,EAAE,gBAAgB;CACjC,CAAC,CAAC;AAEH,MAAM,YAAY,GAAG,MAAM,CAAC,QAAQ,EAAE,gBAAgB,EAAE;IACpD,QAAQ,EAAE,MAAM;IAChB,WAAW,EAAE,8BAA8B;IAC3C,YAAY,EAAE,gBAAgB;IAC9B,MAAM,EAAE,CAAC;IACT,QAAQ,EAAE,iBAAiB,CAAC,GAAG,CAAC;IAChC,YAAY,EAAE,GAAG;IACjB,SAAS,EAAE,MAAM;IACjB,YAAY,EAAE,QAAQ;IACtB,gBAAgB,EAAE,QAAQ;IAE1B,qBAAqB,EAAE;QACnB,UAAU,EAAE,8BAA8B;KAC7C;IAED,eAAe,EAAE;QACb,sBAAsB,EAAE,iBAAiB,CAAC,EAAE,CAAC;KAChD;IAED,cAAc,EAAE;QACZ,uBAAuB,EAAE,iBAAiB,CAAC,EAAE,CAAC;KACjD;IAED,UAAU,EAAE;QACR,OAAO,EAAE;YACL,IAAI,EAAE;gBACF,KAAK,EAAE,YAAY;aACtB;SACJ;KACJ;CACJ,CAAC,CAAC;AAEH,OAAO,EACH,SAAS,EACT,YAAY,GACf,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Pop.styled.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/pop/Pop.styled.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Pop.styled.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/pop/Pop.styled.ts"],"names":[],"mappings":"AAGA,QAAA,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAKX,CAAC;AAEH,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAOR,CAAC;AAEH,QAAA,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAQZ,CAAC;AAEH,QAAA,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAcV,CAAC;AAEH,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAGR,CAAC;AAEH,QAAA,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAKZ,CAAC;AAEH,OAAO,EACH,OAAO,EACP,IAAI,EACJ,QAAQ,EACR,MAAM,EACN,IAAI,EACJ,QAAQ,GACX,CAAC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { dimensionsPxToRem, fontPxToRem, styled } from "../../../theme.js";
|
|
2
|
+
import { rippleHostStyles } from "../../../utils/useRipple.styled.js";
|
|
2
3
|
const Overlay = styled("div", {
|
|
3
4
|
position: "fixed",
|
|
4
5
|
background: "#0000004c",
|
|
@@ -21,23 +22,20 @@ const ListItem = styled("li", {
|
|
|
21
22
|
borderTop: "1px solid $border",
|
|
22
23
|
},
|
|
23
24
|
});
|
|
24
|
-
const Button = styled("button", {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
"&:hover": {
|
|
39
|
-
background: "$activeBg",
|
|
40
|
-
},
|
|
25
|
+
const Button = styled("button", rippleHostStyles, {
|
|
26
|
+
border: "none",
|
|
27
|
+
background: "$background",
|
|
28
|
+
height: dimensionsPxToRem(116),
|
|
29
|
+
padding: `0 ${dimensionsPxToRem(42)}`,
|
|
30
|
+
boxSizing: "border-box",
|
|
31
|
+
width: "100%",
|
|
32
|
+
minWidth: dimensionsPxToRem(460),
|
|
33
|
+
textAlign: "left",
|
|
34
|
+
color: "$popText",
|
|
35
|
+
fontSize: fontPxToRem(26),
|
|
36
|
+
fontWeight: "revert",
|
|
37
|
+
display: "flex",
|
|
38
|
+
alignItems: "center",
|
|
41
39
|
});
|
|
42
40
|
const Icon = styled("div", {
|
|
43
41
|
fill: "currentColor",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Pop.styled.js","sourceRoot":"","sources":["../../../../src/components/ui/pop/Pop.styled.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,WAAW,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"Pop.styled.js","sourceRoot":"","sources":["../../../../src/components/ui/pop/Pop.styled.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,WAAW,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AACxE,OAAO,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AAEnE,MAAM,OAAO,GAAG,MAAM,CAAC,KAAK,EAAE;IAC1B,QAAQ,EAAE,OAAO;IACjB,UAAU,EAAE,WAAW;IACvB,KAAK,EAAE,CAAC;IACR,MAAM,EAAE,CAAC;CACZ,CAAC,CAAC;AAEH,MAAM,IAAI,GAAG,MAAM,CAAC,IAAI,EAAE;IACtB,MAAM,EAAE,CAAC;IACT,QAAQ,EAAE,UAAU;IACpB,UAAU,EAAE,aAAa;IACzB,MAAM,EAAE,CAAC;IACT,OAAO,EAAE,CAAC;IACV,aAAa,EAAE,MAAM;CACxB,CAAC,CAAC;AAEH,MAAM,QAAQ,GAAG,MAAM,CAAC,IAAI,EAAE;IAC1B,QAAQ,EAAE,CAAC;IACX,SAAS,EAAE,CAAC;IACZ,eAAe,EAAE,MAAM;IAEvB,OAAO,EAAE;QACL,SAAS,EAAE,mBAAmB;KACjC;CACJ,CAAC,CAAC;AAEH,MAAM,MAAM,GAAG,MAAM,CAAC,QAAQ,EAAE,gBAAgB,EAAE;IAC9C,MAAM,EAAE,MAAM;IACd,UAAU,EAAE,aAAa;IACzB,MAAM,EAAE,iBAAiB,CAAC,GAAG,CAAC;IAC9B,OAAO,EAAE,KAAK,iBAAiB,CAAC,EAAE,CAAC,EAAE;IACrC,SAAS,EAAE,YAAY;IACvB,KAAK,EAAE,MAAM;IACb,QAAQ,EAAE,iBAAiB,CAAC,GAAG,CAAC;IAChC,SAAS,EAAE,MAAM;IACjB,KAAK,EAAE,UAAU;IACjB,QAAQ,EAAE,WAAW,CAAC,EAAE,CAAC;IACzB,UAAU,EAAE,QAAQ;IACpB,OAAO,EAAE,MAAM;IACf,UAAU,EAAE,QAAQ;CACvB,CAAC,CAAC;AAEH,MAAM,IAAI,GAAG,MAAM,CAAC,KAAK,EAAE;IACvB,IAAI,EAAE,cAAc;IACpB,WAAW,EAAE,iBAAiB,CAAC,EAAE,CAAC;CACrC,CAAC,CAAC;AAEH,MAAM,QAAQ,GAAG,MAAM,CAAC,MAAM,EAAE;IAC5B,OAAO,EAAE,cAAc;IACvB,KAAK,EAAE,EAAE;IACT,MAAM,EAAE,EAAE;IACV,WAAW,EAAE,iBAAiB,CAAC,EAAE,CAAC;CACrC,CAAC,CAAC;AAEH,OAAO,EACH,OAAO,EACP,IAAI,EACJ,QAAQ,EACR,MAAM,EACN,IAAI,EACJ,QAAQ,GACX,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PopOption.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/pop/PopOption.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"PopOption.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/pop/PopOption.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAO1C,UAAU,KAAK;IACX,IAAI,CAAC,EAAE,KAAK,CAAC,YAAY,CAAC;IAC1B,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC7B;AAED,QAAA,MAAM,SAAS,6EAqBb,CAAC;AAKH,QAAA,MAAM,uBAAuB,QAAoB,CAAC;AAClD,QAAA,MAAM,qBAAqB,QAAkB,CAAC;AAE9C,OAAO,EAAE,SAAS,EAAE,uBAAuB,EAAE,qBAAqB,EAAE,CAAC"}
|
|
@@ -1,14 +1,19 @@
|
|
|
1
1
|
import React, { forwardRef } from "react";
|
|
2
|
+
import { useForwardedRef } from "@bedrock-layout/use-forwarded-ref";
|
|
3
|
+
import { useRipple } from "../../../utils/useRipple.js";
|
|
2
4
|
import { Button, FakeIcon, Icon, ListItem } from "./Pop.styled.js";
|
|
3
5
|
const PopOption = forwardRef((props, ref) => {
|
|
4
6
|
var _a;
|
|
7
|
+
const buttonRef = useForwardedRef(null);
|
|
8
|
+
const ripple = useRipple({ ref: buttonRef });
|
|
5
9
|
const ic = props.icon
|
|
6
10
|
? React.createElement(Icon, null, props.icon)
|
|
7
11
|
: (((_a = props.forceEmptyIcon) !== null && _a !== void 0 ? _a : true) ? React.createElement(FakeIcon, null) : null);
|
|
8
12
|
return (React.createElement(ListItem, { ref: ref, className: props.className },
|
|
9
|
-
React.createElement(Button, { onClick: props.onClick },
|
|
13
|
+
React.createElement(Button, { ref: buttonRef, onClick: props.onClick, onPointerDown: ripple.onPointerDown, onKeyDown: ripple.onKeyDown },
|
|
10
14
|
ic,
|
|
11
|
-
props.children
|
|
15
|
+
props.children,
|
|
16
|
+
ripple.ripples)));
|
|
12
17
|
});
|
|
13
18
|
PopOption.displayName = "PopOption";
|
|
14
19
|
PopOption.toString = () => ListItem.toString();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PopOption.js","sourceRoot":"","sources":["../../../../src/components/ui/pop/PopOption.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAE1C,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAUhE,MAAM,SAAS,GAAG,UAAU,CAAuB,CAAC,KAAK,EAAE,GAAG,EAAE,EAAE;;IAC9D,MAAM,EAAE,GAAG,KAAK,CAAC,IAAI;QACjB,CAAC,CAAC,oBAAC,IAAI,QAAE,KAAK,CAAC,IAAI,CAAQ;QAC3B,CAAC,CAAC,CAAC,CAAC,MAAA,KAAK,CAAC,cAAc,mCAAI,IAAI,CAAC,CAAC,CAAC,CAAC,oBAAC,QAAQ,OAAG,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;IAE7D,OAAO,CACH,oBAAC,QAAQ,IAAC,GAAG,EAAE,GAAG,EAAE,SAAS,EAAE,KAAK,CAAC,SAAS;QAC1C,oBAAC,MAAM,
|
|
1
|
+
{"version":3,"file":"PopOption.js","sourceRoot":"","sources":["../../../../src/components/ui/pop/PopOption.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAE1C,OAAO,EAAE,eAAe,EAAE,MAAM,mCAAmC,CAAC;AAEpE,OAAO,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AACrD,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAUhE,MAAM,SAAS,GAAG,UAAU,CAAuB,CAAC,KAAK,EAAE,GAAG,EAAE,EAAE;;IAC9D,MAAM,SAAS,GAAG,eAAe,CAA2B,IAAI,CAAC,CAAC;IAClE,MAAM,MAAM,GAAG,SAAS,CAAC,EAAE,GAAG,EAAE,SAAS,EAAE,CAAC,CAAC;IAE7C,MAAM,EAAE,GAAG,KAAK,CAAC,IAAI;QACjB,CAAC,CAAC,oBAAC,IAAI,QAAE,KAAK,CAAC,IAAI,CAAQ;QAC3B,CAAC,CAAC,CAAC,CAAC,MAAA,KAAK,CAAC,cAAc,mCAAI,IAAI,CAAC,CAAC,CAAC,CAAC,oBAAC,QAAQ,OAAG,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;IAE7D,OAAO,CACH,oBAAC,QAAQ,IAAC,GAAG,EAAE,GAAG,EAAE,SAAS,EAAE,KAAK,CAAC,SAAS;QAC1C,oBAAC,MAAM,IACH,GAAG,EAAE,SAAS,EACd,OAAO,EAAE,KAAK,CAAC,OAAO,EACtB,aAAa,EAAE,MAAM,CAAC,aAAa,EACnC,SAAS,EAAE,MAAM,CAAC,SAAS;YAE1B,EAAE;YAAE,KAAK,CAAC,QAAQ;YAClB,MAAM,CAAC,OAAO,CACV,CACF,CACd,CAAC;AACN,CAAC,CAAC,CAAC;AAEH,SAAS,CAAC,WAAW,GAAG,WAAW,CAAC;AACpC,SAAS,CAAC,QAAQ,GAAG,GAAG,EAAE,CAAC,QAAQ,CAAC,QAAQ,EAAE,CAAC;AAE/C,MAAM,uBAAuB,GAAG,MAAM,CAAC,QAAQ,EAAE,CAAC;AAClD,MAAM,qBAAqB,GAAG,IAAI,CAAC,QAAQ,EAAE,CAAC;AAE9C,OAAO,EAAE,SAAS,EAAE,uBAAuB,EAAE,qBAAqB,EAAE,CAAC"}
|
|
@@ -1,2 +1,95 @@
|
|
|
1
|
-
|
|
1
|
+
import React from "react";
|
|
2
|
+
declare const ToolButton: React.ForwardRefExoticComponent<Omit<Omit<Omit<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
|
|
3
|
+
ref?: ((instance: HTMLButtonElement | null) => void | React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | React.RefObject<HTMLButtonElement> | null | undefined;
|
|
4
|
+
}, "css" | "inline" | "variant"> & import("../../../../node_modules/@stitches/react/types/styled-component").TransformProps<{
|
|
5
|
+
inline?: boolean | "true";
|
|
6
|
+
variant?: "secondary" | "secondaryOnLight";
|
|
7
|
+
}, {}> & {
|
|
8
|
+
css?: import("../../../../node_modules/@stitches/react/types/css-util").CSS<{}, {
|
|
9
|
+
colors: {
|
|
10
|
+
background: "white";
|
|
11
|
+
mainColor: "#008ad2";
|
|
12
|
+
mainColorAlt: "#006AA9";
|
|
13
|
+
activeBg: "#e7e7e7";
|
|
14
|
+
inactiveBg: "#d3d3de";
|
|
15
|
+
inactiveDarkBg: "#999";
|
|
16
|
+
toggleHandleBg: "#e0e0e0";
|
|
17
|
+
toggleHandleBorder: "#cdcdcd";
|
|
18
|
+
toggleBgDisabled: "#f0f0f0";
|
|
19
|
+
toggleHandleBorderDisabled: "#c29f7d";
|
|
20
|
+
toggleHandleBgDisabled: "#deae84";
|
|
21
|
+
icon: "#636363";
|
|
22
|
+
border: "#d5d5d5";
|
|
23
|
+
buttonBorder: "#bababa";
|
|
24
|
+
headerBorder: "#c8c8c9";
|
|
25
|
+
headerBg: "#efeff0";
|
|
26
|
+
headerText: "#484848";
|
|
27
|
+
text: "#323232";
|
|
28
|
+
text2: "#181818";
|
|
29
|
+
text3: "#000000";
|
|
30
|
+
sub: "#959595";
|
|
31
|
+
popText: "#666";
|
|
32
|
+
toolbarBorder: "#ababab";
|
|
33
|
+
toolbarBg: "#f8f8f8";
|
|
34
|
+
modalBg: "#f7f7f7";
|
|
35
|
+
modalButtonBg: "#f8f8f8";
|
|
36
|
+
modalButtonBorder: "#c2c2c2";
|
|
37
|
+
inputDisabledBg: "#f3f3f3";
|
|
38
|
+
inputDisabledText: "#959595";
|
|
39
|
+
choiceBg: "#ffffff";
|
|
40
|
+
choiceText: "#999999";
|
|
41
|
+
choiceActiveBg: "#f3f3f3";
|
|
42
|
+
choiceActiveText: "#313131";
|
|
43
|
+
choiceBorder: "#cfcfcf";
|
|
44
|
+
selectorText: "#606060";
|
|
45
|
+
selectorActive: "#008ad2";
|
|
46
|
+
blue1: "#038bf4";
|
|
47
|
+
blue2: "#b7d6f5";
|
|
48
|
+
blue3: "#dbe6ff";
|
|
49
|
+
blue4: "#33b4ff";
|
|
50
|
+
blue5: "#30a2e6";
|
|
51
|
+
orange1: "#ff7200";
|
|
52
|
+
orange1Darker: "#cc5b00";
|
|
53
|
+
purple1: "#7357e8";
|
|
54
|
+
green1: "#3ec234";
|
|
55
|
+
green1Darker: "#38af2f";
|
|
56
|
+
pink1: "#ff388f";
|
|
57
|
+
red1: "#ea2700";
|
|
58
|
+
yellow1: "#ffde9d";
|
|
59
|
+
yellow2: "#e4a429";
|
|
60
|
+
yellow3: "#fff5db";
|
|
61
|
+
pinky1: "#f5c0b7";
|
|
62
|
+
pinky2: "#e07b67";
|
|
63
|
+
pinky3: "#ffe1db";
|
|
64
|
+
grey1: "#737373";
|
|
65
|
+
focusColor: "#dcaf00";
|
|
66
|
+
scrollbarsThumb: "#737373";
|
|
67
|
+
scrollbarsBg: "transparent";
|
|
68
|
+
tableStripedBg: "#fafafa";
|
|
69
|
+
toolButtonText: "#666e80";
|
|
70
|
+
};
|
|
71
|
+
}, import("../../../../node_modules/@stitches/react/types/config").DefaultThemeMap, {
|
|
72
|
+
mx: (value: string | number) => {
|
|
73
|
+
marginLeft: string | number;
|
|
74
|
+
marginRight: string | number;
|
|
75
|
+
};
|
|
76
|
+
my: (value: string | number) => {
|
|
77
|
+
marginTop: string | number;
|
|
78
|
+
marginBottom: string | number;
|
|
79
|
+
};
|
|
80
|
+
px: (value: string | number) => {
|
|
81
|
+
paddingLeft: string | number;
|
|
82
|
+
paddingRight: string | number;
|
|
83
|
+
};
|
|
84
|
+
py: (value: string | number) => {
|
|
85
|
+
paddingTop: string | number;
|
|
86
|
+
paddingBottom: string | number;
|
|
87
|
+
};
|
|
88
|
+
size: (value: string | number) => {
|
|
89
|
+
width: string | number;
|
|
90
|
+
height: string | number;
|
|
91
|
+
};
|
|
92
|
+
}>;
|
|
93
|
+
}, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
94
|
+
export { ToolButton, };
|
|
2
95
|
//# sourceMappingURL=ToolButton.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ToolButton.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/toolButton/ToolButton.
|
|
1
|
+
{"version":3,"file":"ToolButton.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/toolButton/ToolButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAS1C,QAAA,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mDAgBd,CAAC;AAKH,OAAO,EACH,UAAU,GACb,CAAC"}
|
|
@@ -1,2 +1,16 @@
|
|
|
1
|
-
|
|
1
|
+
import React, { forwardRef } from "react";
|
|
2
|
+
import { useForwardedRef } from "@bedrock-layout/use-forwarded-ref";
|
|
3
|
+
import { useRipple } from "../../../utils/useRipple.js";
|
|
4
|
+
import { StyledToolButton } from "./ToolButton.styled.js";
|
|
5
|
+
const ToolButton = forwardRef((props, ref) => {
|
|
6
|
+
const { children, onPointerDown, onKeyDown, ...rest } = props;
|
|
7
|
+
const innerRef = useForwardedRef(ref);
|
|
8
|
+
const ripple = useRipple({ ref: innerRef, onPointerDown, onKeyDown });
|
|
9
|
+
return (React.createElement(StyledToolButton, { ref: innerRef, onPointerDown: ripple.onPointerDown, onKeyDown: ripple.onKeyDown, ...rest },
|
|
10
|
+
children,
|
|
11
|
+
ripple.ripples));
|
|
12
|
+
});
|
|
13
|
+
ToolButton.displayName = "ToolButton";
|
|
14
|
+
ToolButton.toString = () => StyledToolButton.toString();
|
|
15
|
+
export { ToolButton, };
|
|
2
16
|
//# sourceMappingURL=ToolButton.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ToolButton.js","sourceRoot":"","sources":["../../../../src/components/ui/toolButton/ToolButton.
|
|
1
|
+
{"version":3,"file":"ToolButton.js","sourceRoot":"","sources":["../../../../src/components/ui/toolButton/ToolButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAE1C,OAAO,EAAE,eAAe,EAAE,MAAM,mCAAmC,CAAC;AAEpE,OAAO,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AACrD,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAIvD,MAAM,UAAU,GAAG,UAAU,CAA2B,CAAC,KAAK,EAAE,GAAG,EAAE,EAAE;IACnE,MAAM,EAAE,QAAQ,EAAE,aAAa,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,GAAG,KAAK,CAAC;IAC9D,MAAM,QAAQ,GAAG,eAAe,CAAC,GAAG,CAAC,CAAC;IACtC,MAAM,MAAM,GAAG,SAAS,CAAC,EAAE,GAAG,EAAE,QAAQ,EAAE,aAAa,EAAE,SAAS,EAAE,CAAC,CAAC;IAEtE,OAAO,CACH,oBAAC,gBAAgB,IACb,GAAG,EAAE,QAAQ,EACb,aAAa,EAAE,MAAM,CAAC,aAAa,EACnC,SAAS,EAAE,MAAM,CAAC,SAAS,KACvB,IAAI;QAEP,QAAQ;QACR,MAAM,CAAC,OAAO,CACA,CACtB,CAAC;AACN,CAAC,CAAC,CAAC;AAEH,UAAU,CAAC,WAAW,GAAG,YAAY,CAAC;AACtC,UAAU,CAAC,QAAQ,GAAG,GAAG,EAAE,CAAC,gBAAgB,CAAC,QAAQ,EAAE,CAAC;AAExD,OAAO,EACH,UAAU,GACb,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
declare const
|
|
1
|
+
declare const StyledToolButton: import("../../../../node_modules/@stitches/react/types/styled-component").StyledComponent<"button", {
|
|
2
2
|
inline?: boolean | "true";
|
|
3
3
|
variant?: "secondary" | "secondaryOnLight";
|
|
4
4
|
}, {}, import("../../../../node_modules/@stitches/react/types/css-util").CSS<{}, {
|
|
@@ -86,5 +86,5 @@ declare const ToolButton: import("../../../../node_modules/@stitches/react/types
|
|
|
86
86
|
height: string | number;
|
|
87
87
|
};
|
|
88
88
|
}>>;
|
|
89
|
-
export {
|
|
89
|
+
export { StyledToolButton, };
|
|
90
90
|
//# sourceMappingURL=ToolButton.styled.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ToolButton.styled.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/toolButton/ToolButton.styled.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ToolButton.styled.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/toolButton/ToolButton.styled.ts"],"names":[],"mappings":"AAMA,QAAA,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuCpB,CAAC;AAEH,OAAO,EACH,gBAAgB,GACnB,CAAC"}
|
|
@@ -1,21 +1,19 @@
|
|
|
1
1
|
import { dimensionsPxToRem, fontPxToRem, styled } from "../../../theme.js";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
"
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
"
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
"border"
|
|
14
|
-
|
|
15
|
-
"
|
|
16
|
-
|
|
17
|
-
},
|
|
18
|
-
"variants": {
|
|
2
|
+
import { rippleHostStyles } from "../../../utils/useRipple.styled.js";
|
|
3
|
+
const StyledToolButton = styled("button", rippleHostStyles, {
|
|
4
|
+
height: dimensionsPxToRem(79),
|
|
5
|
+
borderRadius: dimensionsPxToRem(10),
|
|
6
|
+
fontWeight: "bold",
|
|
7
|
+
fontSize: fontPxToRem(23),
|
|
8
|
+
display: "flex",
|
|
9
|
+
alignItems: "center",
|
|
10
|
+
justifyContent: "center",
|
|
11
|
+
paddingInline: dimensionsPxToRem(16),
|
|
12
|
+
background: "white",
|
|
13
|
+
boxSizing: "border-box",
|
|
14
|
+
border: `${dimensionsPxToRem(6)} solid transparent`,
|
|
15
|
+
color: "$toolButtonText",
|
|
16
|
+
variants: {
|
|
19
17
|
inline: {
|
|
20
18
|
true: {
|
|
21
19
|
width: "auto",
|
|
@@ -24,12 +22,9 @@ const ToolButton = styled("button", {
|
|
|
24
22
|
},
|
|
25
23
|
variant: {
|
|
26
24
|
secondary: {
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
"
|
|
30
|
-
background: "#ffffff22",
|
|
31
|
-
},
|
|
32
|
-
"color": "white",
|
|
25
|
+
border: `${dimensionsPxToRem(6)} solid #ffffff42`,
|
|
26
|
+
background: "none",
|
|
27
|
+
color: "white",
|
|
33
28
|
},
|
|
34
29
|
secondaryOnLight: {
|
|
35
30
|
"border": `${dimensionsPxToRem(6)} solid $border`,
|
|
@@ -42,5 +37,5 @@ const ToolButton = styled("button", {
|
|
|
42
37
|
},
|
|
43
38
|
},
|
|
44
39
|
});
|
|
45
|
-
export {
|
|
40
|
+
export { StyledToolButton, };
|
|
46
41
|
//# sourceMappingURL=ToolButton.styled.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ToolButton.styled.js","sourceRoot":"","sources":["../../../../src/components/ui/toolButton/ToolButton.styled.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,WAAW,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"ToolButton.styled.js","sourceRoot":"","sources":["../../../../src/components/ui/toolButton/ToolButton.styled.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,WAAW,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AACxE,OAAO,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AAKnE,MAAM,gBAAgB,GAAG,MAAM,CAAC,QAAQ,EAAE,gBAAgB,EAAE;IACxD,MAAM,EAAE,iBAAiB,CAAC,EAAE,CAAC;IAC7B,YAAY,EAAE,iBAAiB,CAAC,EAAE,CAAC;IACnC,UAAU,EAAE,MAAM;IAClB,QAAQ,EAAE,WAAW,CAAC,EAAE,CAAC;IACzB,OAAO,EAAE,MAAM;IACf,UAAU,EAAE,QAAQ;IACpB,cAAc,EAAE,QAAQ;IACxB,aAAa,EAAE,iBAAiB,CAAC,EAAE,CAAC;IACpC,UAAU,EAAE,OAAO;IACnB,SAAS,EAAE,YAAY;IACvB,MAAM,EAAE,GAAG,iBAAiB,CAAC,CAAC,CAAC,oBAAoB;IACnD,KAAK,EAAE,iBAAiB;IAExB,QAAQ,EAAE;QACN,MAAM,EAAE;YACJ,IAAI,EAAE;gBACF,KAAK,EAAE,MAAM;gBACb,OAAO,EAAE,aAAa;aACzB;SACJ;QACD,OAAO,EAAE;YACL,SAAS,EAAE;gBACP,MAAM,EAAE,GAAG,iBAAiB,CAAC,CAAC,CAAC,kBAAkB;gBACjD,UAAU,EAAE,MAAM;gBAClB,KAAK,EAAE,OAAO;aACjB;YACD,gBAAgB,EAAE;gBACd,QAAQ,EAAE,GAAG,iBAAiB,CAAC,CAAC,CAAC,gBAAgB;gBACjD,YAAY,EAAE,MAAM;gBACpB,OAAO,EAAE,OAAO;gBAGhB,SAAS,EAAE;oBACP,WAAW,EAAE,eAAe;iBAC/B;aACJ;SACJ;KACJ;CACJ,CAAC,CAAC;AAEH,OAAO,EACH,gBAAgB,GACnB,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
type UseRippleArgs<T extends HTMLElement> = {
|
|
3
|
+
ref: React.RefObject<T | null>;
|
|
4
|
+
onPointerDown?: React.PointerEventHandler<T> | undefined;
|
|
5
|
+
onKeyDown?: React.KeyboardEventHandler<T> | undefined;
|
|
6
|
+
fromCenter?: boolean | undefined;
|
|
7
|
+
};
|
|
8
|
+
type UseRippleResult<T extends HTMLElement> = {
|
|
9
|
+
onPointerDown: React.PointerEventHandler<T>;
|
|
10
|
+
onKeyDown: React.KeyboardEventHandler<T>;
|
|
11
|
+
ripples: React.ReactNode;
|
|
12
|
+
};
|
|
13
|
+
declare const useRipple: <T extends HTMLElement>(args: UseRippleArgs<T>) => UseRippleResult<T>;
|
|
14
|
+
export { useRipple };
|
|
15
|
+
//# sourceMappingURL=useRipple.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useRipple.d.ts","sourceRoot":"","sources":["../../src/utils/useRipple.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAwC,MAAM,OAAO,CAAC;AAmC7D,KAAK,aAAa,CAAC,CAAC,SAAS,WAAW,IAAI;IACxC,GAAG,EAAE,KAAK,CAAC,SAAS,CAAC,CAAC,GAAG,IAAI,CAAC,CAAC;IAC/B,aAAa,CAAC,EAAE,KAAK,CAAC,mBAAmB,CAAC,CAAC,CAAC,GAAG,SAAS,CAAC;IACzD,SAAS,CAAC,EAAE,KAAK,CAAC,oBAAoB,CAAC,CAAC,CAAC,GAAG,SAAS,CAAC;IAKtD,UAAU,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;CACpC,CAAC;AAEF,KAAK,eAAe,CAAC,CAAC,SAAS,WAAW,IAAI;IAC1C,aAAa,EAAE,KAAK,CAAC,mBAAmB,CAAC,CAAC,CAAC,CAAC;IAC5C,SAAS,EAAE,KAAK,CAAC,oBAAoB,CAAC,CAAC,CAAC,CAAC;IACzC,OAAO,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B,CAAC;AAYF,QAAA,MAAM,SAAS,GAAI,CAAC,SAAS,WAAW,EAAE,MAAM,aAAa,CAAC,CAAC,CAAC,KAAG,eAAe,CAAC,CAAC,CA0EnF,CAAC;AAEF,OAAO,EAAE,SAAS,EAAE,CAAC"}
|