@westpac/ui 0.24.1 → 0.26.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 +15 -0
- package/assets/icons/filled/cancel-card-filled.svg +4 -0
- package/assets/icons/filled/circle-filled.svg +3 -0
- package/assets/icons/filled/quick-balance-filled.svg +3 -3
- package/assets/icons/filled/target-filled.svg +5 -0
- package/assets/icons/outlined/cancel-card-outlined.svg +4 -0
- package/assets/icons/outlined/circle-outlined.svg +3 -0
- package/assets/icons/outlined/quick-balance-outlined.svg +4 -6
- package/assets/icons/outlined/target-outlined.svg +5 -0
- package/dist/component-type.json +1 -1
- package/dist/components/accordion/accordion.component.d.ts +2 -12
- package/dist/components/accordion/accordion.styles.d.ts +7 -1
- package/dist/components/accordion/components/accordion-item/accordion-item.styles.d.ts +38 -1
- package/dist/components/alert/alert.component.d.ts +1 -1
- package/dist/components/alert/alert.component.js +7 -4
- package/dist/components/alert/alert.styles.d.ts +107 -1
- package/dist/components/alert/alert.styles.js +24 -1
- package/dist/components/alert/alert.types.d.ts +5 -0
- package/dist/components/autocomplete/autocomplete.styles.d.ts +122 -1
- package/dist/components/autocomplete/components/autocomplete-item/autocomplete-item.component.d.ts +0 -1
- package/dist/components/autocomplete/components/autocomplete-list-box/components/autocomplete-list-box-option/autocomplete-list-box-option.styles.d.ts +13 -1
- package/dist/components/badge/badge.component.d.ts +1 -1
- package/dist/components/badge/badge.styles.d.ts +30 -1
- package/dist/components/bottom-sheet/components/bottom-sheet-dialog/bottom-sheet-dialog.styles.d.ts +40 -22
- package/dist/components/bottom-sheet/components/bottom-sheet-modal/bottom-sheet-modal.styles.d.ts +7 -1
- package/dist/components/bottom-sheet/components/bottom-sheet-modal/bottom-sheet-modal.types.d.ts +4 -3
- package/dist/components/breadcrumb/components/breadcrumb-item/breadcrumb-item.component.d.ts +3 -3
- package/dist/components/breadcrumb/components/breadcrumb-item/breadcrumb-item.styles.d.ts +12 -1
- package/dist/components/button/button.component.d.ts +7 -7
- package/dist/components/button/button.component.js +5 -4
- package/dist/components/button/button.styles.d.ts +67 -1
- package/dist/components/button/button.styles.js +5 -5
- package/dist/components/button/button.types.d.ts +7 -0
- package/dist/components/button-dropdown/button-dropdown.styles.d.ts +24 -1
- package/dist/components/button-dropdown/components/button-dropdown-heading/button-dropdown-heading.styles.d.ts +5 -1
- package/dist/components/button-dropdown/components/button-dropdown-panel/button-dropdown-panel.styles.d.ts +12 -1
- package/dist/components/button-group/button-group.styles.d.ts +25 -12
- package/dist/components/button-group/components/button-group-button/button-group-button.styles.d.ts +25 -1
- package/dist/components/checkbox-group/checkbox-group.styles.d.ts +22 -1
- package/dist/components/checkbox-group/components/checkbox-group-checkbox/checkbox-group-checkbox.component.d.ts +1 -1
- package/dist/components/checkbox-group/components/checkbox-group-checkbox/checkbox-group-checkbox.styles.d.ts +45 -1
- package/dist/components/circle/circle.styles.d.ts +3 -1
- package/dist/components/collapsible/collapsible.styles.d.ts +12 -1
- package/dist/components/compacta/compacta.styles.d.ts +20 -1
- package/dist/components/date-picker/date-picker.styles.d.ts +14 -1
- package/dist/components/error-message/error-message.styles.d.ts +26 -14
- package/dist/components/error-message/error-message.styles.js +2 -2
- package/dist/components/field/field.styles.d.ts +3 -1
- package/dist/components/filter/components/filter-buttons/filter-buttons.component.d.ts +1 -1
- package/dist/components/filter/components/filter-buttons/filter-buttons.component.js +183 -11
- package/dist/components/filter/components/filter-buttons/filter-buttons.styles.d.ts +55 -5
- package/dist/components/filter/components/filter-buttons/filter-buttons.styles.js +20 -1
- package/dist/components/filter/components/filter-buttons/filter-buttons.types.d.ts +0 -4
- package/dist/components/flexi-cell/components/flexi-cell-adornment/flexi-cell-adornment.styles.d.ts +17 -1
- package/dist/components/flexi-cell/components/flexi-cell-body/flexi-cell-body.styles.d.ts +15 -1
- package/dist/components/flexi-cell/components/flexi-cell-button/flexi-cell-button.styles.d.ts +5 -1
- package/dist/components/flexi-cell/components/flexi-cell-button/flexi-cell-button.types.d.ts +0 -1
- package/dist/components/flexi-cell/components/flexi-cell-circle/flexi-cell-circle.styles.d.ts +5 -1
- package/dist/components/flexi-cell/components/flexi-cell-footer/flexi-cell-footer.styles.d.ts +3 -1
- package/dist/components/flexi-cell/components/flexi-cell-hint/flexi-cell-hint.styles.d.ts +7 -1
- package/dist/components/flexi-cell/components/flexi-cell-label/flexi-cell-label.styles.d.ts +11 -1
- package/dist/components/flexi-cell/flexi-cell.component.js +4 -2
- package/dist/components/flexi-cell/flexi-cell.styles.d.ts +41 -1
- package/dist/components/flexi-cell/flexi-cell.types.d.ts +4 -0
- package/dist/components/footer/footer.styles.d.ts +26 -1
- package/dist/components/form/components/form-chit-chat/form-chit-chat.styles.d.ts +1 -5
- package/dist/components/form/components/form-group/form-group.styles.d.ts +12 -1
- package/dist/components/form/components/form-section/form-section.styles.d.ts +8 -1
- package/dist/components/grid/components/grid-container/grid-container.styles.d.ts +8 -1
- package/dist/components/grid/components/grid-item/grid-item.styles.d.ts +40 -1
- package/dist/components/grid/grid.styles.d.ts +3 -1
- package/dist/components/header/header.styles.d.ts +41 -1
- package/dist/components/heading/heading.styles.d.ts +24 -1
- package/dist/components/hint/hint.styles.d.ts +8 -1
- package/dist/components/icon/components/cancel-card-icon.d.ts +2 -0
- package/dist/components/icon/components/cancel-card-icon.js +48 -0
- package/dist/components/icon/components/circle-icon.d.ts +2 -0
- package/dist/components/icon/components/circle-icon.js +42 -0
- package/dist/components/icon/components/quick-balance-icon.js +20 -16
- package/dist/components/icon/components/target-icon.d.ts +2 -0
- package/dist/components/icon/components/target-icon.js +37 -0
- package/dist/components/icon/icon.styles.d.ts +33 -1
- package/dist/components/icon/index.d.ts +3 -0
- package/dist/components/icon/index.js +3 -0
- package/dist/components/input/input.component.d.ts +1 -1
- package/dist/components/input/input.styles.d.ts +35 -1
- package/dist/components/input-group/components/input-group-add-ons/components/input-group-add-on-default-add-on/input-group-add-on-default-add-on.styles.d.ts +1 -5
- package/dist/components/input-group/components/input-group-add-ons/components/input-group-add-on-icon-add-on/input-group-add-on-icon-add-on.styles.d.ts +14 -1
- package/dist/components/input-group/components/input-group-add-ons/components/input-group-add-on-text-add-on/input-group-add-on-text-add-on.styles.d.ts +14 -1
- package/dist/components/input-group/components/input-group-add-ons/input-group-add-ons.styles.d.ts +12 -1
- package/dist/components/input-group/components/input-group-supporting-text/input-group-supporting-text.styles.d.ts +1 -5
- package/dist/components/input-group/input-group.styles.d.ts +62 -1
- package/dist/components/label/label.styles.d.ts +12 -1
- package/dist/components/link/link.component.d.ts +6 -6
- package/dist/components/link/link.styles.d.ts +29 -1
- package/dist/components/list/components/list-item/list-item.component.d.ts +7 -7
- package/dist/components/list/components/list-item/list-item.styles.d.ts +74 -1
- package/dist/components/list/list.styles.d.ts +22 -1
- package/dist/components/list/list.utils.d.ts +0 -1
- package/dist/components/modal/components/modal-backdrop/modal-backdrop.styles.d.ts +16 -1
- package/dist/components/modal/components/modal-backdrop/modal-backdrop.types.d.ts +0 -1
- package/dist/components/modal/components/modal-dialog/components/modal-dialog-body/modal-dialog-body.styles.d.ts +23 -1
- package/dist/components/modal/components/modal-dialog/components/modal-dialog-footer/modal-dialog-footer.styles.d.ts +25 -1
- package/dist/components/modal/components/modal-dialog/modal-dialog.styles.d.ts +39 -1
- package/dist/components/modal/components/modal-dialog/modal-dialog.types.d.ts +0 -1
- package/dist/components/pagination/components/pagination-item/pagination-item.styles.d.ts +20 -1
- package/dist/components/pagination/pagination.hooks.d.ts +2 -3
- package/dist/components/pagination/pagination.styles.d.ts +6 -1
- package/dist/components/panel/components/panel-body/panel-body.styles.d.ts +5 -1
- package/dist/components/panel/components/panel-footer/panel-footer.styles.d.ts +5 -1
- package/dist/components/panel/panel.styles.d.ts +16 -1
- package/dist/components/pass-code/pass-code.styles.d.ts +23 -12
- package/dist/components/pass-code-view/pass-code-view.styles.d.ts +9 -1
- package/dist/components/pictogram/components/informative/target-pictogram.d.ts +2 -0
- package/dist/components/pictogram/components/informative/target-pictogram.js +46 -0
- package/dist/components/pictogram/index.d.ts +1 -0
- package/dist/components/pictogram/index.js +1 -0
- package/dist/components/pictogram/pictogram.styles.d.ts +16 -2
- package/dist/components/popover/components/panel/panel.styles.d.ts +22 -1
- package/dist/components/popover/popover.styles.d.ts +13 -1
- package/dist/components/popover/popover.utils.d.ts +1 -1
- package/dist/components/progress-bar/progress-bar.styles.d.ts +18 -1
- package/dist/components/progress-indicator/progress-indicator.styles.d.ts +15 -1
- package/dist/components/progress-rope/components/progress-rope-group-step/progress-rope-group-step.styles.d.ts +42 -1
- package/dist/components/progress-rope/components/progress-rope-step/progress-rope-step.styles.d.ts +84 -1
- package/dist/components/progress-rope/progress-rope.styles.d.ts +1 -5
- package/dist/components/radio-group/components/radio-group-radio/radio-group-radio.component.d.ts +1 -1
- package/dist/components/radio-group/components/radio-group-radio/radio-group-radio.styles.d.ts +47 -1
- package/dist/components/radio-group/radio-group.styles.d.ts +22 -1
- package/dist/components/repeater/repeater.styles.d.ts +29 -1
- package/dist/components/select/select.styles.d.ts +36 -1
- package/dist/components/selector/components/selector-button-group/components/selector-button-group-option/selector-button-group-option.component.d.ts +2 -5
- package/dist/components/selector/components/selector-button-group/components/selector-button-group-option/selector-button-group-option.styles.d.ts +28 -1
- package/dist/components/selector/components/selector-button-group/selector-button-group.component.d.ts +0 -1
- package/dist/components/selector/components/selector-button-group/selector-button-group.styles.d.ts +8 -1
- package/dist/components/selector/components/selector-checkbox-group/components/selector-checkbox-group-option/selector-checkbox-group-option.styles.d.ts +33 -1
- package/dist/components/selector/components/selector-checkbox-group/selector-checkbox-group.styles.d.ts +3 -1
- package/dist/components/selector/components/selector-label/selector-label.styles.d.ts +1 -5
- package/dist/components/selector/components/selector-link-group/components/selector-link-group-option/selector-link-group-option.component.d.ts +2 -5
- package/dist/components/selector/components/selector-link-group/components/selector-link-group-option/selector-link-group-option.styles.d.ts +22 -1
- package/dist/components/selector/components/selector-link-group/selector-link-group.component.d.ts +1 -2
- package/dist/components/selector/components/selector-link-group/selector-link-group.styles.d.ts +8 -1
- package/dist/components/selector/components/selector-radio-group/components/selector-radio-group-option/selector-radio-group-option.styles.d.ts +33 -1
- package/dist/components/selector/components/selector-radio-group/selector-radio-group.styles.d.ts +8 -1
- package/dist/components/skip-link/skip-link.styles.d.ts +1 -5
- package/dist/components/switch/switch.styles.d.ts +48 -1
- package/dist/components/symbol/symbol.styles.d.ts +3 -1
- package/dist/components/table/components/table-body/table-body.styles.d.ts +3 -1
- package/dist/components/table/components/table-caption/table-caption.styles.d.ts +3 -1
- package/dist/components/table/components/table-cell/table-cell.styles.d.ts +21 -1
- package/dist/components/table/components/table-footer/table-footer.styles.d.ts +11 -1
- package/dist/components/table/components/table-header/table-header.styles.d.ts +3 -1
- package/dist/components/table/components/table-header-cell/table-header-cell.styles.d.ts +11 -1
- package/dist/components/table/components/table-header-row/table-header-row.styles.d.ts +3 -1
- package/dist/components/table/components/table-row/table-row.styles.d.ts +19 -1
- package/dist/components/table/table.styles.d.ts +6 -1
- package/dist/components/tabs/components/tabs-tab/tabs-tab.styles.d.ts +27 -1
- package/dist/components/tabs/components/tabs-tab-panel/tabs-tab-panel.styles.d.ts +11 -1
- package/dist/components/tabs/tabs.component.d.ts +0 -1
- package/dist/components/tabs/tabs.styles.d.ts +28 -1
- package/dist/components/textarea/textarea.styles.d.ts +35 -1
- package/dist/components/visually-hidden/visually-hidden.styles.d.ts +1 -5
- package/dist/components/well/well.styles.d.ts +8 -1
- package/dist/css/westpac-ui.css +530 -124
- package/dist/css/westpac-ui.min.css +530 -124
- package/dist/tailwind/constants/colors.d.ts +5 -5
- package/dist/tailwind/tailwind-plugin.d.ts +1 -1
- package/dist/tailwind/tailwind-transformer.d.ts +1 -1
- package/dist/tailwind/themes/index.d.ts +7 -7
- package/dist/tailwind/utils/generate-font-components.d.ts +1 -1
- package/package.json +8 -7
- package/src/components/alert/alert.component.tsx +4 -3
- package/src/components/alert/alert.styles.ts +24 -1
- package/src/components/alert/alert.types.ts +5 -0
- package/src/components/bottom-sheet/components/bottom-sheet-modal/bottom-sheet-modal.types.ts +4 -3
- package/src/components/button/button.component.tsx +6 -5
- package/src/components/button/button.styles.ts +5 -5
- package/src/components/button/button.types.ts +8 -0
- package/src/components/error-message/error-message.styles.ts +2 -2
- package/src/components/filter/components/filter-buttons/filter-buttons.component.tsx +206 -19
- package/src/components/filter/components/filter-buttons/filter-buttons.styles.ts +20 -1
- package/src/components/filter/components/filter-buttons/filter-buttons.types.ts +0 -4
- package/src/components/flexi-cell/flexi-cell.component.tsx +4 -1
- package/src/components/flexi-cell/flexi-cell.types.ts +4 -0
- package/src/components/icon/components/cancel-card-icon.tsx +41 -0
- package/src/components/icon/components/circle-icon.tsx +39 -0
- package/src/components/icon/components/quick-balance-icon.tsx +19 -23
- package/src/components/icon/components/target-icon.tsx +30 -0
- package/src/components/icon/index.ts +3 -0
- package/src/components/pictogram/components/informative/target-pictogram.tsx +40 -0
- package/src/components/pictogram/index.ts +1 -0
|
@@ -17,9 +17,10 @@ import React, { forwardRef, useMemo } from 'react';
|
|
|
17
17
|
import { mergeProps, useFocusRing } from 'react-aria';
|
|
18
18
|
import { styles as buttonStyles } from './button.styles.js';
|
|
19
19
|
import { getIconSize } from './button.utils.js';
|
|
20
|
-
function BaseButton({ className , size ='medium' , look ='hero' , soft , block =false , justify , tag: Tag = 'button' , iconBefore: IconBefore , iconAfter: IconAfter , iconColor , children , ...props }, ref) {
|
|
20
|
+
function BaseButton({ className , size ='medium' , look ='hero' , soft , block =false , justify , tag: Tag = 'button' , iconBefore: IconBefore , iconAfter: IconAfter , iconColor , iconSize , children , ...props }, ref) {
|
|
21
21
|
const { isFocusVisible , focusProps } = useFocusRing();
|
|
22
|
-
const
|
|
22
|
+
const btnIconSize = useMemo(()=>iconSize || getIconSize(size), [
|
|
23
|
+
iconSize,
|
|
23
24
|
size
|
|
24
25
|
]);
|
|
25
26
|
const styles = buttonStyles({
|
|
@@ -37,14 +38,14 @@ function BaseButton({ className , size ='medium' , look ='hero' , soft , block =
|
|
|
37
38
|
className
|
|
38
39
|
})
|
|
39
40
|
}, mergeProps(props, focusProps)), IconBefore && React.createElement(IconBefore, {
|
|
40
|
-
size:
|
|
41
|
+
size: btnIconSize,
|
|
41
42
|
className: styles.iconBefore(),
|
|
42
43
|
color: iconColor,
|
|
43
44
|
"aria-hidden": true
|
|
44
45
|
}), React.createElement("span", {
|
|
45
46
|
className: styles.text()
|
|
46
47
|
}, children), IconAfter && React.createElement(IconAfter, {
|
|
47
|
-
size:
|
|
48
|
+
size: btnIconSize,
|
|
48
49
|
className: styles.iconAfter(),
|
|
49
50
|
color: iconColor,
|
|
50
51
|
"aria-hidden": true
|
|
@@ -131,4 +131,70 @@ export declare const styles: import("tailwind-variants").TVReturnType<{
|
|
|
131
131
|
iconAfter: string;
|
|
132
132
|
dropdown: string;
|
|
133
133
|
text: string;
|
|
134
|
-
}
|
|
134
|
+
}, import("tailwind-variants").TVReturnType<{
|
|
135
|
+
size: {
|
|
136
|
+
small: {
|
|
137
|
+
base: string;
|
|
138
|
+
};
|
|
139
|
+
medium: {
|
|
140
|
+
base: string;
|
|
141
|
+
};
|
|
142
|
+
large: {
|
|
143
|
+
base: string;
|
|
144
|
+
};
|
|
145
|
+
xlarge: {
|
|
146
|
+
base: string;
|
|
147
|
+
};
|
|
148
|
+
};
|
|
149
|
+
look: {
|
|
150
|
+
primary: {
|
|
151
|
+
base: string;
|
|
152
|
+
};
|
|
153
|
+
hero: {
|
|
154
|
+
base: string;
|
|
155
|
+
};
|
|
156
|
+
faint: {
|
|
157
|
+
base: string;
|
|
158
|
+
};
|
|
159
|
+
link: {
|
|
160
|
+
base: string;
|
|
161
|
+
};
|
|
162
|
+
};
|
|
163
|
+
soft: {
|
|
164
|
+
true: {
|
|
165
|
+
base: string;
|
|
166
|
+
};
|
|
167
|
+
};
|
|
168
|
+
block: {
|
|
169
|
+
true: {
|
|
170
|
+
base: string;
|
|
171
|
+
};
|
|
172
|
+
false: {
|
|
173
|
+
base: string;
|
|
174
|
+
};
|
|
175
|
+
};
|
|
176
|
+
justify: {
|
|
177
|
+
true: {
|
|
178
|
+
base: string;
|
|
179
|
+
};
|
|
180
|
+
};
|
|
181
|
+
hasChildren: {
|
|
182
|
+
true: string;
|
|
183
|
+
};
|
|
184
|
+
isFocusVisible: {
|
|
185
|
+
true: {
|
|
186
|
+
base: string;
|
|
187
|
+
};
|
|
188
|
+
false: {
|
|
189
|
+
base: string;
|
|
190
|
+
};
|
|
191
|
+
};
|
|
192
|
+
}, {
|
|
193
|
+
base: string;
|
|
194
|
+
iconBefore: string;
|
|
195
|
+
iconAfter: string;
|
|
196
|
+
dropdown: string;
|
|
197
|
+
text: string;
|
|
198
|
+
}, undefined, {
|
|
199
|
+
responsiveVariants: string[];
|
|
200
|
+
}, unknown, unknown, undefined>>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { tv } from 'tailwind-variants';
|
|
2
2
|
export const styles = tv({
|
|
3
3
|
slots: {
|
|
4
|
-
base: 'items-center justify-center rounded leading-
|
|
4
|
+
base: 'items-center justify-center rounded leading-normal transition-[background] disabled:pointer-events-none disabled:opacity-50 group-first/add-on-before:rounded-r-none group-last/add-on-after:rounded-l-none',
|
|
5
5
|
iconBefore: '',
|
|
6
6
|
iconAfter: '',
|
|
7
7
|
dropdown: 'ml-[0.4em]',
|
|
@@ -10,16 +10,16 @@ export const styles = tv({
|
|
|
10
10
|
variants: {
|
|
11
11
|
size: {
|
|
12
12
|
small: {
|
|
13
|
-
base: 'typography-body-10 px-2 pb-
|
|
13
|
+
base: 'typography-body-10 px-2 pb-1 pt-0.5 active-theme-rams:before:h-[0.0625rem]'
|
|
14
14
|
},
|
|
15
15
|
medium: {
|
|
16
|
-
base: 'typography-body-9 px-2 py-[0.3125rem] active-theme-rams:before:h-
|
|
16
|
+
base: 'typography-body-9 px-2 py-[0.3125rem] active-theme-rams:before:h-0.5'
|
|
17
17
|
},
|
|
18
18
|
large: {
|
|
19
|
-
base: 'typography-body-9 px-2.5 py-
|
|
19
|
+
base: 'typography-body-9 px-2.5 py-2 active-theme-rams:before:h-0.5'
|
|
20
20
|
},
|
|
21
21
|
xlarge: {
|
|
22
|
-
base: 'typography-body-8 px-3 pb-
|
|
22
|
+
base: 'typography-body-8 px-3 pb-2.5 pt-1.5 active-theme-rams:before:h-1'
|
|
23
23
|
}
|
|
24
24
|
},
|
|
25
25
|
look: {
|
|
@@ -3,6 +3,7 @@ import { type VariantProps } from 'tailwind-variants';
|
|
|
3
3
|
import { IconProps } from '../icon/index.js';
|
|
4
4
|
import { styles } from './button.styles.js';
|
|
5
5
|
type Variants = VariantProps<typeof styles>;
|
|
6
|
+
export type ButtonRef = HTMLButtonElement & HTMLAnchorElement & HTMLSpanElement & HTMLDivElement;
|
|
6
7
|
export type ButtonProps = {
|
|
7
8
|
/**
|
|
8
9
|
* Fit button width to its parent width.
|
|
@@ -27,6 +28,12 @@ export type ButtonProps = {
|
|
|
27
28
|
* Defaults to the current text color.
|
|
28
29
|
*/
|
|
29
30
|
iconColor?: IconProps['color'];
|
|
31
|
+
/**
|
|
32
|
+
* The size of the icon
|
|
33
|
+
*
|
|
34
|
+
* Defaults to system size depending on size of the button
|
|
35
|
+
*/
|
|
36
|
+
iconSize?: IconProps['size'];
|
|
30
37
|
/**
|
|
31
38
|
* When true, children will use flex justify-between
|
|
32
39
|
* @default false
|
|
@@ -42,4 +42,27 @@ export declare const styles: import("tailwind-variants").TVReturnType<{
|
|
|
42
42
|
}, {
|
|
43
43
|
base: string;
|
|
44
44
|
panel: string;
|
|
45
|
-
}
|
|
45
|
+
}, import("tailwind-variants").TVReturnType<{
|
|
46
|
+
dropdownSize: {
|
|
47
|
+
small: {
|
|
48
|
+
panel: string;
|
|
49
|
+
};
|
|
50
|
+
medium: {
|
|
51
|
+
panel: string;
|
|
52
|
+
};
|
|
53
|
+
large: {
|
|
54
|
+
panel: string;
|
|
55
|
+
};
|
|
56
|
+
};
|
|
57
|
+
block: {
|
|
58
|
+
true: {
|
|
59
|
+
panel: string;
|
|
60
|
+
base: string;
|
|
61
|
+
};
|
|
62
|
+
};
|
|
63
|
+
}, {
|
|
64
|
+
base: string;
|
|
65
|
+
panel: string;
|
|
66
|
+
}, undefined, {
|
|
67
|
+
responsiveVariants: string[];
|
|
68
|
+
}, unknown, unknown, undefined>>;
|
|
@@ -4,4 +4,8 @@ export declare const styles: import("tailwind-variants").TVReturnType<{}, {
|
|
|
4
4
|
responsiveVariants: string[];
|
|
5
5
|
}, {}, {
|
|
6
6
|
base: string;
|
|
7
|
-
}
|
|
7
|
+
}, import("tailwind-variants").TVReturnType<{}, {
|
|
8
|
+
base: string;
|
|
9
|
+
}, undefined, {
|
|
10
|
+
responsiveVariants: string[];
|
|
11
|
+
}, unknown, unknown, undefined>>;
|
|
@@ -18,4 +18,15 @@ export declare const styles: import("tailwind-variants").TVReturnType<{
|
|
|
18
18
|
}, {
|
|
19
19
|
base: string;
|
|
20
20
|
dialog: string;
|
|
21
|
-
}
|
|
21
|
+
}, import("tailwind-variants").TVReturnType<{
|
|
22
|
+
isFocused: {
|
|
23
|
+
true: {
|
|
24
|
+
dialog: string;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
}, {
|
|
28
|
+
base: string;
|
|
29
|
+
dialog: string;
|
|
30
|
+
}, undefined, {
|
|
31
|
+
responsiveVariants: string[];
|
|
32
|
+
}, unknown, unknown, undefined>>;
|
|
@@ -1,22 +1,35 @@
|
|
|
1
|
-
export declare const styles: import("tailwind-variants").TVReturnType<
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
export declare const styles: import("tailwind-variants").TVReturnType<{
|
|
2
|
+
[key: string]: {
|
|
3
|
+
[key: string]: import("tailwind-variants").ClassValue | {
|
|
4
|
+
base?: import("tailwind-variants").ClassValue;
|
|
5
|
+
buttonWrapper?: import("tailwind-variants").ClassValue;
|
|
6
|
+
};
|
|
7
|
+
};
|
|
8
|
+
} | {
|
|
5
9
|
[x: string]: {
|
|
6
|
-
[x: string]: import("tailwind-variants").ClassValue |
|
|
7
|
-
base
|
|
8
|
-
buttonWrapper
|
|
9
|
-
}
|
|
10
|
-
}
|
|
10
|
+
[x: string]: import("tailwind-variants").ClassValue | {
|
|
11
|
+
base?: import("tailwind-variants").ClassValue;
|
|
12
|
+
buttonWrapper?: import("tailwind-variants").ClassValue;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
11
15
|
} | {}, {
|
|
12
16
|
base: string;
|
|
13
17
|
buttonWrapper: string;
|
|
14
18
|
}, undefined, {
|
|
15
19
|
responsiveVariants: string[];
|
|
16
|
-
},
|
|
20
|
+
}, {
|
|
21
|
+
[key: string]: {
|
|
22
|
+
[key: string]: import("tailwind-variants").ClassValue | {
|
|
23
|
+
base?: import("tailwind-variants").ClassValue;
|
|
24
|
+
buttonWrapper?: import("tailwind-variants").ClassValue;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
} | {}, {
|
|
17
28
|
base: string;
|
|
18
29
|
buttonWrapper: string;
|
|
19
|
-
},
|
|
30
|
+
}, import("tailwind-variants").TVReturnType<unknown, {
|
|
20
31
|
base: string;
|
|
21
32
|
buttonWrapper: string;
|
|
22
|
-
}
|
|
33
|
+
}, undefined, {
|
|
34
|
+
responsiveVariants: string[];
|
|
35
|
+
}, unknown, unknown, undefined>>;
|
package/dist/components/button-group/components/button-group-button/button-group-button.styles.d.ts
CHANGED
|
@@ -44,4 +44,28 @@ export declare const styles: import("tailwind-variants").TVReturnType<{
|
|
|
44
44
|
}, {
|
|
45
45
|
base: string;
|
|
46
46
|
button: string;
|
|
47
|
-
}
|
|
47
|
+
}, import("tailwind-variants").TVReturnType<{
|
|
48
|
+
isDisabled: {
|
|
49
|
+
true: {
|
|
50
|
+
button: string;
|
|
51
|
+
};
|
|
52
|
+
};
|
|
53
|
+
isFocusVisible: {
|
|
54
|
+
true: {
|
|
55
|
+
button: string;
|
|
56
|
+
};
|
|
57
|
+
};
|
|
58
|
+
block: {
|
|
59
|
+
true: {
|
|
60
|
+
base: string;
|
|
61
|
+
};
|
|
62
|
+
false: {
|
|
63
|
+
base: string;
|
|
64
|
+
};
|
|
65
|
+
};
|
|
66
|
+
}, {
|
|
67
|
+
base: string;
|
|
68
|
+
button: string;
|
|
69
|
+
}, undefined, {
|
|
70
|
+
responsiveVariants: string[];
|
|
71
|
+
}, unknown, unknown, undefined>>;
|
|
@@ -38,4 +38,25 @@ export declare const styles: import("tailwind-variants").TVReturnType<{
|
|
|
38
38
|
itemWrapper: string;
|
|
39
39
|
revealButton: string;
|
|
40
40
|
buttonText: string;
|
|
41
|
-
}
|
|
41
|
+
}, import("tailwind-variants").TVReturnType<{
|
|
42
|
+
orientation: {
|
|
43
|
+
horizontal: {
|
|
44
|
+
itemWrapper: string;
|
|
45
|
+
};
|
|
46
|
+
vertical: {
|
|
47
|
+
itemWrapper: string;
|
|
48
|
+
};
|
|
49
|
+
};
|
|
50
|
+
isFocusVisible: {
|
|
51
|
+
true: {
|
|
52
|
+
revealButton: string;
|
|
53
|
+
};
|
|
54
|
+
};
|
|
55
|
+
}, {
|
|
56
|
+
base: string;
|
|
57
|
+
itemWrapper: string;
|
|
58
|
+
revealButton: string;
|
|
59
|
+
buttonText: string;
|
|
60
|
+
}, undefined, {
|
|
61
|
+
responsiveVariants: string[];
|
|
62
|
+
}, unknown, unknown, undefined>>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
export declare const CheckboxGroupCheckbox: React.ForwardRefExoticComponent<{
|
|
3
|
-
className?: string
|
|
3
|
+
className?: string;
|
|
4
4
|
hint?: React.ReactNode;
|
|
5
5
|
label: React.ReactNode;
|
|
6
6
|
} & Omit<import("react-aria").AriaCheckboxGroupItemProps, "children" | "isIndeterminate"> & React.RefAttributes<HTMLLabelElement>>;
|
|
@@ -84,4 +84,48 @@ export declare const styles: import("tailwind-variants").TVReturnType<{
|
|
|
84
84
|
labelText: string;
|
|
85
85
|
hintText: string;
|
|
86
86
|
checkbox: string;
|
|
87
|
-
}
|
|
87
|
+
}, import("tailwind-variants").TVReturnType<{
|
|
88
|
+
isDisabled: {
|
|
89
|
+
true: {
|
|
90
|
+
labelText: string;
|
|
91
|
+
checkbox: string;
|
|
92
|
+
};
|
|
93
|
+
false: {
|
|
94
|
+
base: string;
|
|
95
|
+
};
|
|
96
|
+
};
|
|
97
|
+
isFocusVisible: {
|
|
98
|
+
true: {
|
|
99
|
+
checkbox: string;
|
|
100
|
+
};
|
|
101
|
+
};
|
|
102
|
+
orientation: {
|
|
103
|
+
horizontal: {
|
|
104
|
+
base: string;
|
|
105
|
+
};
|
|
106
|
+
vertical: {
|
|
107
|
+
base: string;
|
|
108
|
+
};
|
|
109
|
+
};
|
|
110
|
+
size: {
|
|
111
|
+
large: {
|
|
112
|
+
checkIcon: string;
|
|
113
|
+
base: string;
|
|
114
|
+
checkbox: string;
|
|
115
|
+
};
|
|
116
|
+
medium: {
|
|
117
|
+
checkIcon: string;
|
|
118
|
+
base: string;
|
|
119
|
+
checkbox: string;
|
|
120
|
+
};
|
|
121
|
+
};
|
|
122
|
+
}, {
|
|
123
|
+
base: string;
|
|
124
|
+
checkIcon: string;
|
|
125
|
+
textWrapper: string;
|
|
126
|
+
labelText: string;
|
|
127
|
+
hintText: string;
|
|
128
|
+
checkbox: string;
|
|
129
|
+
}, undefined, {
|
|
130
|
+
responsiveVariants: string[];
|
|
131
|
+
}, unknown, unknown, undefined>>;
|
|
@@ -1,3 +1,5 @@
|
|
|
1
1
|
export declare const styles: import("tailwind-variants").TVReturnType<{}, undefined, "flex h-5 w-5 flex-col items-center justify-center overflow-hidden rounded-full bg-background", {
|
|
2
2
|
responsiveVariants: string[];
|
|
3
|
-
}, {}, undefined
|
|
3
|
+
}, {}, undefined, import("tailwind-variants").TVReturnType<{}, undefined, "flex h-5 w-5 flex-col items-center justify-center overflow-hidden rounded-full bg-background", {
|
|
4
|
+
responsiveVariants: string[];
|
|
5
|
+
}, unknown, unknown, undefined>>;
|
|
@@ -18,4 +18,15 @@ export declare const styles: import("tailwind-variants").TVReturnType<{
|
|
|
18
18
|
}, {
|
|
19
19
|
base: string;
|
|
20
20
|
content: string;
|
|
21
|
-
}
|
|
21
|
+
}, import("tailwind-variants").TVReturnType<{
|
|
22
|
+
open: {
|
|
23
|
+
true: {
|
|
24
|
+
base: string;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
}, {
|
|
28
|
+
base: string;
|
|
29
|
+
content: string;
|
|
30
|
+
}, undefined, {
|
|
31
|
+
responsiveVariants: string[];
|
|
32
|
+
}, unknown, unknown, undefined>>;
|
|
@@ -34,4 +34,23 @@ export declare const styles: import("tailwind-variants").TVReturnType<{}, {
|
|
|
34
34
|
titlePrimary: string;
|
|
35
35
|
titleSecondary: string;
|
|
36
36
|
titleTertiary: string;
|
|
37
|
-
}
|
|
37
|
+
}, import("tailwind-variants").TVReturnType<{}, {
|
|
38
|
+
base: string;
|
|
39
|
+
item: string;
|
|
40
|
+
header: string;
|
|
41
|
+
headerTitle: string;
|
|
42
|
+
primaryHeading: string;
|
|
43
|
+
secondaryHeading: string;
|
|
44
|
+
itemIndex: string;
|
|
45
|
+
removeBtn: string;
|
|
46
|
+
addBtn: string;
|
|
47
|
+
toggleBtn: string;
|
|
48
|
+
collapsible: string;
|
|
49
|
+
content: string;
|
|
50
|
+
footer: string;
|
|
51
|
+
titlePrimary: string;
|
|
52
|
+
titleSecondary: string;
|
|
53
|
+
titleTertiary: string;
|
|
54
|
+
}, undefined, {
|
|
55
|
+
responsiveVariants: string[];
|
|
56
|
+
}, unknown, unknown, undefined>>;
|
|
@@ -22,4 +22,17 @@ export declare const styles: import("tailwind-variants").TVReturnType<{
|
|
|
22
22
|
true: string;
|
|
23
23
|
false: string;
|
|
24
24
|
};
|
|
25
|
-
}, undefined
|
|
25
|
+
}, undefined, import("tailwind-variants").TVReturnType<{
|
|
26
|
+
size: {
|
|
27
|
+
sm: string;
|
|
28
|
+
md: string;
|
|
29
|
+
lg: string;
|
|
30
|
+
xl: string;
|
|
31
|
+
};
|
|
32
|
+
block: {
|
|
33
|
+
true: string;
|
|
34
|
+
false: string;
|
|
35
|
+
};
|
|
36
|
+
}, undefined, "date-picker", {
|
|
37
|
+
responsiveVariants: string[];
|
|
38
|
+
}, unknown, unknown, undefined>>;
|
|
@@ -1,25 +1,37 @@
|
|
|
1
|
-
export declare const styles: import("tailwind-variants").TVReturnType<
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
export declare const styles: import("tailwind-variants").TVReturnType<{
|
|
2
|
+
[key: string]: {
|
|
3
|
+
[key: string]: import("tailwind-variants").ClassValue | {
|
|
4
|
+
base?: import("tailwind-variants").ClassValue;
|
|
5
|
+
list?: import("tailwind-variants").ClassValue;
|
|
6
|
+
icon?: import("tailwind-variants").ClassValue;
|
|
7
|
+
};
|
|
8
|
+
};
|
|
9
|
+
} | {
|
|
6
10
|
[x: string]: {
|
|
7
|
-
[x: string]: import("tailwind-variants").ClassValue |
|
|
8
|
-
base
|
|
9
|
-
list
|
|
10
|
-
icon
|
|
11
|
-
}
|
|
12
|
-
}
|
|
11
|
+
[x: string]: import("tailwind-variants").ClassValue | {
|
|
12
|
+
base?: import("tailwind-variants").ClassValue;
|
|
13
|
+
list?: import("tailwind-variants").ClassValue;
|
|
14
|
+
icon?: import("tailwind-variants").ClassValue;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
13
17
|
} | {}, {
|
|
14
18
|
base: string;
|
|
15
19
|
list: string;
|
|
16
20
|
icon: string;
|
|
17
|
-
}, undefined, TVConfig<V, EV>,
|
|
21
|
+
}, undefined, TVConfig<V, EV>, {
|
|
22
|
+
[key: string]: {
|
|
23
|
+
[key: string]: import("tailwind-variants").ClassValue | {
|
|
24
|
+
base?: import("tailwind-variants").ClassValue;
|
|
25
|
+
list?: import("tailwind-variants").ClassValue;
|
|
26
|
+
icon?: import("tailwind-variants").ClassValue;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
} | {}, {
|
|
18
30
|
base: string;
|
|
19
31
|
list: string;
|
|
20
32
|
icon: string;
|
|
21
|
-
},
|
|
33
|
+
}, import("tailwind-variants").TVReturnType<unknown, {
|
|
22
34
|
base: string;
|
|
23
35
|
list: string;
|
|
24
36
|
icon: string;
|
|
25
|
-
}
|
|
37
|
+
}, undefined, TVConfig<V, EV>, unknown, unknown, undefined>>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { tv } from 'tailwind-variants';
|
|
2
2
|
export const styles = tv({
|
|
3
3
|
slots: {
|
|
4
|
-
base: 'typography-body-11 flex items-
|
|
4
|
+
base: 'typography-body-11 flex items-start text-danger',
|
|
5
5
|
list: 'mb-2 flex flex-col gap-1',
|
|
6
|
-
icon: 'mr-[0.5em] align-top'
|
|
6
|
+
icon: 'mr-[0.5em] align-top mt-[0.15rem]'
|
|
7
7
|
}
|
|
8
8
|
});
|
|
@@ -1,3 +1,5 @@
|
|
|
1
1
|
export declare const styles: import("tailwind-variants").TVReturnType<{}, undefined, "", {
|
|
2
2
|
responsiveVariants: string[];
|
|
3
|
-
}, {}, undefined
|
|
3
|
+
}, {}, undefined, import("tailwind-variants").TVReturnType<{}, undefined, "", {
|
|
4
|
+
responsiveVariants: string[];
|
|
5
|
+
}, unknown, unknown, undefined>>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { type FilterButtonsProps } from './filter-buttons.types.js';
|
|
2
|
-
export declare function FilterButtons({ filterButtons, onClick, selectedButton,
|
|
2
|
+
export declare function FilterButtons({ filterButtons, onClick, selectedButton, tag: Tag, className, ...props }: FilterButtonsProps): import("react/jsx-runtime").JSX.Element;
|