@ultraviolet/ui 3.0.0-beta.2 → 3.0.0-beta.21
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/README.md +23 -11
- package/dist/components/ActionBar/index.cjs +5 -30
- package/dist/components/ActionBar/index.js +5 -28
- package/dist/components/ActionBar/styles.css.cjs +11 -0
- package/dist/components/ActionBar/styles.css.d.ts +3 -0
- package/dist/components/ActionBar/styles.css.js +11 -0
- package/dist/components/Alert/index.cjs +8 -76
- package/dist/components/Alert/index.d.ts +1 -2
- package/dist/components/Alert/index.js +8 -74
- package/dist/components/Alert/styles.css.cjs +14 -0
- package/dist/components/Alert/styles.css.d.ts +35 -0
- package/dist/components/Alert/styles.css.js +14 -0
- package/dist/components/Alert/type.d.ts +2 -0
- package/dist/components/Avatar/constants.cjs +0 -9
- package/dist/components/Avatar/constants.js +0 -9
- package/dist/components/Avatar/index.cjs +42 -117
- package/dist/components/Avatar/index.js +43 -116
- package/dist/components/Avatar/styles.css.cjs +16 -0
- package/dist/components/Avatar/styles.css.d.ts +128 -0
- package/dist/components/Avatar/styles.css.js +16 -0
- package/dist/components/Avatar/variables.css.cjs +9 -0
- package/dist/components/Avatar/variables.css.d.ts +3 -0
- package/dist/components/Avatar/variables.css.js +9 -0
- package/dist/components/Badge/constant.cjs +8 -0
- package/dist/components/Badge/constant.d.ts +14 -0
- package/dist/components/Badge/constant.js +8 -0
- package/dist/components/Badge/index.cjs +10 -88
- package/dist/components/Badge/index.d.ts +2 -20
- package/dist/components/Badge/index.js +8 -84
- package/dist/components/Badge/styles.css.cjs +6 -0
- package/dist/components/Badge/styles.css.d.ts +43 -0
- package/dist/components/Badge/styles.css.js +6 -0
- package/dist/components/Banner/index.cjs +12 -69
- package/dist/components/Banner/index.d.ts +3 -5
- package/dist/components/Banner/index.js +8 -63
- package/dist/components/Banner/styles.css.cjs +10 -0
- package/dist/components/Banner/styles.css.d.ts +18 -0
- package/dist/components/Banner/styles.css.js +10 -0
- package/dist/components/BarChart/Tooltip.cjs +6 -37
- package/dist/components/BarChart/Tooltip.js +6 -35
- package/dist/components/BarChart/index.cjs +4 -4
- package/dist/components/BarChart/index.js +1 -1
- package/dist/components/BarChart/styles.css.cjs +9 -0
- package/dist/components/BarChart/styles.css.d.ts +3 -0
- package/dist/components/BarChart/styles.css.js +9 -0
- package/dist/components/BarStack/index.cjs +7 -96
- package/dist/components/BarStack/index.d.ts +2 -1
- package/dist/components/BarStack/index.js +7 -94
- package/dist/components/BarStack/styles.css.cjs +11 -0
- package/dist/components/BarStack/styles.css.d.ts +4 -0
- package/dist/components/BarStack/styles.css.js +11 -0
- package/dist/components/Breadcrumbs/components/Item.cjs +25 -42
- package/dist/components/Breadcrumbs/components/Item.d.ts +3 -2
- package/dist/components/Breadcrumbs/components/Item.js +25 -40
- package/dist/components/Breadcrumbs/components/styles.css.cjs +16 -0
- package/dist/components/Breadcrumbs/components/styles.css.d.ts +12 -0
- package/dist/components/Breadcrumbs/components/styles.css.js +16 -0
- package/dist/components/Breadcrumbs/index.cjs +2 -19
- package/dist/components/Breadcrumbs/index.js +2 -17
- package/dist/components/Breadcrumbs/styles.css.cjs +5 -0
- package/dist/components/Breadcrumbs/styles.css.d.ts +1 -0
- package/dist/components/Breadcrumbs/styles.css.js +5 -0
- package/dist/components/Bullet/constants.d.ts +10 -0
- package/dist/components/Bullet/index.cjs +9 -75
- package/dist/components/Bullet/index.d.ts +5 -14
- package/dist/components/Bullet/index.js +10 -74
- package/dist/components/Bullet/styles.css.cjs +6 -0
- package/dist/components/Bullet/styles.css.d.ts +23 -0
- package/dist/components/Bullet/styles.css.js +6 -0
- package/dist/components/Button/constants.cjs +0 -1
- package/dist/components/Button/constants.js +0 -1
- package/dist/components/Button/index.cjs +7 -6
- package/dist/components/Button/index.d.ts +4 -3
- package/dist/components/Button/index.js +6 -5
- package/dist/components/Button/styles.css.cjs +0 -2
- package/dist/components/Button/styles.css.d.ts +4 -4
- package/dist/components/Button/styles.css.js +0 -2
- package/dist/components/Card/index.cjs +9 -43
- package/dist/components/Card/index.js +4 -36
- package/dist/components/Card/styles.css.cjs +7 -0
- package/dist/components/Card/styles.css.d.ts +2 -0
- package/dist/components/Card/styles.css.js +7 -0
- package/dist/components/Carousel/index.cjs +9 -64
- package/dist/components/Carousel/index.js +9 -62
- package/dist/components/Carousel/styles.css.cjs +15 -0
- package/dist/components/Carousel/styles.css.d.ts +6 -0
- package/dist/components/Carousel/styles.css.js +15 -0
- package/dist/components/Checkbox/index.cjs +9 -207
- package/dist/components/Checkbox/index.d.ts +0 -20
- package/dist/components/Checkbox/index.js +9 -205
- package/dist/components/Checkbox/styles.css.cjs +17 -0
- package/dist/components/Checkbox/styles.css.d.ts +7 -0
- package/dist/components/Checkbox/styles.css.js +17 -0
- package/dist/components/CheckboxGroup/index.cjs +3 -34
- package/dist/components/CheckboxGroup/index.js +3 -32
- package/dist/components/CheckboxGroup/styles.css.cjs +7 -0
- package/dist/components/CheckboxGroup/styles.css.d.ts +2 -0
- package/dist/components/CheckboxGroup/styles.css.js +7 -0
- package/dist/components/Chip/ChipContext.d.ts +1 -1
- package/dist/components/Chip/ChipIcon.cjs +10 -21
- package/dist/components/Chip/ChipIcon.js +10 -19
- package/dist/components/Chip/index.cjs +2 -56
- package/dist/components/Chip/index.d.ts +1 -1
- package/dist/components/Chip/index.js +2 -54
- package/dist/components/Chip/styles.css.cjs +7 -0
- package/dist/components/Chip/styles.css.d.ts +2 -0
- package/dist/components/Chip/styles.css.js +7 -0
- package/dist/components/DateInput/components/CalendarContent.cjs +2 -20
- package/dist/components/DateInput/components/CalendarContent.js +2 -18
- package/dist/components/DateInput/components/CalendarDaily.cjs +3 -43
- package/dist/components/DateInput/components/CalendarDaily.js +3 -41
- package/dist/components/DateInput/components/CalendarMonthly.cjs +2 -24
- package/dist/components/DateInput/components/CalendarMonthly.js +2 -22
- package/dist/components/DateInput/components/Popup.cjs +2 -15
- package/dist/components/DateInput/components/Popup.js +2 -13
- package/dist/components/DateInput/components/styles.css.cjs +12 -0
- package/dist/components/DateInput/components/styles.css.d.ts +4 -0
- package/dist/components/DateInput/components/styles.css.js +12 -0
- package/dist/components/DateInput/helpers.cjs +0 -8
- package/dist/components/DateInput/helpers.d.ts +0 -2
- package/dist/components/DateInput/helpers.js +1 -9
- package/dist/components/DateInput/index.cjs +10 -30
- package/dist/components/DateInput/index.js +11 -29
- package/dist/components/DateInput/styles.css.cjs +8 -0
- package/dist/components/DateInput/styles.css.d.ts +8 -0
- package/dist/components/DateInput/styles.css.js +8 -0
- package/dist/components/Dialog/constants.d.ts +1 -1
- package/dist/components/Dialog/index.cjs +2 -2
- package/dist/components/Dialog/index.d.ts +4 -3
- package/dist/components/Dialog/index.js +2 -2
- package/dist/components/Drawer/index.cjs +14 -100
- package/dist/components/Drawer/index.d.ts +9 -16
- package/dist/components/Drawer/index.js +11 -95
- package/dist/components/Drawer/styles.css.cjs +17 -0
- package/dist/components/Drawer/styles.css.d.ts +12 -0
- package/dist/components/Drawer/styles.css.js +17 -0
- package/dist/components/EmptyState/index.cjs +11 -74
- package/dist/components/EmptyState/index.d.ts +1 -6
- package/dist/components/EmptyState/index.js +8 -69
- package/dist/components/EmptyState/styles.css.cjs +10 -0
- package/dist/components/EmptyState/styles.css.d.ts +29 -0
- package/dist/components/EmptyState/styles.css.js +10 -0
- package/dist/components/Expandable/index.cjs +5 -17
- package/dist/components/Expandable/index.d.ts +0 -6
- package/dist/components/Expandable/index.js +6 -16
- package/dist/components/Expandable/styles.css.cjs +7 -0
- package/dist/components/Expandable/styles.css.d.ts +2 -0
- package/dist/components/Expandable/styles.css.js +7 -0
- package/dist/components/ExpandableCard/index.cjs +17 -100
- package/dist/components/ExpandableCard/index.d.ts +3 -1
- package/dist/components/ExpandableCard/index.js +12 -93
- package/dist/components/ExpandableCard/styles.css.cjs +17 -0
- package/dist/components/ExpandableCard/styles.css.d.ts +7 -0
- package/dist/components/ExpandableCard/styles.css.js +17 -0
- package/dist/components/GlobalAlert/GlobalAlertLink.cjs +2 -2
- package/dist/components/GlobalAlert/GlobalAlertLink.js +1 -1
- package/dist/components/GlobalAlert/index.cjs +3 -30
- package/dist/components/GlobalAlert/index.js +3 -28
- package/dist/components/GlobalAlert/styles.css.cjs +7 -0
- package/dist/components/GlobalAlert/styles.css.d.ts +2 -0
- package/dist/components/GlobalAlert/styles.css.js +7 -0
- package/dist/components/Key/index.cjs +85 -0
- package/dist/components/Key/index.d.ts +23 -0
- package/dist/components/Key/index.js +83 -0
- package/dist/components/Label/index.cjs +20 -24
- package/dist/components/Label/index.js +20 -22
- package/dist/components/Label/styles.css.cjs +5 -0
- package/dist/components/Label/styles.css.d.ts +1 -0
- package/dist/components/Label/styles.css.js +5 -0
- package/dist/components/LineChart/CustomLegend.cjs +9 -61
- package/dist/components/LineChart/CustomLegend.js +9 -59
- package/dist/components/LineChart/Tooltip.cjs +6 -35
- package/dist/components/LineChart/Tooltip.js +6 -33
- package/dist/components/LineChart/index.cjs +5 -5
- package/dist/components/LineChart/index.js +1 -1
- package/dist/components/LineChart/styles.css.cjs +17 -0
- package/dist/components/LineChart/styles.css.d.ts +7 -0
- package/dist/components/LineChart/styles.css.js +17 -0
- package/dist/components/Link/constants.d.ts +6 -0
- package/dist/components/Link/index.cjs +11 -114
- package/dist/components/Link/index.d.ts +1 -6
- package/dist/components/Link/index.js +12 -113
- package/dist/components/Link/styles.css.cjs +14 -0
- package/dist/components/Link/styles.css.d.ts +78 -0
- package/dist/components/Link/styles.css.js +14 -0
- package/dist/components/List/index.cjs +2 -2
- package/dist/components/List/index.d.ts +1 -1
- package/dist/components/List/index.js +2 -2
- package/dist/components/Loader/index.cjs +4 -36
- package/dist/components/Loader/index.d.ts +0 -4
- package/dist/components/Loader/index.js +5 -35
- package/dist/components/Loader/styles.css.cjs +7 -0
- package/dist/components/Loader/styles.css.d.ts +2 -0
- package/dist/components/Loader/styles.css.js +7 -0
- package/dist/components/Menu/index.d.ts +1 -1
- package/dist/components/Meter/index.cjs +6 -37
- package/dist/components/Meter/index.js +6 -35
- package/dist/components/Meter/styles.css.cjs +11 -0
- package/dist/components/Meter/styles.css.d.ts +4 -0
- package/dist/components/Meter/styles.css.js +11 -0
- package/dist/components/Modal/ModalContent.cjs +2 -14
- package/dist/components/Modal/ModalContent.js +2 -12
- package/dist/components/Modal/components/Dialog.cjs +18 -82
- package/dist/components/Modal/components/Dialog.d.ts +1 -13
- package/dist/components/Modal/components/Dialog.js +19 -81
- package/dist/components/Modal/constants.d.ts +42 -2
- package/dist/components/Modal/styles.css.cjs +21 -0
- package/dist/components/Modal/styles.css.d.ts +78 -0
- package/dist/components/Modal/styles.css.js +21 -0
- package/dist/components/Notice/index.cjs +2 -12
- package/dist/components/Notice/index.js +2 -10
- package/dist/components/Notice/styles.css.cjs +5 -0
- package/dist/components/Notice/styles.css.d.ts +1 -0
- package/dist/components/Notice/styles.css.js +5 -0
- package/dist/components/Notification/index.cjs +2 -19
- package/dist/components/Notification/index.js +3 -20
- package/dist/components/Notification/styles.css.cjs +5 -0
- package/dist/components/Notification/styles.css.d.ts +1 -0
- package/dist/components/Notification/styles.css.js +5 -0
- package/dist/components/NumberInput/constant.d.ts +5 -0
- package/dist/components/NumberInput/index.cjs +43 -157
- package/dist/components/NumberInput/index.d.ts +2 -6
- package/dist/components/NumberInput/index.js +42 -154
- package/dist/components/NumberInput/styles.css.cjs +14 -0
- package/dist/components/NumberInput/styles.css.d.ts +109 -0
- package/dist/components/NumberInput/styles.css.js +14 -0
- package/dist/components/Pagination/PaginationButtons.cjs +4 -41
- package/dist/components/Pagination/PaginationButtons.js +4 -39
- package/dist/components/Pagination/PerPage.cjs +3 -20
- package/dist/components/Pagination/PerPage.js +3 -18
- package/dist/components/Pagination/styles.css.cjs +9 -0
- package/dist/components/Pagination/styles.css.d.ts +3 -0
- package/dist/components/Pagination/styles.css.js +9 -0
- package/dist/components/PasswordCheck/index.cjs +2 -12
- package/dist/components/PasswordCheck/index.js +2 -10
- package/dist/components/PasswordCheck/styles.css.cjs +5 -0
- package/dist/components/PasswordCheck/styles.css.d.ts +1 -0
- package/dist/components/PasswordCheck/styles.css.js +5 -0
- package/dist/components/PieChart/Legends.cjs +20 -124
- package/dist/components/PieChart/Legends.js +20 -122
- package/dist/components/PieChart/Tooltip.cjs +4 -35
- package/dist/components/PieChart/Tooltip.js +4 -33
- package/dist/components/PieChart/index.cjs +13 -36
- package/dist/components/PieChart/index.js +8 -29
- package/dist/components/PieChart/styles.css.cjs +36 -0
- package/dist/components/PieChart/styles.css.d.ts +49 -0
- package/dist/components/PieChart/styles.css.js +36 -0
- package/dist/components/Popover/constant.d.ts +5 -0
- package/dist/components/Popover/index.cjs +6 -41
- package/dist/components/Popover/index.d.ts +1 -5
- package/dist/components/Popover/index.js +6 -39
- package/dist/components/Popover/styles.css.cjs +8 -0
- package/dist/components/Popover/styles.css.d.ts +35 -0
- package/dist/components/Popover/styles.css.js +8 -0
- package/dist/components/Popup/helpers.cjs +8 -4
- package/dist/components/Popup/helpers.js +8 -4
- package/dist/components/Popup/index.cjs +25 -62
- package/dist/components/Popup/index.d.ts +9 -4
- package/dist/components/Popup/index.js +27 -62
- package/dist/components/Popup/styles.css.cjs +13 -0
- package/dist/components/Popup/styles.css.d.ts +45 -0
- package/dist/components/Popup/styles.css.js +13 -0
- package/dist/components/Popup/variables.css.cjs +18 -0
- package/dist/components/Popup/variables.css.d.ts +9 -0
- package/dist/components/Popup/variables.css.js +18 -0
- package/dist/components/ProgressBar/constants.d.ts +1 -0
- package/dist/components/ProgressBar/index.cjs +7 -77
- package/dist/components/ProgressBar/index.d.ts +2 -2
- package/dist/components/ProgressBar/index.js +7 -75
- package/dist/components/ProgressBar/styles.css.cjs +12 -0
- package/dist/components/ProgressBar/styles.css.d.ts +4 -0
- package/dist/components/ProgressBar/styles.css.js +12 -0
- package/dist/components/{Breadcrumbs/constants.cjs → ProgressBar/variables.css.cjs} +2 -2
- package/dist/components/ProgressBar/variables.css.d.ts +1 -0
- package/dist/components/ProgressBar/variables.css.js +4 -0
- package/dist/components/Radio/index.cjs +30 -136
- package/dist/components/Radio/index.d.ts +0 -32
- package/dist/components/Radio/index.js +31 -135
- package/dist/components/Radio/styles.css.cjs +21 -0
- package/dist/components/Radio/styles.css.d.ts +9 -0
- package/dist/components/Radio/styles.css.js +21 -0
- package/dist/components/RadioGroup/index.cjs +2 -20
- package/dist/components/RadioGroup/index.js +2 -18
- package/dist/components/RadioGroup/styles.css.cjs +5 -0
- package/dist/components/RadioGroup/styles.css.d.ts +1 -0
- package/dist/components/RadioGroup/styles.css.js +5 -0
- package/dist/components/Row/index.cjs +28 -38
- package/dist/components/Row/index.d.ts +8 -10
- package/dist/components/Row/index.js +29 -37
- package/dist/components/Row/styles.css.cjs +17 -0
- package/dist/components/Row/styles.css.d.ts +460 -0
- package/dist/components/Row/styles.css.js +17 -0
- package/dist/components/Row/variables.css.cjs +7 -0
- package/dist/components/Row/variables.css.d.ts +4 -0
- package/dist/components/Row/variables.css.js +7 -0
- package/dist/components/SearchInput/KeyGroup.cjs +3 -21
- package/dist/components/SearchInput/KeyGroup.d.ts +1 -1
- package/dist/components/SearchInput/KeyGroup.js +3 -19
- package/dist/components/SearchInput/index.cjs +2 -38
- package/dist/components/SearchInput/index.js +3 -37
- package/dist/components/SearchInput/styles.css.cjs +10 -0
- package/dist/components/SearchInput/styles.css.d.ts +3 -0
- package/dist/components/SearchInput/styles.css.js +10 -0
- package/dist/components/SelectInput/components/Dropdown.cjs +341 -0
- package/dist/components/SelectInput/{Dropdown.d.ts → components/Dropdown.d.ts} +1 -1
- package/dist/components/SelectInput/components/Dropdown.js +341 -0
- package/dist/components/SelectInput/components/DropdownOption.cjs +47 -0
- package/dist/components/SelectInput/{DropdownOption.d.ts → components/DropdownOption.d.ts} +1 -1
- package/dist/components/SelectInput/components/DropdownOption.js +47 -0
- package/dist/components/SelectInput/components/SearchBarDropdown.cjs +117 -0
- package/dist/components/SelectInput/{SearchBarDropdown.d.ts → components/SearchBarDropdown.d.ts} +1 -1
- package/dist/components/SelectInput/components/SearchBarDropdown.js +117 -0
- package/dist/components/SelectInput/components/SelectBar.cjs +237 -0
- package/dist/components/SelectInput/{SelectBar.d.ts → components/SelectBar.d.ts} +1 -12
- package/dist/components/SelectInput/components/SelectBar.js +237 -0
- package/dist/components/SelectInput/components/dropdown.css.cjs +34 -0
- package/dist/components/SelectInput/components/dropdown.css.d.ts +35 -0
- package/dist/components/SelectInput/components/dropdown.css.js +34 -0
- package/dist/components/SelectInput/components/selectBar.css.cjs +24 -0
- package/dist/components/SelectInput/components/selectBar.css.d.ts +108 -0
- package/dist/components/SelectInput/components/selectBar.css.js +24 -0
- package/dist/components/SelectInput/index.cjs +8 -33
- package/dist/components/SelectInput/index.d.ts +2 -2
- package/dist/components/SelectInput/index.js +8 -31
- package/dist/components/SelectInput/styles.css.cjs +7 -0
- package/dist/components/SelectInput/styles.css.d.ts +2 -0
- package/dist/components/SelectInput/styles.css.js +7 -0
- package/dist/components/SelectableCard/index.cjs +21 -182
- package/dist/components/SelectableCard/index.js +22 -181
- package/dist/components/SelectableCard/styles.css.cjs +21 -0
- package/dist/components/SelectableCard/styles.css.d.ts +26 -0
- package/dist/components/SelectableCard/styles.css.js +21 -0
- package/dist/components/SelectableCard/variables.css.cjs +8 -0
- package/dist/components/SelectableCard/variables.css.d.ts +3 -0
- package/dist/components/SelectableCard/variables.css.js +8 -0
- package/dist/components/SelectableCardOptionGroup/components/Option.cjs +11 -11
- package/dist/components/SelectableCardOptionGroup/components/Option.js +9 -9
- package/dist/components/Separator/index.cjs +26 -39
- package/dist/components/Separator/index.d.ts +2 -5
- package/dist/components/Separator/index.js +26 -37
- package/dist/components/Separator/styles.css.cjs +10 -0
- package/dist/components/Separator/styles.css.d.ts +125 -0
- package/dist/components/Separator/styles.css.js +10 -0
- package/dist/components/Skeleton/Block.cjs +3 -27
- package/dist/components/Skeleton/Block.js +3 -25
- package/dist/components/Skeleton/Blocks.cjs +6 -27
- package/dist/components/Skeleton/Blocks.js +6 -25
- package/dist/components/Skeleton/BoxWithIcon.cjs +6 -25
- package/dist/components/Skeleton/BoxWithIcon.js +6 -23
- package/dist/components/Skeleton/Donut.cjs +4 -45
- package/dist/components/Skeleton/Donut.js +4 -43
- package/dist/components/Skeleton/IconSkeleton.cjs +3 -21
- package/dist/components/Skeleton/IconSkeleton.d.ts +1 -4
- package/dist/components/Skeleton/IconSkeleton.js +3 -19
- package/dist/components/Skeleton/Line.cjs +6 -15
- package/dist/components/Skeleton/Line.d.ts +1 -4
- package/dist/components/Skeleton/Line.js +6 -13
- package/dist/components/Skeleton/List.cjs +4 -42
- package/dist/components/Skeleton/List.js +4 -40
- package/dist/components/Skeleton/Slider.cjs +6 -35
- package/dist/components/Skeleton/Slider.js +6 -33
- package/dist/components/Skeleton/Square.cjs +3 -11
- package/dist/components/Skeleton/Square.d.ts +1 -4
- package/dist/components/Skeleton/Square.js +3 -9
- package/dist/components/Skeleton/index.cjs +5 -47
- package/dist/components/Skeleton/index.d.ts +5 -9
- package/dist/components/Skeleton/index.js +5 -45
- package/dist/components/Skeleton/styles.css.cjs +7 -0
- package/dist/components/Skeleton/styles.css.d.ts +2 -0
- package/dist/components/Skeleton/styles.css.js +7 -0
- package/dist/components/Skeleton/stylesVariants.css.cjs +47 -0
- package/dist/components/Skeleton/stylesVariants.css.d.ts +22 -0
- package/dist/components/Skeleton/stylesVariants.css.js +47 -0
- package/dist/components/Slider/components/DoubleSlider.cjs +20 -20
- package/dist/components/Slider/components/DoubleSlider.js +6 -6
- package/dist/components/Slider/components/SingleSlider.cjs +5 -5
- package/dist/components/Slider/components/SingleSlider.js +4 -4
- package/dist/components/Slider/styles.d.ts +30 -13
- package/dist/components/Snippet/index.cjs +22 -155
- package/dist/components/Snippet/index.js +18 -149
- package/dist/components/Snippet/styles.css.cjs +26 -0
- package/dist/components/Snippet/styles.css.d.ts +48 -0
- package/dist/components/Snippet/styles.css.js +26 -0
- package/dist/components/Stack/index.cjs +69 -44
- package/dist/components/Stack/index.d.ts +17 -19
- package/dist/components/Stack/index.js +69 -42
- package/dist/components/Stack/styles.css.cjs +19 -0
- package/dist/components/Stack/styles.css.d.ts +470 -0
- package/dist/components/Stack/styles.css.js +19 -0
- package/dist/components/Stack/types.d.ts +8 -0
- package/dist/components/Stack/variables.css.cjs +11 -0
- package/dist/components/Stack/variables.css.d.ts +4 -0
- package/dist/components/Stack/variables.css.js +11 -0
- package/dist/components/Status/constant.d.ts +1 -0
- package/dist/components/Status/index.cjs +10 -66
- package/dist/components/Status/index.d.ts +2 -20
- package/dist/components/Status/index.js +10 -64
- package/dist/components/Status/styles.css.cjs +11 -0
- package/dist/components/Status/styles.css.d.ts +23 -0
- package/dist/components/Status/styles.css.js +11 -0
- package/dist/components/StepList/index.cjs +10 -42
- package/dist/components/StepList/index.d.ts +2 -1
- package/dist/components/StepList/index.js +10 -40
- package/dist/components/StepList/styles.css.cjs +10 -0
- package/dist/components/StepList/styles.css.d.ts +23 -0
- package/dist/components/StepList/styles.css.js +10 -0
- package/dist/components/Stepper/Step.cjs +43 -113
- package/dist/components/Stepper/Step.js +41 -109
- package/dist/components/Stepper/index.cjs +10 -65
- package/dist/components/Stepper/index.js +10 -63
- package/dist/components/Stepper/styles.css.cjs +20 -0
- package/dist/components/Stepper/styles.css.d.ts +122 -0
- package/dist/components/Stepper/styles.css.js +20 -0
- package/dist/components/SwitchButton/FocusOverlay.cjs +2 -18
- package/dist/components/SwitchButton/FocusOverlay.js +2 -16
- package/dist/components/SwitchButton/Option.cjs +2 -45
- package/dist/components/SwitchButton/Option.js +2 -43
- package/dist/components/SwitchButton/index.cjs +2 -27
- package/dist/components/SwitchButton/index.js +2 -25
- package/dist/components/SwitchButton/styles.css.cjs +9 -0
- package/dist/components/SwitchButton/styles.css.d.ts +7 -0
- package/dist/components/SwitchButton/styles.css.js +9 -0
- package/dist/components/Table/HeaderRow.cjs +2 -2
- package/dist/components/Table/HeaderRow.js +1 -1
- package/dist/components/Table/Row.cjs +6 -6
- package/dist/components/Table/Row.js +6 -6
- package/dist/components/Table/index.cjs +4 -4
- package/dist/components/Table/index.d.ts +1 -1
- package/dist/components/Table/index.js +3 -3
- package/dist/components/Tabs/TabMenuItem.d.ts +1 -1
- package/dist/components/Tabs/index.d.ts +2 -2
- package/dist/components/Tag/index.cjs +17 -104
- package/dist/components/Tag/index.d.ts +5 -4
- package/dist/components/Tag/index.js +13 -99
- package/dist/components/Tag/styles.css.cjs +10 -0
- package/dist/components/Tag/styles.css.d.ts +34 -0
- package/dist/components/Tag/styles.css.js +10 -0
- package/dist/components/TagInput/index.cjs +11 -88
- package/dist/components/TagInput/index.d.ts +1 -5
- package/dist/components/TagInput/index.js +11 -86
- package/dist/components/TagInput/styles.css.cjs +12 -0
- package/dist/components/TagInput/styles.css.d.ts +21 -0
- package/dist/components/TagInput/styles.css.js +12 -0
- package/dist/components/TagList/constant.cjs +5 -0
- package/dist/components/TagList/constant.d.ts +1 -0
- package/dist/components/TagList/constant.js +5 -0
- package/dist/components/TagList/index.cjs +21 -66
- package/dist/components/TagList/index.js +19 -62
- package/dist/components/TagList/styles.css.cjs +14 -0
- package/dist/components/TagList/styles.css.d.ts +11 -0
- package/dist/components/TagList/styles.css.js +14 -0
- package/dist/components/Text/constant.d.ts +6 -0
- package/dist/components/Text/index.cjs +22 -60
- package/dist/components/Text/index.d.ts +3 -7
- package/dist/components/Text/index.js +22 -58
- package/dist/components/Text/style.css.cjs +6 -0
- package/dist/components/Text/style.css.d.ts +52 -0
- package/dist/components/Text/style.css.js +6 -0
- package/dist/components/Text/variables.css.cjs +7 -0
- package/dist/components/Text/variables.css.d.ts +2 -0
- package/dist/components/Text/variables.css.js +7 -0
- package/dist/components/TextArea/index.cjs +34 -99
- package/dist/components/TextArea/index.js +34 -97
- package/dist/components/TextArea/styles.css.cjs +12 -0
- package/dist/components/TextArea/styles.css.d.ts +15 -0
- package/dist/components/TextArea/styles.css.js +12 -0
- package/dist/components/TextInput/constants.d.ts +5 -0
- package/dist/components/TextInput/index.cjs +8 -113
- package/dist/components/TextInput/index.d.ts +3 -55
- package/dist/components/TextInput/index.js +8 -111
- package/dist/components/TextInput/styles.css.cjs +17 -0
- package/dist/components/TextInput/styles.css.d.ts +8 -0
- package/dist/components/TextInput/styles.css.js +17 -0
- package/dist/components/TimeInput/constants.cjs +0 -6
- package/dist/components/TimeInput/constants.js +0 -6
- package/dist/components/TimeInput/index.cjs +16 -96
- package/dist/components/TimeInput/index.d.ts +0 -7
- package/dist/components/TimeInput/index.js +13 -91
- package/dist/components/TimeInput/styles.css.cjs +10 -0
- package/dist/components/TimeInput/styles.css.d.ts +82 -0
- package/dist/components/TimeInput/styles.css.js +10 -0
- package/dist/components/Toaster/index.cjs +3 -23
- package/dist/components/Toaster/index.js +3 -21
- package/dist/components/Toaster/styles.css.cjs +7 -0
- package/dist/components/Toaster/styles.css.d.ts +2 -0
- package/dist/components/Toaster/styles.css.js +7 -0
- package/dist/components/Toggle/index.cjs +10 -108
- package/dist/components/Toggle/index.d.ts +0 -18
- package/dist/components/Toggle/index.js +13 -109
- package/dist/components/Toggle/styles.css.cjs +10 -0
- package/dist/components/Toggle/styles.css.d.ts +108 -0
- package/dist/components/Toggle/styles.css.js +10 -0
- package/dist/components/ToggleGroup/index.cjs +2 -20
- package/dist/components/ToggleGroup/index.js +2 -18
- package/dist/components/ToggleGroup/styles.css.cjs +5 -0
- package/dist/components/ToggleGroup/styles.css.d.ts +1 -0
- package/dist/components/ToggleGroup/styles.css.js +5 -0
- package/dist/components/Tooltip/index.cjs +2 -20
- package/dist/components/Tooltip/index.d.ts +1 -1
- package/dist/components/Tooltip/index.js +2 -18
- package/dist/components/Tooltip/styles.css.cjs +5 -0
- package/dist/components/Tooltip/styles.css.d.ts +1 -0
- package/dist/components/Tooltip/styles.css.js +5 -0
- package/dist/components/UnitInput/index.cjs +30 -123
- package/dist/components/UnitInput/index.d.ts +2 -1
- package/dist/components/UnitInput/index.js +26 -117
- package/dist/components/UnitInput/styles.css.cjs +17 -0
- package/dist/components/UnitInput/styles.css.d.ts +7 -0
- package/dist/components/UnitInput/styles.css.js +17 -0
- package/dist/components/VerificationCode/constants.d.ts +12 -0
- package/dist/components/VerificationCode/index.cjs +5 -88
- package/dist/components/VerificationCode/index.d.ts +1 -1
- package/dist/components/VerificationCode/index.js +5 -86
- package/dist/components/VerificationCode/styles.css.cjs +9 -0
- package/dist/components/VerificationCode/styles.css.d.ts +3 -0
- package/dist/components/VerificationCode/styles.css.js +9 -0
- package/dist/components/index.d.ts +1 -0
- package/dist/index.cjs +110 -103
- package/dist/index.js +3 -2
- package/dist/theme/ThemeProvider.cjs +2 -29
- package/dist/theme/ThemeProvider.js +4 -31
- package/dist/theme/index.cjs +8 -4
- package/dist/theme/index.d.ts +2 -3
- package/dist/theme/index.js +4 -6
- package/dist/ui.css +1 -1
- package/dist/utils/animationVanillaExtract.css.d.ts +3 -0
- package/dist/utils/index.d.ts +1 -0
- package/package.json +9 -6
- package/dist/components/Breadcrumbs/constants.js +0 -4
- package/dist/components/Modal/constants.cjs +0 -53
- package/dist/components/Modal/constants.js +0 -53
- package/dist/components/Popup/animations.cjs +0 -25
- package/dist/components/Popup/animations.d.ts +0 -21
- package/dist/components/Popup/animations.js +0 -25
- package/dist/components/SearchInput/Key.cjs +0 -55
- package/dist/components/SearchInput/Key.d.ts +0 -21
- package/dist/components/SearchInput/Key.js +0 -53
- package/dist/components/SelectInput/Dropdown.cjs +0 -488
- package/dist/components/SelectInput/Dropdown.js +0 -486
- package/dist/components/SelectInput/DropdownOption.cjs +0 -91
- package/dist/components/SelectInput/DropdownOption.js +0 -89
- package/dist/components/SelectInput/SearchBarDropdown.cjs +0 -133
- package/dist/components/SelectInput/SearchBarDropdown.js +0 -131
- package/dist/components/SelectInput/SelectBar.cjs +0 -373
- package/dist/components/SelectInput/SelectBar.js +0 -371
- package/dist/themes/dist/vanilla/themes.css.js.vanilla.css.cjs +0 -1
- package/dist/themes/dist/vanilla/themes.css.js.vanilla.css.js +0 -1
- package/dist/themes/dist/vanilla/themes.css.ts.vanilla.css.js.vanilla.css.cjs +0 -1
- package/dist/themes/dist/vanilla/themes.css.ts.vanilla.css.js.vanilla.css.js +0 -1
- package/dist/utils/capitalize.cjs +0 -3
- package/dist/utils/capitalize.js +0 -4
- package/dist/utils/searchAlgorithm.cjs +0 -40
- package/dist/utils/searchAlgorithm.d.ts +0 -12
- package/dist/utils/searchAlgorithm.js +0 -40
|
@@ -2,71 +2,17 @@
|
|
|
2
2
|
"use strict";
|
|
3
3
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
4
4
|
const jsxRuntime = require("@emotion/react/jsx-runtime");
|
|
5
|
-
const
|
|
5
|
+
const dynamic = require("@vanilla-extract/dynamic");
|
|
6
6
|
const react = require("react");
|
|
7
7
|
const recursivelyGetChildrenString = require("../../helpers/recursivelyGetChildrenString.cjs");
|
|
8
8
|
const useIsOverflowing = require("../../hooks/useIsOverflowing.cjs");
|
|
9
|
-
const capitalize = require("../../utils/capitalize.cjs");
|
|
10
9
|
const index = require("../Tooltip/index.cjs");
|
|
11
|
-
const
|
|
12
|
-
const
|
|
13
|
-
const PROMINENCES = {
|
|
14
|
-
default: "",
|
|
15
|
-
strong: "strong",
|
|
16
|
-
stronger: "stronger",
|
|
17
|
-
weak: "weak"
|
|
18
|
-
};
|
|
19
|
-
const generateStyles = ({
|
|
20
|
-
placement,
|
|
21
|
-
prominence,
|
|
22
|
-
sentiment,
|
|
23
|
-
variant,
|
|
24
|
-
theme,
|
|
25
|
-
oneLine,
|
|
26
|
-
disabled,
|
|
27
|
-
italic,
|
|
28
|
-
underline,
|
|
29
|
-
whiteSpace,
|
|
30
|
-
strikeThrough
|
|
31
|
-
}) => {
|
|
32
|
-
const definedProminence = sentiment !== "neutral" && prominence === "stronger" ? capitalize(PROMINENCES.default) : capitalize(PROMINENCES[prominence]);
|
|
33
|
-
const isSentimentMonochrome = sentiment === "black" || sentiment === "white";
|
|
34
|
-
sentiment && !isSentimentMonochrome ? theme.colors[sentiment] : void 0;
|
|
35
|
-
const text = `text${definedProminence}${disabled ? "Disabled" : ""}`;
|
|
36
|
-
const textColor = sentiment && !isSentimentMonochrome ? theme.colors[sentiment][text] : void 0;
|
|
37
|
-
return `
|
|
38
|
-
${sentiment ? `color: ${!isSentimentMonochrome ? textColor : theme.colors.other.monochrome[sentiment].text};` : ""}
|
|
39
|
-
|
|
40
|
-
font-size: ${theme.typography[variant].fontSize};
|
|
41
|
-
font-family: ${theme.typography[variant].fontFamily};
|
|
42
|
-
font-weight: ${theme.typography[variant].weight};
|
|
43
|
-
letter-spacing: ${theme.typography[variant].letterSpacing};
|
|
44
|
-
line-height: ${theme.typography[variant].lineHeight};
|
|
45
|
-
text-transform: ${theme.typography[variant].textCase};
|
|
46
|
-
text-decoration: ${theme.typography[variant].textDecoration};
|
|
47
|
-
${placement ? ` text-align: ${placement};` : ""}
|
|
48
|
-
${whiteSpace ? `white-space: ${whiteSpace};` : ""}
|
|
49
|
-
|
|
50
|
-
${oneLine ? `white-space: nowrap;
|
|
51
|
-
text-overflow: ellipsis;
|
|
52
|
-
overflow: hidden;` : ""}
|
|
53
|
-
${italic ? `font-style: italic;` : ""}
|
|
54
|
-
${underline ? `text-decoration: underline;` : ""}
|
|
55
|
-
${strikeThrough ? `text-decoration: line-through;` : ""}
|
|
56
|
-
`;
|
|
57
|
-
};
|
|
58
|
-
const StyledText = /* @__PURE__ */ _styled__default.default("div", process.env.NODE_ENV === "production" ? {
|
|
59
|
-
shouldForwardProp: (prop) => !["as", "placement", "variant", "sentiment", "prominence", "oneLine", "disabled", "italic", "underline", "strikeThrough", "whiteSpace"].includes(prop),
|
|
60
|
-
target: "e13y3mga0"
|
|
61
|
-
} : {
|
|
62
|
-
shouldForwardProp: (prop) => !["as", "placement", "variant", "sentiment", "prominence", "oneLine", "disabled", "italic", "underline", "strikeThrough", "whiteSpace"].includes(prop),
|
|
63
|
-
target: "e13y3mga0",
|
|
64
|
-
label: "StyledText"
|
|
65
|
-
})(generate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YW50fVxuICAgICAgICB3aGl0ZVNwYWNlPXt3aGl0ZVNwYWNlfVxuICAgICAgPlxuICAgICAgICB7Y2hpbGRyZW59XG4gICAgICA8L1N0eWxlZFRleHQ+XG4gICAgPC9Ub29sdGlwPlxuICApXG59XG4iXX0= */");
|
|
10
|
+
const style_css = require("./style.css.cjs");
|
|
11
|
+
const variables_css = require("./variables.css.cjs");
|
|
66
12
|
const Text = ({
|
|
67
13
|
variant,
|
|
68
14
|
children,
|
|
69
|
-
as,
|
|
15
|
+
as: Component = "div",
|
|
70
16
|
sentiment,
|
|
71
17
|
oneLine = false,
|
|
72
18
|
placement,
|
|
@@ -81,11 +27,27 @@ const Text = ({
|
|
|
81
27
|
whiteSpace,
|
|
82
28
|
htmlFor,
|
|
83
29
|
"data-testid": dataTestId,
|
|
84
|
-
"aria-hidden": ariaHidden
|
|
30
|
+
"aria-hidden": ariaHidden,
|
|
31
|
+
style
|
|
85
32
|
}) => {
|
|
86
33
|
const elementRef = react.useRef(null);
|
|
87
34
|
const isOverflowing = useIsOverflowing.useIsOverflowing(elementRef);
|
|
88
35
|
const finalStringChildren = recursivelyGetChildrenString(children);
|
|
89
|
-
return /* @__PURE__ */ jsxRuntime.jsx(index.Tooltip, { text: oneLine && isOverflowing ? finalStringChildren : "", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
36
|
+
return /* @__PURE__ */ jsxRuntime.jsx(index.Tooltip, { text: oneLine && isOverflowing ? finalStringChildren : "", children: /* @__PURE__ */ jsxRuntime.jsx(Component, { "aria-hidden": ariaHidden, className: `${className ? `${className} ` : ""}${style_css.text({
|
|
37
|
+
disabled,
|
|
38
|
+
italic,
|
|
39
|
+
oneLine,
|
|
40
|
+
prominence,
|
|
41
|
+
sentiment,
|
|
42
|
+
strikeThrough,
|
|
43
|
+
underline,
|
|
44
|
+
variant
|
|
45
|
+
})}`, "data-testid": dataTestId, dir, htmlFor, id, ref: elementRef, style: {
|
|
46
|
+
...dynamic.assignInlineVars({
|
|
47
|
+
[variables_css.placementText]: placement,
|
|
48
|
+
[variables_css.whiteSpaceText]: whiteSpace
|
|
49
|
+
}),
|
|
50
|
+
...style
|
|
51
|
+
}, children }) });
|
|
90
52
|
};
|
|
91
53
|
exports.Text = Text;
|
|
@@ -1,12 +1,7 @@
|
|
|
1
1
|
import type { CSSProperties, ElementType, ReactNode } from 'react';
|
|
2
2
|
import type { ExtendedColor } from '../../theme';
|
|
3
3
|
import { typography } from '../../theme';
|
|
4
|
-
|
|
5
|
-
default: string;
|
|
6
|
-
strong: string;
|
|
7
|
-
stronger: string;
|
|
8
|
-
weak: string;
|
|
9
|
-
};
|
|
4
|
+
import type { PROMINENCES } from './constant';
|
|
10
5
|
type ProminenceProps = keyof typeof PROMINENCES;
|
|
11
6
|
type PlacementProps = CSSProperties['textAlign'];
|
|
12
7
|
type WhiteSpaceProps = CSSProperties['whiteSpace'];
|
|
@@ -31,9 +26,10 @@ type TextProps = {
|
|
|
31
26
|
'aria-hidden'?: boolean;
|
|
32
27
|
strikeThrough?: boolean;
|
|
33
28
|
whiteSpace?: WhiteSpaceProps;
|
|
29
|
+
style?: CSSProperties;
|
|
34
30
|
};
|
|
35
31
|
/**
|
|
36
32
|
* Text component is used to display text with different variants and sentiments.
|
|
37
33
|
*/
|
|
38
|
-
export declare const Text: ({ variant, children, as, sentiment, oneLine, placement, prominence, className, disabled, italic, underline, strikeThrough, id, dir, whiteSpace, htmlFor, "data-testid": dataTestId, "aria-hidden": ariaHidden, }: TextProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
34
|
+
export declare const Text: ({ variant, children, as: Component, sentiment, oneLine, placement, prominence, className, disabled, italic, underline, strikeThrough, id, dir, whiteSpace, htmlFor, "data-testid": dataTestId, "aria-hidden": ariaHidden, style, }: TextProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
39
35
|
export {};
|
|
@@ -1,68 +1,16 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx } from "@emotion/react/jsx-runtime";
|
|
3
|
-
import
|
|
3
|
+
import { assignInlineVars } from "@vanilla-extract/dynamic";
|
|
4
4
|
import { useRef } from "react";
|
|
5
5
|
import recursivelyGetChildrenString from "../../helpers/recursivelyGetChildrenString.js";
|
|
6
6
|
import { useIsOverflowing } from "../../hooks/useIsOverflowing.js";
|
|
7
|
-
import capitalize from "../../utils/capitalize.js";
|
|
8
7
|
import { Tooltip } from "../Tooltip/index.js";
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
strong: "strong",
|
|
12
|
-
stronger: "stronger",
|
|
13
|
-
weak: "weak"
|
|
14
|
-
};
|
|
15
|
-
const generateStyles = ({
|
|
16
|
-
placement,
|
|
17
|
-
prominence,
|
|
18
|
-
sentiment,
|
|
19
|
-
variant,
|
|
20
|
-
theme,
|
|
21
|
-
oneLine,
|
|
22
|
-
disabled,
|
|
23
|
-
italic,
|
|
24
|
-
underline,
|
|
25
|
-
whiteSpace,
|
|
26
|
-
strikeThrough
|
|
27
|
-
}) => {
|
|
28
|
-
const definedProminence = sentiment !== "neutral" && prominence === "stronger" ? capitalize(PROMINENCES.default) : capitalize(PROMINENCES[prominence]);
|
|
29
|
-
const isSentimentMonochrome = sentiment === "black" || sentiment === "white";
|
|
30
|
-
sentiment && !isSentimentMonochrome ? theme.colors[sentiment] : void 0;
|
|
31
|
-
const text = `text${definedProminence}${disabled ? "Disabled" : ""}`;
|
|
32
|
-
const textColor = sentiment && !isSentimentMonochrome ? theme.colors[sentiment][text] : void 0;
|
|
33
|
-
return `
|
|
34
|
-
${sentiment ? `color: ${!isSentimentMonochrome ? textColor : theme.colors.other.monochrome[sentiment].text};` : ""}
|
|
35
|
-
|
|
36
|
-
font-size: ${theme.typography[variant].fontSize};
|
|
37
|
-
font-family: ${theme.typography[variant].fontFamily};
|
|
38
|
-
font-weight: ${theme.typography[variant].weight};
|
|
39
|
-
letter-spacing: ${theme.typography[variant].letterSpacing};
|
|
40
|
-
line-height: ${theme.typography[variant].lineHeight};
|
|
41
|
-
text-transform: ${theme.typography[variant].textCase};
|
|
42
|
-
text-decoration: ${theme.typography[variant].textDecoration};
|
|
43
|
-
${placement ? ` text-align: ${placement};` : ""}
|
|
44
|
-
${whiteSpace ? `white-space: ${whiteSpace};` : ""}
|
|
45
|
-
|
|
46
|
-
${oneLine ? `white-space: nowrap;
|
|
47
|
-
text-overflow: ellipsis;
|
|
48
|
-
overflow: hidden;` : ""}
|
|
49
|
-
${italic ? `font-style: italic;` : ""}
|
|
50
|
-
${underline ? `text-decoration: underline;` : ""}
|
|
51
|
-
${strikeThrough ? `text-decoration: line-through;` : ""}
|
|
52
|
-
`;
|
|
53
|
-
};
|
|
54
|
-
const StyledText = /* @__PURE__ */ _styled("div", process.env.NODE_ENV === "production" ? {
|
|
55
|
-
shouldForwardProp: (prop) => !["as", "placement", "variant", "sentiment", "prominence", "oneLine", "disabled", "italic", "underline", "strikeThrough", "whiteSpace"].includes(prop),
|
|
56
|
-
target: "e13y3mga0"
|
|
57
|
-
} : {
|
|
58
|
-
shouldForwardProp: (prop) => !["as", "placement", "variant", "sentiment", "prominence", "oneLine", "disabled", "italic", "underline", "strikeThrough", "whiteSpace"].includes(prop),
|
|
59
|
-
target: "e13y3mga0",
|
|
60
|
-
label: "StyledText"
|
|
61
|
-
})(generateStyles, process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi9ob21lL3J1bm5lci93b3JrL3VsdHJhdmlvbGV0L3VsdHJhdmlvbGV0L3BhY2thZ2VzL3VpL3NyYy9jb21wb25lbnRzL1RleHQvaW5kZXgudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQWlJbUIiLCJmaWxlIjoiL2hvbWUvcnVubmVyL3dvcmsvdWx0cmF2aW9sZXQvdWx0cmF2aW9sZXQvcGFja2FnZXMvdWkvc3JjL2NvbXBvbmVudHMvVGV4dC9pbmRleC50c3giLCJzb3VyY2VzQ29udG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luZSAmJiBpc092ZXJmbG93aW5nID8gZmluYWxTdHJpbmdDaGlsZHJlbiA6ICcnfT5cbiAgICAgIDxTdHlsZWRUZXh0XG4gICAgICAgIGFyaWEtaGlkZGVuPXthcmlhSGlkZGVufVxuICAgICAgICBhcz17YXN9XG4gICAgICAgIGNsYXNzTmFtZT17Y2xhc3NOYW1lfVxuICAgICAgICBkYXRhLXRlc3RpZD17ZGF0YVRlc3RJZH1cbiAgICAgICAgZGlyPXtkaXJ9XG4gICAgICAgIGRpc2FibGVkPXtkaXNhYmxlZH1cbiAgICAgICAgaHRtbEZvcj17aHRtbEZvcn1cbiAgICAgICAgaWQ9e2lkfVxuICAgICAgICBpdGFsaWM9e2l0YWxpY31cbiAgICAgICAgb25lTGluZT17b25lTGluZX1cbiAgICAgICAgcGxhY2VtZW50PXtwbGFjZW1lbnR9XG4gICAgICAgIHByb21pbmVuY2U9e3Byb21pbmVuY2V9XG4gICAgICAgIHJlZj17ZWxlbWVudFJlZn1cbiAgICAgICAgc2VudGltZW50PXtzZW50aW1lbnR9XG4gICAgICAgIHN0cmlrZVRocm91Z2g9e3N0cmlrZVRocm91Z2h9XG4gICAgICAgIHVuZGVybGluZT17dW5kZXJsaW5lfVxuICAgICAgICB2YXJpYW50PXt2YXJpYW50fVxuICAgICAgICB3aGl0ZVNwYWNlPXt3aGl0ZVNwYWNlfVxuICAgICAgPlxuICAgICAgICB7Y2hpbGRyZW59XG4gICAgICA8L1N0eWxlZFRleHQ+XG4gICAgPC9Ub29sdGlwPlxuICApXG59XG4iXX0= */");
|
|
8
|
+
import { text } from "./style.css.js";
|
|
9
|
+
import { whiteSpaceText, placementText } from "./variables.css.js";
|
|
62
10
|
const Text = ({
|
|
63
11
|
variant,
|
|
64
12
|
children,
|
|
65
|
-
as,
|
|
13
|
+
as: Component = "div",
|
|
66
14
|
sentiment,
|
|
67
15
|
oneLine = false,
|
|
68
16
|
placement,
|
|
@@ -77,12 +25,28 @@ const Text = ({
|
|
|
77
25
|
whiteSpace,
|
|
78
26
|
htmlFor,
|
|
79
27
|
"data-testid": dataTestId,
|
|
80
|
-
"aria-hidden": ariaHidden
|
|
28
|
+
"aria-hidden": ariaHidden,
|
|
29
|
+
style
|
|
81
30
|
}) => {
|
|
82
31
|
const elementRef = useRef(null);
|
|
83
32
|
const isOverflowing = useIsOverflowing(elementRef);
|
|
84
33
|
const finalStringChildren = recursivelyGetChildrenString(children);
|
|
85
|
-
return /* @__PURE__ */ jsx(Tooltip, { text: oneLine && isOverflowing ? finalStringChildren : "", children: /* @__PURE__ */ jsx(
|
|
34
|
+
return /* @__PURE__ */ jsx(Tooltip, { text: oneLine && isOverflowing ? finalStringChildren : "", children: /* @__PURE__ */ jsx(Component, { "aria-hidden": ariaHidden, className: `${className ? `${className} ` : ""}${text({
|
|
35
|
+
disabled,
|
|
36
|
+
italic,
|
|
37
|
+
oneLine,
|
|
38
|
+
prominence,
|
|
39
|
+
sentiment,
|
|
40
|
+
strikeThrough,
|
|
41
|
+
underline,
|
|
42
|
+
variant
|
|
43
|
+
})}`, "data-testid": dataTestId, dir, htmlFor, id, ref: elementRef, style: {
|
|
44
|
+
...assignInlineVars({
|
|
45
|
+
[placementText]: placement,
|
|
46
|
+
[whiteSpaceText]: whiteSpace
|
|
47
|
+
}),
|
|
48
|
+
...style
|
|
49
|
+
}, children }) });
|
|
86
50
|
};
|
|
87
51
|
export {
|
|
88
52
|
Text
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
;/* empty css */
|
|
4
|
+
const createRuntimeFn = require("@vanilla-extract/recipes/createRuntimeFn");
|
|
5
|
+
var text = createRuntimeFn.createRuntimeFn({ defaultClassName: "uv_m4c9ow0", variantClassNames: { strikeThrough: { true: "uv_m4c9ow1", false: "uv_m4c9ow2" }, italic: { true: "uv_m4c9ow3", false: "uv_m4c9ow4" }, underline: { true: "uv_m4c9ow5", false: "uv_m4c9ow6" }, oneLine: { true: "uv_m4c9ow7", false: "uv_m4c9ow8" }, sentiment: { primary: "uv_m4c9ow9", secondary: "uv_m4c9owa", neutral: "uv_m4c9owb", success: "uv_m4c9owc", danger: "uv_m4c9owd", warning: "uv_m4c9owe", info: "uv_m4c9owf", black: "uv_m4c9owg", white: "uv_m4c9owh" }, prominence: { "default": "uv_m4c9owi", strong: "uv_m4c9owj", stronger: "uv_m4c9owk", weak: "uv_m4c9owl" }, variant: { body: "uv_m4c9owm", bodySmall: "uv_m4c9own", bodySmallStrong: "uv_m4c9owo", bodySmallStronger: "uv_m4c9owp", bodyStrong: "uv_m4c9owq", bodyStronger: "uv_m4c9owr", caption: "uv_m4c9ows", captionSmall: "uv_m4c9owt", captionSmallStrong: "uv_m4c9owu", captionSmallStronger: "uv_m4c9owv", captionStrong: "uv_m4c9oww", captionStronger: "uv_m4c9owx", code: "uv_m4c9owy", codeStrong: "uv_m4c9owz", codeStronger: "uv_m4c9ow10", heading: "uv_m4c9ow11", headingLarge: "uv_m4c9ow12", headingLargeStrong: "uv_m4c9ow13", headingLargeStronger: "uv_m4c9ow14", headingSmall: "uv_m4c9ow15", headingSmallStrong: "uv_m4c9ow16", headingSmallStronger: "uv_m4c9ow17", headingStrong: "uv_m4c9ow18", headingStronger: "uv_m4c9ow19" }, disabled: { true: "uv_m4c9ow1a", false: "uv_m4c9ow1b" } }, defaultVariants: { strikeThrough: false, italic: false, underline: false, oneLine: false, sentiment: void 0, prominence: "default", variant: "body", disabled: false }, compoundVariants: [[{ sentiment: "primary", prominence: "default", disabled: false }, "uv_m4c9ow1c"], [{ sentiment: "primary", prominence: "strong", disabled: false }, "uv_m4c9ow1d"], [{ sentiment: "primary", prominence: "stronger", disabled: false }, "uv_m4c9ow1e"], [{ sentiment: "primary", prominence: "weak", disabled: false }, "uv_m4c9ow1f"], [{ sentiment: "secondary", prominence: "default", disabled: false }, "uv_m4c9ow1g"], [{ sentiment: "secondary", prominence: "strong", disabled: false }, "uv_m4c9ow1h"], [{ sentiment: "secondary", prominence: "stronger", disabled: false }, "uv_m4c9ow1i"], [{ sentiment: "secondary", prominence: "weak", disabled: false }, "uv_m4c9ow1j"], [{ sentiment: "danger", prominence: "default", disabled: false }, "uv_m4c9ow1k"], [{ sentiment: "danger", prominence: "strong", disabled: false }, "uv_m4c9ow1l"], [{ sentiment: "danger", prominence: "stronger", disabled: false }, "uv_m4c9ow1m"], [{ sentiment: "danger", prominence: "weak", disabled: false }, "uv_m4c9ow1n"], [{ sentiment: "info", prominence: "default", disabled: false }, "uv_m4c9ow1o"], [{ sentiment: "info", prominence: "strong", disabled: false }, "uv_m4c9ow1p"], [{ sentiment: "info", prominence: "stronger", disabled: false }, "uv_m4c9ow1q"], [{ sentiment: "info", prominence: "weak", disabled: false }, "uv_m4c9ow1r"], [{ sentiment: "success", prominence: "default", disabled: false }, "uv_m4c9ow1s"], [{ sentiment: "success", prominence: "strong", disabled: false }, "uv_m4c9ow1t"], [{ sentiment: "success", prominence: "stronger", disabled: false }, "uv_m4c9ow1u"], [{ sentiment: "success", prominence: "weak", disabled: false }, "uv_m4c9ow1v"], [{ sentiment: "warning", prominence: "default", disabled: false }, "uv_m4c9ow1w"], [{ sentiment: "warning", prominence: "strong", disabled: false }, "uv_m4c9ow1x"], [{ sentiment: "warning", prominence: "stronger", disabled: false }, "uv_m4c9ow1y"], [{ sentiment: "warning", prominence: "weak", disabled: false }, "uv_m4c9ow1z"], [{ sentiment: "neutral", prominence: "default", disabled: false }, "uv_m4c9ow20"], [{ sentiment: "neutral", prominence: "strong", disabled: false }, "uv_m4c9ow21"], [{ sentiment: "neutral", prominence: "stronger", disabled: false }, "uv_m4c9ow22"], [{ sentiment: "neutral", prominence: "weak", disabled: false }, "uv_m4c9ow23"], [{ sentiment: "black", prominence: "default", disabled: false }, "uv_m4c9ow24"], [{ sentiment: "black", prominence: "strong", disabled: false }, "uv_m4c9ow25"], [{ sentiment: "black", prominence: "stronger", disabled: false }, "uv_m4c9ow26"], [{ sentiment: "black", prominence: "weak", disabled: false }, "uv_m4c9ow27"], [{ sentiment: "white", prominence: "default", disabled: false }, "uv_m4c9ow28"], [{ sentiment: "white", prominence: "strong", disabled: false }, "uv_m4c9ow29"], [{ sentiment: "white", prominence: "stronger", disabled: false }, "uv_m4c9ow2a"], [{ sentiment: "white", prominence: "weak", disabled: false }, "uv_m4c9ow2b"], [{ sentiment: "primary", prominence: "default", disabled: true }, "uv_m4c9ow2c"], [{ sentiment: "primary", prominence: "strong", disabled: true }, "uv_m4c9ow2d"], [{ sentiment: "primary", prominence: "stronger", disabled: true }, "uv_m4c9ow2e"], [{ sentiment: "primary", prominence: "weak", disabled: true }, "uv_m4c9ow2f"], [{ sentiment: "secondary", prominence: "default", disabled: true }, "uv_m4c9ow2g"], [{ sentiment: "secondary", prominence: "strong", disabled: true }, "uv_m4c9ow2h"], [{ sentiment: "secondary", prominence: "stronger", disabled: true }, "uv_m4c9ow2i"], [{ sentiment: "secondary", prominence: "weak", disabled: true }, "uv_m4c9ow2j"], [{ sentiment: "danger", prominence: "default", disabled: true }, "uv_m4c9ow2k"], [{ sentiment: "danger", prominence: "strong", disabled: true }, "uv_m4c9ow2l"], [{ sentiment: "danger", prominence: "stronger", disabled: true }, "uv_m4c9ow2m"], [{ sentiment: "danger", prominence: "weak", disabled: true }, "uv_m4c9ow2n"], [{ sentiment: "info", prominence: "default", disabled: true }, "uv_m4c9ow2o"], [{ sentiment: "info", prominence: "strong", disabled: true }, "uv_m4c9ow2p"], [{ sentiment: "info", prominence: "stronger", disabled: true }, "uv_m4c9ow2q"], [{ sentiment: "info", prominence: "weak", disabled: true }, "uv_m4c9ow2r"], [{ sentiment: "success", prominence: "default", disabled: true }, "uv_m4c9ow2s"], [{ sentiment: "success", prominence: "strong", disabled: true }, "uv_m4c9ow2t"], [{ sentiment: "success", prominence: "stronger", disabled: true }, "uv_m4c9ow2u"], [{ sentiment: "success", prominence: "weak", disabled: true }, "uv_m4c9ow2v"], [{ sentiment: "warning", prominence: "default", disabled: true }, "uv_m4c9ow2w"], [{ sentiment: "warning", prominence: "strong", disabled: true }, "uv_m4c9ow2x"], [{ sentiment: "warning", prominence: "stronger", disabled: true }, "uv_m4c9ow2y"], [{ sentiment: "warning", prominence: "weak", disabled: true }, "uv_m4c9ow2z"], [{ sentiment: "neutral", prominence: "default", disabled: true }, "uv_m4c9ow30"], [{ sentiment: "neutral", prominence: "strong", disabled: true }, "uv_m4c9ow31"], [{ sentiment: "neutral", prominence: "stronger", disabled: true }, "uv_m4c9ow32"], [{ sentiment: "neutral", prominence: "weak", disabled: true }, "uv_m4c9ow33"], [{ sentiment: "black", prominence: "default", disabled: true }, "uv_m4c9ow34"], [{ sentiment: "black", prominence: "strong", disabled: true }, "uv_m4c9ow35"], [{ sentiment: "black", prominence: "stronger", disabled: true }, "uv_m4c9ow36"], [{ sentiment: "black", prominence: "weak", disabled: true }, "uv_m4c9ow37"], [{ sentiment: "white", prominence: "default", disabled: true }, "uv_m4c9ow38"], [{ sentiment: "white", prominence: "strong", disabled: true }, "uv_m4c9ow39"], [{ sentiment: "white", prominence: "stronger", disabled: true }, "uv_m4c9ow3a"], [{ sentiment: "white", prominence: "weak", disabled: true }, "uv_m4c9ow3b"], [{ prominence: "default", disabled: false }, "uv_m4c9ow3c"], [{ prominence: "strong", disabled: false }, "uv_m4c9ow3d"], [{ prominence: "stronger", disabled: false }, "uv_m4c9ow3e"], [{ prominence: "weak", disabled: false }, "uv_m4c9ow3f"]] });
|
|
6
|
+
exports.text = text;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import type { RecipeVariants } from '@vanilla-extract/recipes';
|
|
2
|
+
export declare const text: import("@vanilla-extract/recipes").RuntimeFn<{
|
|
3
|
+
strikeThrough: {
|
|
4
|
+
true: {
|
|
5
|
+
textDecoration: "line-through";
|
|
6
|
+
};
|
|
7
|
+
false: {};
|
|
8
|
+
};
|
|
9
|
+
italic: {
|
|
10
|
+
true: {
|
|
11
|
+
fontStyle: "italic";
|
|
12
|
+
};
|
|
13
|
+
false: {};
|
|
14
|
+
};
|
|
15
|
+
underline: {
|
|
16
|
+
true: {
|
|
17
|
+
textDecoration: "underline";
|
|
18
|
+
};
|
|
19
|
+
false: {};
|
|
20
|
+
};
|
|
21
|
+
oneLine: {
|
|
22
|
+
true: {
|
|
23
|
+
whiteSpace: "nowrap";
|
|
24
|
+
textOverflow: "ellipsis";
|
|
25
|
+
overflow: "hidden";
|
|
26
|
+
};
|
|
27
|
+
false: {};
|
|
28
|
+
};
|
|
29
|
+
sentiment: {
|
|
30
|
+
primary: {};
|
|
31
|
+
secondary: {};
|
|
32
|
+
neutral: {};
|
|
33
|
+
success: {};
|
|
34
|
+
danger: {};
|
|
35
|
+
warning: {};
|
|
36
|
+
info: {};
|
|
37
|
+
black: {};
|
|
38
|
+
white: {};
|
|
39
|
+
};
|
|
40
|
+
prominence: {
|
|
41
|
+
default: {};
|
|
42
|
+
strong: {};
|
|
43
|
+
stronger: {};
|
|
44
|
+
weak: {};
|
|
45
|
+
};
|
|
46
|
+
variant: Record<"body" | "bodySmall" | "bodySmallStrong" | "bodySmallStronger" | "bodyStrong" | "bodyStronger" | "caption" | "captionSmall" | "captionSmallStrong" | "captionSmallStronger" | "captionStrong" | "captionStronger" | "code" | "codeStrong" | "codeStronger" | "heading" | "headingLarge" | "headingLargeStrong" | "headingLargeStronger" | "headingSmall" | "headingSmallStrong" | "headingSmallStronger" | "headingStrong" | "headingStronger", object>;
|
|
47
|
+
disabled: {
|
|
48
|
+
true: {};
|
|
49
|
+
false: {};
|
|
50
|
+
};
|
|
51
|
+
}>;
|
|
52
|
+
export type TextVariants = NonNullable<RecipeVariants<typeof text>>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/* empty css */
|
|
2
|
+
import { createRuntimeFn } from "@vanilla-extract/recipes/createRuntimeFn";
|
|
3
|
+
var text = createRuntimeFn({ defaultClassName: "uv_m4c9ow0", variantClassNames: { strikeThrough: { true: "uv_m4c9ow1", false: "uv_m4c9ow2" }, italic: { true: "uv_m4c9ow3", false: "uv_m4c9ow4" }, underline: { true: "uv_m4c9ow5", false: "uv_m4c9ow6" }, oneLine: { true: "uv_m4c9ow7", false: "uv_m4c9ow8" }, sentiment: { primary: "uv_m4c9ow9", secondary: "uv_m4c9owa", neutral: "uv_m4c9owb", success: "uv_m4c9owc", danger: "uv_m4c9owd", warning: "uv_m4c9owe", info: "uv_m4c9owf", black: "uv_m4c9owg", white: "uv_m4c9owh" }, prominence: { "default": "uv_m4c9owi", strong: "uv_m4c9owj", stronger: "uv_m4c9owk", weak: "uv_m4c9owl" }, variant: { body: "uv_m4c9owm", bodySmall: "uv_m4c9own", bodySmallStrong: "uv_m4c9owo", bodySmallStronger: "uv_m4c9owp", bodyStrong: "uv_m4c9owq", bodyStronger: "uv_m4c9owr", caption: "uv_m4c9ows", captionSmall: "uv_m4c9owt", captionSmallStrong: "uv_m4c9owu", captionSmallStronger: "uv_m4c9owv", captionStrong: "uv_m4c9oww", captionStronger: "uv_m4c9owx", code: "uv_m4c9owy", codeStrong: "uv_m4c9owz", codeStronger: "uv_m4c9ow10", heading: "uv_m4c9ow11", headingLarge: "uv_m4c9ow12", headingLargeStrong: "uv_m4c9ow13", headingLargeStronger: "uv_m4c9ow14", headingSmall: "uv_m4c9ow15", headingSmallStrong: "uv_m4c9ow16", headingSmallStronger: "uv_m4c9ow17", headingStrong: "uv_m4c9ow18", headingStronger: "uv_m4c9ow19" }, disabled: { true: "uv_m4c9ow1a", false: "uv_m4c9ow1b" } }, defaultVariants: { strikeThrough: false, italic: false, underline: false, oneLine: false, sentiment: void 0, prominence: "default", variant: "body", disabled: false }, compoundVariants: [[{ sentiment: "primary", prominence: "default", disabled: false }, "uv_m4c9ow1c"], [{ sentiment: "primary", prominence: "strong", disabled: false }, "uv_m4c9ow1d"], [{ sentiment: "primary", prominence: "stronger", disabled: false }, "uv_m4c9ow1e"], [{ sentiment: "primary", prominence: "weak", disabled: false }, "uv_m4c9ow1f"], [{ sentiment: "secondary", prominence: "default", disabled: false }, "uv_m4c9ow1g"], [{ sentiment: "secondary", prominence: "strong", disabled: false }, "uv_m4c9ow1h"], [{ sentiment: "secondary", prominence: "stronger", disabled: false }, "uv_m4c9ow1i"], [{ sentiment: "secondary", prominence: "weak", disabled: false }, "uv_m4c9ow1j"], [{ sentiment: "danger", prominence: "default", disabled: false }, "uv_m4c9ow1k"], [{ sentiment: "danger", prominence: "strong", disabled: false }, "uv_m4c9ow1l"], [{ sentiment: "danger", prominence: "stronger", disabled: false }, "uv_m4c9ow1m"], [{ sentiment: "danger", prominence: "weak", disabled: false }, "uv_m4c9ow1n"], [{ sentiment: "info", prominence: "default", disabled: false }, "uv_m4c9ow1o"], [{ sentiment: "info", prominence: "strong", disabled: false }, "uv_m4c9ow1p"], [{ sentiment: "info", prominence: "stronger", disabled: false }, "uv_m4c9ow1q"], [{ sentiment: "info", prominence: "weak", disabled: false }, "uv_m4c9ow1r"], [{ sentiment: "success", prominence: "default", disabled: false }, "uv_m4c9ow1s"], [{ sentiment: "success", prominence: "strong", disabled: false }, "uv_m4c9ow1t"], [{ sentiment: "success", prominence: "stronger", disabled: false }, "uv_m4c9ow1u"], [{ sentiment: "success", prominence: "weak", disabled: false }, "uv_m4c9ow1v"], [{ sentiment: "warning", prominence: "default", disabled: false }, "uv_m4c9ow1w"], [{ sentiment: "warning", prominence: "strong", disabled: false }, "uv_m4c9ow1x"], [{ sentiment: "warning", prominence: "stronger", disabled: false }, "uv_m4c9ow1y"], [{ sentiment: "warning", prominence: "weak", disabled: false }, "uv_m4c9ow1z"], [{ sentiment: "neutral", prominence: "default", disabled: false }, "uv_m4c9ow20"], [{ sentiment: "neutral", prominence: "strong", disabled: false }, "uv_m4c9ow21"], [{ sentiment: "neutral", prominence: "stronger", disabled: false }, "uv_m4c9ow22"], [{ sentiment: "neutral", prominence: "weak", disabled: false }, "uv_m4c9ow23"], [{ sentiment: "black", prominence: "default", disabled: false }, "uv_m4c9ow24"], [{ sentiment: "black", prominence: "strong", disabled: false }, "uv_m4c9ow25"], [{ sentiment: "black", prominence: "stronger", disabled: false }, "uv_m4c9ow26"], [{ sentiment: "black", prominence: "weak", disabled: false }, "uv_m4c9ow27"], [{ sentiment: "white", prominence: "default", disabled: false }, "uv_m4c9ow28"], [{ sentiment: "white", prominence: "strong", disabled: false }, "uv_m4c9ow29"], [{ sentiment: "white", prominence: "stronger", disabled: false }, "uv_m4c9ow2a"], [{ sentiment: "white", prominence: "weak", disabled: false }, "uv_m4c9ow2b"], [{ sentiment: "primary", prominence: "default", disabled: true }, "uv_m4c9ow2c"], [{ sentiment: "primary", prominence: "strong", disabled: true }, "uv_m4c9ow2d"], [{ sentiment: "primary", prominence: "stronger", disabled: true }, "uv_m4c9ow2e"], [{ sentiment: "primary", prominence: "weak", disabled: true }, "uv_m4c9ow2f"], [{ sentiment: "secondary", prominence: "default", disabled: true }, "uv_m4c9ow2g"], [{ sentiment: "secondary", prominence: "strong", disabled: true }, "uv_m4c9ow2h"], [{ sentiment: "secondary", prominence: "stronger", disabled: true }, "uv_m4c9ow2i"], [{ sentiment: "secondary", prominence: "weak", disabled: true }, "uv_m4c9ow2j"], [{ sentiment: "danger", prominence: "default", disabled: true }, "uv_m4c9ow2k"], [{ sentiment: "danger", prominence: "strong", disabled: true }, "uv_m4c9ow2l"], [{ sentiment: "danger", prominence: "stronger", disabled: true }, "uv_m4c9ow2m"], [{ sentiment: "danger", prominence: "weak", disabled: true }, "uv_m4c9ow2n"], [{ sentiment: "info", prominence: "default", disabled: true }, "uv_m4c9ow2o"], [{ sentiment: "info", prominence: "strong", disabled: true }, "uv_m4c9ow2p"], [{ sentiment: "info", prominence: "stronger", disabled: true }, "uv_m4c9ow2q"], [{ sentiment: "info", prominence: "weak", disabled: true }, "uv_m4c9ow2r"], [{ sentiment: "success", prominence: "default", disabled: true }, "uv_m4c9ow2s"], [{ sentiment: "success", prominence: "strong", disabled: true }, "uv_m4c9ow2t"], [{ sentiment: "success", prominence: "stronger", disabled: true }, "uv_m4c9ow2u"], [{ sentiment: "success", prominence: "weak", disabled: true }, "uv_m4c9ow2v"], [{ sentiment: "warning", prominence: "default", disabled: true }, "uv_m4c9ow2w"], [{ sentiment: "warning", prominence: "strong", disabled: true }, "uv_m4c9ow2x"], [{ sentiment: "warning", prominence: "stronger", disabled: true }, "uv_m4c9ow2y"], [{ sentiment: "warning", prominence: "weak", disabled: true }, "uv_m4c9ow2z"], [{ sentiment: "neutral", prominence: "default", disabled: true }, "uv_m4c9ow30"], [{ sentiment: "neutral", prominence: "strong", disabled: true }, "uv_m4c9ow31"], [{ sentiment: "neutral", prominence: "stronger", disabled: true }, "uv_m4c9ow32"], [{ sentiment: "neutral", prominence: "weak", disabled: true }, "uv_m4c9ow33"], [{ sentiment: "black", prominence: "default", disabled: true }, "uv_m4c9ow34"], [{ sentiment: "black", prominence: "strong", disabled: true }, "uv_m4c9ow35"], [{ sentiment: "black", prominence: "stronger", disabled: true }, "uv_m4c9ow36"], [{ sentiment: "black", prominence: "weak", disabled: true }, "uv_m4c9ow37"], [{ sentiment: "white", prominence: "default", disabled: true }, "uv_m4c9ow38"], [{ sentiment: "white", prominence: "strong", disabled: true }, "uv_m4c9ow39"], [{ sentiment: "white", prominence: "stronger", disabled: true }, "uv_m4c9ow3a"], [{ sentiment: "white", prominence: "weak", disabled: true }, "uv_m4c9ow3b"], [{ prominence: "default", disabled: false }, "uv_m4c9ow3c"], [{ prominence: "strong", disabled: false }, "uv_m4c9ow3d"], [{ prominence: "stronger", disabled: false }, "uv_m4c9ow3e"], [{ prominence: "weak", disabled: false }, "uv_m4c9ow3f"]] });
|
|
4
|
+
export {
|
|
5
|
+
text
|
|
6
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
;/* empty css */
|
|
4
|
+
var placementText = "var(--uv_qabug40)";
|
|
5
|
+
var whiteSpaceText = "var(--uv_qabug41)";
|
|
6
|
+
exports.placementText = placementText;
|
|
7
|
+
exports.whiteSpaceText = whiteSpaceText;
|