@prokodo/ui 0.1.15 → 1.0.1
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/LICENSE +187 -26
- package/NOTICE +24 -0
- package/README.md +32 -302
- package/dist/components/RTE/RTE.css +180 -68
- package/dist/components/RTE/RTE.module.css +180 -68
- package/dist/components/RTE/RTE.module.scss.js +10 -0
- package/dist/components/RTE/RTE.view.js +5 -1
- package/dist/components/accordion/Accordion.css +120 -67
- package/dist/components/accordion/Accordion.module.css +120 -67
- package/dist/components/accordion/Accordion.module.scss.js +12 -5
- package/dist/components/accordion/Accordion.view.js +3 -3
- package/dist/components/autocomplete/Autocomplete.css +111 -95
- package/dist/components/autocomplete/Autocomplete.module.css +111 -95
- package/dist/components/autocomplete/Autocomplete.module.scss.js +11 -4
- package/dist/components/autocomplete/Autocomplete.view.js +3 -1
- package/dist/components/avatar/Avatar.css +11 -8
- package/dist/components/avatar/Avatar.module.css +11 -8
- package/dist/components/avatar/Avatar.module.scss.js +1 -0
- package/dist/components/avatar/Avatar.view.js +5 -5
- package/dist/components/button/Button.client.js +12 -16
- package/dist/components/button/Button.css +85 -137
- package/dist/components/button/Button.module.css +85 -137
- package/dist/components/button/Button.module.scss.js +15 -19
- package/dist/components/button/Button.view.js +6 -2
- package/dist/components/calendly/Calendly.css +132 -0
- package/dist/components/calendly/Calendly.module.css +132 -0
- package/dist/components/calendly/Calendly.module.scss.js +6 -0
- package/dist/components/calendly/Calendly.view.js +12 -6
- package/dist/components/card/Card.client.js +6 -1
- package/dist/components/card/Card.css +67 -32
- package/dist/components/card/Card.module.css +67 -32
- package/dist/components/card/Card.module.scss.js +8 -2
- package/dist/components/card/Card.view.js +3 -3
- package/dist/components/carousel/Carousel.client.js +2 -4
- package/dist/components/carousel/Carousel.css +8 -4
- package/dist/components/carousel/Carousel.module.css +8 -4
- package/dist/components/checkbox/Checkbox.css +100 -79
- package/dist/components/checkbox/Checkbox.module.css +100 -79
- package/dist/components/checkbox/Checkbox.module.scss.js +11 -4
- package/dist/components/checkbox/Checkbox.view.js +3 -1
- package/dist/components/checkbox-group/CheckboxGroup.css +39 -6
- package/dist/components/checkbox-group/CheckboxGroup.module.css +39 -6
- package/dist/components/checkbox-group/CheckboxGroup.module.scss.js +8 -0
- package/dist/components/checkbox-group/CheckboxGroup.view.js +3 -1
- package/dist/components/chip/Chip.css +185 -61
- package/dist/components/chip/Chip.module.css +185 -61
- package/dist/components/chip/Chip.module.scss.js +13 -17
- package/dist/components/chip/Chip.view.js +3 -4
- package/dist/components/datePicker/DatePicker.client.js +211 -66
- package/dist/components/datePicker/DatePicker.css +940 -0
- package/dist/components/datePicker/DatePicker.module.css +940 -0
- package/dist/components/datePicker/DatePicker.module.scss.js +62 -0
- package/dist/components/datePicker/DatePicker.server.js +31 -1
- package/dist/components/datePicker/DatePicker.utils.js +103 -0
- package/dist/components/datePicker/DatePicker.view.js +113 -41
- package/dist/components/datePicker/DatePickerDialog.view.js +291 -0
- package/dist/components/dialog/Dialog.css +107 -132
- package/dist/components/dialog/Dialog.module.css +107 -132
- package/dist/components/dialog/Dialog.module.scss.js +13 -8
- package/dist/components/drawer/Drawer.css +8 -8
- package/dist/components/drawer/Drawer.module.css +8 -8
- package/dist/components/dynamic-list/DynamicList.css +20 -12
- package/dist/components/dynamic-list/DynamicList.module.css +20 -12
- package/dist/components/dynamic-list/DynamicList.module.scss.js +1 -0
- package/dist/components/dynamic-list/DynamicList.view.js +78 -46
- package/dist/components/form/Form.view.js +3 -3
- package/dist/components/form/FormField.client.js +51 -2
- package/dist/components/form/FormField.server.js +10 -4
- package/dist/components/form/FormResponse.js +2 -2
- package/dist/components/grid/Grid.css +1 -1
- package/dist/components/grid/Grid.module.css +1 -1
- package/dist/components/headline/Headline.css +16 -16
- package/dist/components/headline/Headline.js +5 -6
- package/dist/components/headline/Headline.module.css +16 -16
- package/dist/components/headline/Headline.module.scss.js +1 -1
- package/dist/components/headline/Headline.variants.js +4 -1
- package/dist/components/icon/Icon.css +14 -14
- package/dist/components/icon/Icon.module.css +14 -14
- package/dist/components/image/Image.css +4 -3
- package/dist/components/image/Image.module.css +4 -3
- package/dist/components/image-text/ImageText.css +43 -14
- package/dist/components/image-text/ImageText.js +61 -53
- package/dist/components/image-text/ImageText.module.css +43 -14
- package/dist/components/image-text/ImageText.module.scss.js +11 -2
- package/dist/components/input/Input.css +197 -115
- package/dist/components/input/Input.module.css +197 -115
- package/dist/components/input/Input.module.scss.js +19 -3
- package/dist/components/input/Input.view.js +87 -57
- package/dist/components/inputOTP/InputOTP.client.js +165 -0
- package/dist/components/inputOTP/InputOTP.css +155 -7
- package/dist/components/inputOTP/InputOTP.js +10 -195
- package/dist/components/inputOTP/InputOTP.lazy.js +12 -0
- package/dist/components/inputOTP/InputOTP.module.css +155 -7
- package/dist/components/inputOTP/InputOTP.module.scss.js +14 -0
- package/dist/components/inputOTP/InputOTP.server.js +32 -0
- package/dist/components/inputOTP/InputOTP.view.js +117 -0
- package/dist/components/label/Label.css +33 -14
- package/dist/components/label/Label.js +37 -35
- package/dist/components/label/Label.module.css +33 -14
- package/dist/components/label/Label.module.scss.js +9 -2
- package/dist/components/link/Link.css +13 -13
- package/dist/components/link/Link.module.css +13 -13
- package/dist/components/link/Link.view.js +14 -12
- package/dist/components/list/List.css +71 -32
- package/dist/components/list/List.js +25 -8
- package/dist/components/list/List.module.css +71 -32
- package/dist/components/list/List.module.scss.js +1 -1
- package/dist/components/loading/Loading.view.js +22 -2
- package/dist/components/lottie/Lottie.css +16 -0
- package/dist/components/lottie/Lottie.module.css +16 -0
- package/dist/components/lottie/Lottie.module.scss.js +6 -2
- package/dist/components/map/Map.css +130 -0
- package/dist/components/map/Map.js +5 -2
- package/dist/components/map/Map.module.css +130 -0
- package/dist/components/map/Map.module.scss.js +6 -0
- package/dist/components/pagination/Pagination.css +127 -11
- package/dist/components/pagination/Pagination.module.css +127 -11
- package/dist/components/pagination/Pagination.module.scss.js +12 -4
- package/dist/components/pagination/Pagination.view.js +13 -1
- package/dist/components/post-item/PostItem.css +16 -16
- package/dist/components/post-item/PostItem.module.css +16 -16
- package/dist/components/post-item/PostItem.view.js +14 -5
- package/dist/components/post-teaser/PostTeaser.css +13 -13
- package/dist/components/post-teaser/PostTeaser.module.css +13 -13
- package/dist/components/post-teaser/PostTeaser.view.js +10 -3
- package/dist/components/post-widget/PostWidget.css +6 -8
- package/dist/components/post-widget/PostWidget.module.css +6 -8
- package/dist/components/post-widget/PostWidget.view.js +12 -5
- package/dist/components/post-widget-carousel/PostWidgetCarousel.css +7 -7
- package/dist/components/post-widget-carousel/PostWidgetCarousel.module.css +7 -7
- package/dist/components/post-widget-carousel/PostWidgetCarousel.view.js +30 -13
- package/dist/components/progressBar/ProgressBar.css +4 -4
- package/dist/components/progressBar/ProgressBar.module.css +4 -4
- package/dist/components/progressBar/ProgressBar.view.js +2 -2
- package/dist/components/quote/Quote.css +21 -6
- package/dist/components/quote/Quote.js +5 -5
- package/dist/components/quote/Quote.module.css +21 -6
- package/dist/components/quote/Quote.module.scss.js +5 -0
- package/dist/components/rating/Rating.css +34 -21
- package/dist/components/rating/Rating.module.css +34 -21
- package/dist/components/rating/Rating.module.scss.js +8 -0
- package/dist/components/rating/Rating.view.js +4 -2
- package/dist/components/rich-text/RichText.client.js +3 -3
- package/dist/components/rich-text/RichText.css +47 -31
- package/dist/components/rich-text/RichText.module.css +47 -31
- package/dist/components/rich-text/RichText.server.js +1 -1
- package/dist/components/select/Select.client.js +154 -1
- package/dist/components/select/Select.css +542 -221
- package/dist/components/select/Select.module.css +542 -221
- package/dist/components/select/Select.module.scss.js +57 -14
- package/dist/components/select/Select.view.js +40 -14
- package/dist/components/sidenav/SideNav.client.js +24 -1
- package/dist/components/sidenav/SideNav.css +89 -21
- package/dist/components/sidenav/SideNav.module.css +89 -21
- package/dist/components/sidenav/SideNav.module.scss.js +6 -1
- package/dist/components/sidenav/SideNav.view.js +69 -14
- package/dist/components/skeleton/Skeleton.css +7 -7
- package/dist/components/skeleton/Skeleton.module.css +7 -7
- package/dist/components/slider/Slider.css +177 -112
- package/dist/components/slider/Slider.module.css +177 -112
- package/dist/components/slider/Slider.module.scss.js +11 -2
- package/dist/components/slider/Slider.view.js +113 -101
- package/dist/components/snackbar/Snackbar.css +125 -64
- package/dist/components/snackbar/Snackbar.module.css +125 -64
- package/dist/components/snackbar/Snackbar.module.scss.js +11 -13
- package/dist/components/snackbar/Snackbar.view.js +2 -2
- package/dist/components/stepper/Stepper.client.js +21 -6
- package/dist/components/stepper/Stepper.css +46 -11
- package/dist/components/stepper/Stepper.module.css +46 -11
- package/dist/components/stepper/Stepper.module.scss.js +7 -0
- package/dist/components/stepper/Stepper.server.js +2 -0
- package/dist/components/stepper/Stepper.view.js +6 -1
- package/dist/components/switch/Switch.css +108 -84
- package/dist/components/switch/Switch.module.css +108 -84
- package/dist/components/switch/Switch.module.scss.js +14 -12
- package/dist/components/switch/Switch.view.js +9 -8
- package/dist/components/table/Table.css +19 -14
- package/dist/components/table/Table.module.css +19 -14
- package/dist/components/tabs/Tabs.css +53 -27
- package/dist/components/tabs/Tabs.module.css +53 -27
- package/dist/components/tabs/Tabs.module.scss.js +7 -2
- package/dist/components/tabs/Tabs.view.js +4 -2
- package/dist/components/teaser/Teaser.css +5 -5
- package/dist/components/teaser/Teaser.js +4 -4
- package/dist/components/teaser/Teaser.module.css +5 -5
- package/dist/components/tooltip/Tooltip.client.js +14 -4
- package/dist/components/tooltip/Tooltip.css +46 -9
- package/dist/components/tooltip/Tooltip.module.css +46 -9
- package/dist/components/tooltip/Tooltip.module.scss.js +5 -1
- package/dist/components/tooltip/Tooltip.view.js +6 -1
- package/dist/constants/project.js +1 -1
- package/dist/theme.css +3269 -1588
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/dist/types/components/RTE/RTE.d.ts +5 -0
- package/dist/types/components/RTE/RTE.lazy.d.ts +5 -0
- package/dist/types/components/RTE/RTE.view.d.ts +1 -1
- package/dist/types/components/accordion/Accordion.d.ts +1 -1
- package/dist/types/components/accordion/Accordion.lazy.d.ts +1 -1
- package/dist/types/components/accordion/Accordion.model.d.ts +1 -1
- package/dist/types/components/accordion/Accordion.view.d.ts +1 -1
- package/dist/types/components/autocomplete/Autocomplete.model.d.ts +2 -0
- package/dist/types/components/autocomplete/Autocomplete.view.d.ts +1 -1
- package/dist/types/components/avatar/Avatar.d.ts +1 -1
- package/dist/types/components/avatar/Avatar.lazy.d.ts +1 -1
- package/dist/types/components/avatar/Avatar.model.d.ts +1 -1
- package/dist/types/components/avatar/Avatar.view.d.ts +1 -1
- package/dist/types/components/calendly/Calendly.view.d.ts +1 -1
- package/dist/types/components/card/Card.model.d.ts +1 -1
- package/dist/types/components/card/Card.view.d.ts +1 -1
- package/dist/types/components/checkbox/Checkbox.d.ts +1 -0
- package/dist/types/components/checkbox/Checkbox.lazy.d.ts +1 -0
- package/dist/types/components/checkbox/Checkbox.model.d.ts +2 -0
- package/dist/types/components/checkbox/Checkbox.view.d.ts +1 -1
- package/dist/types/components/checkbox-group/CheckboxGroup.model.d.ts +2 -0
- package/dist/types/components/checkbox-group/CheckboxGroup.view.d.ts +1 -1
- package/dist/types/components/datePicker/DatePicker.model.d.ts +70 -1
- package/dist/types/components/datePicker/DatePicker.utils.d.ts +10 -0
- package/dist/types/components/datePicker/DatePicker.view.d.ts +7 -4
- package/dist/types/components/datePicker/DatePickerDialog.view.d.ts +4 -0
- package/dist/types/components/dynamic-list/DynamicList.model.d.ts +2 -0
- package/dist/types/components/dynamic-list/DynamicList.view.d.ts +1 -1
- package/dist/types/components/form/Form.d.ts +1 -1
- package/dist/types/components/form/Form.lazy.d.ts +1 -1
- package/dist/types/components/form/Form.model.d.ts +19 -4
- package/dist/types/components/form/FormField.client.d.ts +2 -2
- package/dist/types/components/form/FormField.d.ts +1 -1
- package/dist/types/components/form/FormField.lazy.d.ts +1 -1
- package/dist/types/components/form/FormField.server.d.ts +2 -2
- package/dist/types/components/headline/Headline.model.d.ts +1 -1
- package/dist/types/components/input/Input.model.d.ts +8 -1
- package/dist/types/components/input/Input.view.d.ts +1 -1
- package/dist/types/components/inputOTP/InputOTP.client.d.ts +4 -0
- package/dist/types/components/inputOTP/InputOTP.d.ts +10 -3
- package/dist/types/components/inputOTP/InputOTP.lazy.d.ts +11 -0
- package/dist/types/components/inputOTP/InputOTP.model.d.ts +10 -0
- package/dist/types/components/inputOTP/InputOTP.server.d.ts +3 -0
- package/dist/types/components/inputOTP/InputOTP.view.d.ts +3 -0
- package/dist/types/components/inputOTP/index.d.ts +1 -1
- package/dist/types/components/label/Label.model.d.ts +2 -0
- package/dist/types/components/link/Link.model.d.ts +1 -1
- package/dist/types/components/link/Link.view.d.ts +1 -1
- package/dist/types/components/list/List.d.ts +1 -1
- package/dist/types/components/list/List.model.d.ts +14 -5
- package/dist/types/components/list/index.d.ts +1 -1
- package/dist/types/components/loading/Loading.model.d.ts +2 -0
- package/dist/types/components/loading/index.d.ts +1 -1
- package/dist/types/components/pagination/Pagination.model.d.ts +2 -0
- package/dist/types/components/pagination/Pagination.view.d.ts +1 -1
- package/dist/types/components/post-item/PostItem.model.d.ts +2 -1
- package/dist/types/components/post-teaser/PostTeaser.model.d.ts +2 -1
- package/dist/types/components/post-widget/PostWidget.view.d.ts +1 -1
- package/dist/types/components/progressBar/ProgressBar.d.ts +1 -1
- package/dist/types/components/progressBar/ProgressBar.lazy.d.ts +1 -1
- package/dist/types/components/progressBar/ProgressBar.model.d.ts +3 -2
- package/dist/types/components/progressBar/ProgressBar.view.d.ts +1 -1
- package/dist/types/components/progressBar/index.d.ts +1 -1
- package/dist/types/components/quote/Quote.model.d.ts +1 -1
- package/dist/types/components/rating/Rating.model.d.ts +2 -0
- package/dist/types/components/rich-text/RichText.client.d.ts +1 -1
- package/dist/types/components/rich-text/RichText.d.ts +1 -1
- package/dist/types/components/rich-text/RichText.lazy.d.ts +1 -1
- package/dist/types/components/rich-text/RichText.model.d.ts +1 -1
- package/dist/types/components/select/Select.model.d.ts +2 -0
- package/dist/types/components/select/Select.view.d.ts +1 -1
- package/dist/types/components/sidenav/SideNav.client.d.ts +1 -1
- package/dist/types/components/sidenav/SideNav.model.d.ts +16 -2
- package/dist/types/components/sidenav/SideNav.view.d.ts +1 -1
- package/dist/types/components/slider/Slider.model.d.ts +2 -0
- package/dist/types/components/snackbar/Snackbar.model.d.ts +3 -2
- package/dist/types/components/snackbar/Snackbar.view.d.ts +3 -2
- package/dist/types/components/snackbar/index.d.ts +1 -1
- package/dist/types/components/stepper/Stepper.d.ts +1 -0
- package/dist/types/components/stepper/Stepper.lazy.d.ts +1 -0
- package/dist/types/components/stepper/Stepper.model.d.ts +3 -0
- package/dist/types/components/stepper/Stepper.server.d.ts +1 -1
- package/dist/types/components/switch/Switch.d.ts +2 -2
- package/dist/types/components/switch/Switch.lazy.d.ts +2 -2
- package/dist/types/components/switch/Switch.model.d.ts +3 -4
- package/dist/types/components/tabs/Tabs.model.d.ts +2 -0
- package/dist/types/components/tabs/Tabs.view.d.ts +1 -1
- package/dist/types/components/teaser/Teaser.model.d.ts +1 -1
- package/dist/types/components/tooltip/Tooltip.model.d.ts +2 -0
- package/package.json +37 -22
|
@@ -125,17 +125,17 @@
|
|
|
125
125
|
* content.
|
|
126
126
|
*/
|
|
127
127
|
.prokodo-Chip {
|
|
128
|
+
position: relative;
|
|
128
129
|
display: inline-flex;
|
|
129
130
|
align-items: center;
|
|
130
|
-
border-radius:
|
|
131
|
-
padding:
|
|
131
|
+
border-radius: var(--pk-radius-pill);
|
|
132
|
+
padding: var(--pk-space-xs) var(--pk-space-md);
|
|
132
133
|
-webkit-user-select: none;
|
|
133
134
|
-moz-user-select: none;
|
|
134
135
|
user-select: none;
|
|
135
|
-
gap:
|
|
136
|
-
transition: background-color
|
|
137
|
-
|
|
138
|
-
color: var(--color-black);
|
|
136
|
+
gap: var(--pk-space-sm);
|
|
137
|
+
transition: background-color var(--pk-timing-normal) ease, color var(--pk-timing-normal) ease, box-shadow var(--pk-timing-normal) ease, filter var(--pk-timing-fast) ease;
|
|
138
|
+
color: var(--pk-color-fg);
|
|
139
139
|
font-weight: 500;
|
|
140
140
|
font-size: 1.125rem;
|
|
141
141
|
font-family: var(--font-secondary), -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
|
|
@@ -158,107 +158,231 @@
|
|
|
158
158
|
line-height: 1.5;
|
|
159
159
|
}
|
|
160
160
|
}
|
|
161
|
+
.prokodo-Chip:focus-within {
|
|
162
|
+
outline: 3px solid #1E90FF;
|
|
163
|
+
outline-offset: 4px;
|
|
164
|
+
border-radius: 1.5rem;
|
|
165
|
+
border-radius: var(--pk-radius-pill);
|
|
166
|
+
}
|
|
161
167
|
.prokodo-Chip--is-clickable {
|
|
162
168
|
cursor: pointer;
|
|
163
169
|
}
|
|
170
|
+
.prokodo-Chip--is-clickable:hover {
|
|
171
|
+
filter: brightness(1.08);
|
|
172
|
+
box-shadow: none;
|
|
173
|
+
}
|
|
174
|
+
.prokodo-Chip--is-clickable.prokodo-Chip--filled--primary, .prokodo-Chip--is-clickable.prokodo-Chip--outlined--primary {
|
|
175
|
+
box-shadow: 0 4px 20px color-mix(in srgb, var(--pk-color-brand) 18%, transparent);
|
|
176
|
+
}
|
|
177
|
+
.prokodo-Chip--is-clickable.prokodo-Chip--filled--secondary, .prokodo-Chip--is-clickable.prokodo-Chip--outlined--secondary {
|
|
178
|
+
box-shadow: 0 4px 20px color-mix(in srgb, var(--pk-color-accent) 18%, transparent);
|
|
179
|
+
}
|
|
180
|
+
.prokodo-Chip--is-clickable.prokodo-Chip--filled--success, .prokodo-Chip--is-clickable.prokodo-Chip--outlined--success {
|
|
181
|
+
box-shadow: 0 4px 20px color-mix(in srgb, var(--pk-color-success) 18%, transparent);
|
|
182
|
+
}
|
|
183
|
+
.prokodo-Chip--is-clickable.prokodo-Chip--filled--warning, .prokodo-Chip--is-clickable.prokodo-Chip--outlined--warning {
|
|
184
|
+
box-shadow: 0 4px 20px color-mix(in srgb, var(--pk-color-warning) 18%, transparent);
|
|
185
|
+
}
|
|
186
|
+
.prokodo-Chip--is-clickable.prokodo-Chip--filled--error, .prokodo-Chip--is-clickable.prokodo-Chip--outlined--error {
|
|
187
|
+
box-shadow: 0 4px 20px color-mix(in srgb, var(--pk-color-error) 18%, transparent);
|
|
188
|
+
}
|
|
189
|
+
.prokodo-Chip--is-clickable.prokodo-Chip--filled--info, .prokodo-Chip--is-clickable.prokodo-Chip--outlined--info, .prokodo-Chip--is-clickable.prokodo-Chip--filled--inherit, .prokodo-Chip--is-clickable.prokodo-Chip--outlined--inherit {
|
|
190
|
+
box-shadow: 0 4px 20px color-mix(in srgb, var(--pk-color-fg) 10%, transparent);
|
|
191
|
+
}
|
|
164
192
|
.prokodo-Chip--has-icon {
|
|
165
|
-
padding-right:
|
|
193
|
+
padding-right: var(--pk-space-sm);
|
|
166
194
|
}
|
|
167
195
|
.prokodo-Chip--filled {
|
|
168
196
|
background-color: inherit;
|
|
169
197
|
color: inherit;
|
|
170
198
|
}
|
|
171
199
|
.prokodo-Chip--filled--primary {
|
|
172
|
-
background-color: var(--color-
|
|
173
|
-
color: var(--color-white);
|
|
200
|
+
background-color: color-mix(in srgb, var(--pk-color-brand) 14%, var(--pk-color-surface));
|
|
174
201
|
}
|
|
175
202
|
.prokodo-Chip--filled--secondary {
|
|
176
|
-
background-color: var(--color-
|
|
177
|
-
color: var(--color-white);
|
|
203
|
+
background-color: color-mix(in srgb, var(--pk-color-accent) 14%, var(--pk-color-surface));
|
|
178
204
|
}
|
|
179
205
|
.prokodo-Chip--filled--info {
|
|
180
|
-
background-color: var(--color-
|
|
181
|
-
color: var(--color-grey-700);
|
|
206
|
+
background-color: color-mix(in srgb, var(--pk-color-muted) 20%, var(--pk-color-surface));
|
|
182
207
|
}
|
|
183
208
|
.prokodo-Chip--filled--success {
|
|
184
|
-
background-color: var(--color-success);
|
|
185
|
-
color: var(--color-white);
|
|
209
|
+
background-color: color-mix(in srgb, var(--pk-color-success) 14%, var(--pk-color-surface));
|
|
186
210
|
}
|
|
187
211
|
.prokodo-Chip--filled--error {
|
|
188
|
-
background-color: var(--color-error);
|
|
189
|
-
color: var(--color-white);
|
|
212
|
+
background-color: color-mix(in srgb, var(--pk-color-error) 14%, var(--pk-color-surface));
|
|
190
213
|
}
|
|
191
214
|
.prokodo-Chip--filled--warning {
|
|
192
|
-
background-color: var(--color-warning);
|
|
193
|
-
color: var(--color-black);
|
|
215
|
+
background-color: color-mix(in srgb, var(--pk-color-warning) 18%, var(--pk-color-surface));
|
|
194
216
|
}
|
|
195
217
|
.prokodo-Chip--filled--white {
|
|
196
|
-
background-color: var(--
|
|
197
|
-
color: var(--
|
|
218
|
+
background-color: var(--pk-palette-white);
|
|
219
|
+
color: var(--pk-palette-black);
|
|
220
|
+
}
|
|
221
|
+
.prokodo-Chip--filled--inherit {
|
|
222
|
+
background: var(--gradient-background-inherit);
|
|
223
|
+
}
|
|
224
|
+
html[data-theme="dark"] .prokodo-Chip--filled--inherit, [data-theme="dark"] .prokodo-Chip--filled--inherit {
|
|
225
|
+
background: var(--pk-color-surface-raised);
|
|
198
226
|
}
|
|
199
227
|
.prokodo-Chip--outlined {
|
|
200
|
-
border: 1px solid;
|
|
201
228
|
background-color: transparent;
|
|
202
|
-
color: var(--color-
|
|
229
|
+
color: var(--pk-color-fg);
|
|
203
230
|
}
|
|
204
|
-
.prokodo-Chip--outlined
|
|
205
|
-
|
|
206
|
-
|
|
231
|
+
.prokodo-Chip--outlined::before {
|
|
232
|
+
content: "";
|
|
233
|
+
position: absolute;
|
|
234
|
+
inset: 0;
|
|
235
|
+
border-radius: inherit;
|
|
236
|
+
padding: var(--pk-border-width);
|
|
237
|
+
-webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
|
|
238
|
+
mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
|
|
239
|
+
-webkit-mask-composite: xor;
|
|
240
|
+
mask-composite: exclude;
|
|
241
|
+
z-index: 0;
|
|
242
|
+
background: var(--gradient-border-4);
|
|
207
243
|
}
|
|
208
|
-
.prokodo-Chip--outlined--
|
|
209
|
-
|
|
210
|
-
color: var(--color-secondary-500);
|
|
244
|
+
.prokodo-Chip--outlined--primary::before {
|
|
245
|
+
background: var(--gradient-border-4);
|
|
211
246
|
}
|
|
212
|
-
.prokodo-Chip--outlined--
|
|
213
|
-
|
|
214
|
-
color: var(--color-grey-500);
|
|
247
|
+
.prokodo-Chip--outlined--secondary::before {
|
|
248
|
+
background: var(--gradient-border-2);
|
|
215
249
|
}
|
|
216
|
-
.prokodo-Chip--outlined--
|
|
217
|
-
|
|
218
|
-
color: var(--color-success);
|
|
250
|
+
.prokodo-Chip--outlined--info::before {
|
|
251
|
+
background: var(--gradient-border-info);
|
|
219
252
|
}
|
|
220
|
-
.prokodo-Chip--outlined--
|
|
221
|
-
|
|
222
|
-
color: var(--color-error);
|
|
253
|
+
.prokodo-Chip--outlined--success::before {
|
|
254
|
+
background: var(--gradient-border-success);
|
|
223
255
|
}
|
|
224
|
-
.prokodo-Chip--outlined--
|
|
225
|
-
|
|
226
|
-
color: var(--color-warning);
|
|
256
|
+
.prokodo-Chip--outlined--error::before {
|
|
257
|
+
background: var(--gradient-border-error);
|
|
227
258
|
}
|
|
228
|
-
.prokodo-Chip--outlined--
|
|
229
|
-
|
|
230
|
-
|
|
259
|
+
.prokodo-Chip--outlined--warning::before {
|
|
260
|
+
background: var(--gradient-border-warning);
|
|
261
|
+
}
|
|
262
|
+
.prokodo-Chip--outlined--white::before, .prokodo-Chip--outlined--inherit::before {
|
|
263
|
+
background: linear-gradient(90deg, var(--pk-palette-grey-100) 0%, var(--pk-palette-grey-200) 100%);
|
|
264
|
+
}
|
|
265
|
+
html[data-theme="dark"] .prokodo-Chip--outlined--white::before, [data-theme="dark"] .prokodo-Chip--outlined--white::before, html[data-theme="dark"] .prokodo-Chip--outlined--inherit::before, [data-theme="dark"] .prokodo-Chip--outlined--inherit::before {
|
|
266
|
+
background: linear-gradient(90deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.5) 100%);
|
|
231
267
|
}
|
|
232
268
|
.prokodo-Chip__delete {
|
|
269
|
+
position: relative;
|
|
270
|
+
z-index: 1;
|
|
233
271
|
display: flex;
|
|
234
272
|
align-items: center;
|
|
235
273
|
justify-content: center;
|
|
236
|
-
width:
|
|
237
|
-
height:
|
|
274
|
+
width: 1.25rem;
|
|
275
|
+
height: 1.25rem;
|
|
238
276
|
border: none;
|
|
239
|
-
border-radius:
|
|
277
|
+
border-radius: 100%;
|
|
240
278
|
color: inherit;
|
|
241
279
|
cursor: pointer;
|
|
242
280
|
padding: 0;
|
|
243
281
|
line-height: 1;
|
|
244
|
-
|
|
245
|
-
background-color
|
|
282
|
+
flex-shrink: 0;
|
|
283
|
+
transition: background-color var(--pk-timing-fast) ease, color var(--pk-timing-fast) ease;
|
|
284
|
+
background-color: rgba(0, 0, 0, 0.12);
|
|
285
|
+
}
|
|
286
|
+
.prokodo-Chip__delete:hover {
|
|
287
|
+
background-color: rgba(0, 0, 0, 0.22);
|
|
288
|
+
}
|
|
289
|
+
.prokodo-Chip--filled--primary .prokodo-Chip__label {
|
|
290
|
+
background-image: var(--gradient-text-primary);
|
|
291
|
+
-webkit-background-clip: text;
|
|
292
|
+
background-clip: text;
|
|
293
|
+
-webkit-text-fill-color: transparent;
|
|
294
|
+
}
|
|
295
|
+
.prokodo-Chip--filled--secondary .prokodo-Chip__label {
|
|
296
|
+
background-image: var(--gradient-text-primary-secondary);
|
|
297
|
+
-webkit-background-clip: text;
|
|
298
|
+
background-clip: text;
|
|
299
|
+
-webkit-text-fill-color: transparent;
|
|
300
|
+
}
|
|
301
|
+
.prokodo-Chip--filled--success .prokodo-Chip__label {
|
|
302
|
+
background-image: var(--gradient-text-success);
|
|
303
|
+
-webkit-background-clip: text;
|
|
304
|
+
background-clip: text;
|
|
305
|
+
-webkit-text-fill-color: transparent;
|
|
306
|
+
}
|
|
307
|
+
.prokodo-Chip--filled--error .prokodo-Chip__label {
|
|
308
|
+
background-image: var(--gradient-text-error);
|
|
309
|
+
-webkit-background-clip: text;
|
|
310
|
+
background-clip: text;
|
|
311
|
+
-webkit-text-fill-color: transparent;
|
|
312
|
+
}
|
|
313
|
+
.prokodo-Chip--filled--warning .prokodo-Chip__label {
|
|
314
|
+
background-image: var(--gradient-text-warning);
|
|
315
|
+
-webkit-background-clip: text;
|
|
316
|
+
background-clip: text;
|
|
317
|
+
-webkit-text-fill-color: transparent;
|
|
318
|
+
}
|
|
319
|
+
.prokodo-Chip--filled--info .prokodo-Chip__label {
|
|
320
|
+
background-image: var(--gradient-text-grey);
|
|
321
|
+
-webkit-background-clip: text;
|
|
322
|
+
background-clip: text;
|
|
323
|
+
-webkit-text-fill-color: transparent;
|
|
324
|
+
}
|
|
325
|
+
.prokodo-Chip--outlined--primary .prokodo-Chip__label {
|
|
326
|
+
background-image: var(--gradient-text-primary);
|
|
327
|
+
-webkit-background-clip: text;
|
|
328
|
+
background-clip: text;
|
|
329
|
+
-webkit-text-fill-color: transparent;
|
|
330
|
+
}
|
|
331
|
+
.prokodo-Chip--outlined--secondary .prokodo-Chip__label {
|
|
332
|
+
background-image: var(--gradient-text-primary-secondary);
|
|
333
|
+
-webkit-background-clip: text;
|
|
334
|
+
background-clip: text;
|
|
335
|
+
-webkit-text-fill-color: transparent;
|
|
336
|
+
}
|
|
337
|
+
.prokodo-Chip--outlined--success .prokodo-Chip__label {
|
|
338
|
+
background-image: var(--gradient-text-success);
|
|
339
|
+
-webkit-background-clip: text;
|
|
340
|
+
background-clip: text;
|
|
341
|
+
-webkit-text-fill-color: transparent;
|
|
342
|
+
}
|
|
343
|
+
.prokodo-Chip--outlined--error .prokodo-Chip__label {
|
|
344
|
+
background-image: var(--gradient-text-error);
|
|
345
|
+
-webkit-background-clip: text;
|
|
346
|
+
background-clip: text;
|
|
347
|
+
-webkit-text-fill-color: transparent;
|
|
348
|
+
}
|
|
349
|
+
.prokodo-Chip--outlined--warning .prokodo-Chip__label {
|
|
350
|
+
background-image: var(--gradient-text-warning);
|
|
351
|
+
-webkit-background-clip: text;
|
|
352
|
+
background-clip: text;
|
|
353
|
+
-webkit-text-fill-color: transparent;
|
|
354
|
+
}
|
|
355
|
+
.prokodo-Chip--outlined--info .prokodo-Chip__label {
|
|
356
|
+
background-image: var(--gradient-text-grey);
|
|
357
|
+
-webkit-background-clip: text;
|
|
358
|
+
background-clip: text;
|
|
359
|
+
-webkit-text-fill-color: transparent;
|
|
246
360
|
}
|
|
247
|
-
.prokodo-
|
|
248
|
-
|
|
361
|
+
.prokodo-Chip--filled--white .prokodo-Chip__label, .prokodo-Chip--outlined--white .prokodo-Chip__label {
|
|
362
|
+
background-image: var(--gradient-text-grey);
|
|
363
|
+
-webkit-background-clip: text;
|
|
364
|
+
background-clip: text;
|
|
365
|
+
-webkit-text-fill-color: transparent;
|
|
249
366
|
}
|
|
250
|
-
.prokodo-
|
|
251
|
-
|
|
367
|
+
html[data-theme="dark"] .prokodo-Chip--filled--white .prokodo-Chip__label, [data-theme="dark"] .prokodo-Chip--filled--white .prokodo-Chip__label, html[data-theme="dark"] .prokodo-Chip--outlined--white .prokodo-Chip__label, [data-theme="dark"] .prokodo-Chip--outlined--white .prokodo-Chip__label {
|
|
368
|
+
background-image: linear-gradient(90deg, var(--pk-palette-grey-400) 0%, var(--pk-palette-grey-600) 100%);
|
|
252
369
|
}
|
|
253
|
-
.prokodo-
|
|
254
|
-
|
|
370
|
+
.prokodo-Chip--filled--inherit .prokodo-Chip__label {
|
|
371
|
+
background-image: var(--gradient-text-grey);
|
|
372
|
+
-webkit-background-clip: text;
|
|
373
|
+
background-clip: text;
|
|
374
|
+
-webkit-text-fill-color: transparent;
|
|
255
375
|
}
|
|
256
|
-
.prokodo-
|
|
257
|
-
|
|
376
|
+
.prokodo-Chip--outlined--inherit .prokodo-Chip__label {
|
|
377
|
+
background-image: var(--gradient-text-grey);
|
|
378
|
+
-webkit-background-clip: text;
|
|
379
|
+
background-clip: text;
|
|
380
|
+
-webkit-text-fill-color: transparent;
|
|
258
381
|
}
|
|
259
|
-
.prokodo-
|
|
260
|
-
|
|
382
|
+
html[data-theme="dark"] .prokodo-Chip--filled--inherit .prokodo-Chip__label, [data-theme="dark"] .prokodo-Chip--filled--inherit .prokodo-Chip__label, html[data-theme="dark"] .prokodo-Chip--outlined--inherit .prokodo-Chip__label, [data-theme="dark"] .prokodo-Chip--outlined--inherit .prokodo-Chip__label {
|
|
383
|
+
background-image: linear-gradient(90deg, var(--pk-palette-white) 0%, var(--pk-palette-grey-100) 100%);
|
|
261
384
|
}
|
|
262
|
-
.prokodo-
|
|
263
|
-
|
|
385
|
+
.prokodo-Chip__label {
|
|
386
|
+
position: relative;
|
|
387
|
+
z-index: 1;
|
|
264
388
|
}
|
|
@@ -1,31 +1,27 @@
|
|
|
1
1
|
const styles = {
|
|
2
2
|
"prokodo-Chip": "prokodo-Chip",
|
|
3
3
|
"prokodo-Chip--is-clickable": "prokodo-Chip--is-clickable",
|
|
4
|
-
"prokodo-Chip--has-icon": "prokodo-Chip--has-icon",
|
|
5
|
-
"prokodo-Chip--filled": "prokodo-Chip--filled",
|
|
6
4
|
"prokodo-Chip--filled--primary": "prokodo-Chip--filled--primary",
|
|
5
|
+
"prokodo-Chip--outlined--primary": "prokodo-Chip--outlined--primary",
|
|
7
6
|
"prokodo-Chip--filled--secondary": "prokodo-Chip--filled--secondary",
|
|
8
|
-
"prokodo-Chip--
|
|
7
|
+
"prokodo-Chip--outlined--secondary": "prokodo-Chip--outlined--secondary",
|
|
9
8
|
"prokodo-Chip--filled--success": "prokodo-Chip--filled--success",
|
|
10
|
-
"prokodo-Chip--
|
|
9
|
+
"prokodo-Chip--outlined--success": "prokodo-Chip--outlined--success",
|
|
11
10
|
"prokodo-Chip--filled--warning": "prokodo-Chip--filled--warning",
|
|
11
|
+
"prokodo-Chip--outlined--warning": "prokodo-Chip--outlined--warning",
|
|
12
|
+
"prokodo-Chip--filled--error": "prokodo-Chip--filled--error",
|
|
13
|
+
"prokodo-Chip--outlined--error": "prokodo-Chip--outlined--error",
|
|
14
|
+
"prokodo-Chip--filled--info": "prokodo-Chip--filled--info",
|
|
15
|
+
"prokodo-Chip--outlined--info": "prokodo-Chip--outlined--info",
|
|
16
|
+
"prokodo-Chip--filled--inherit": "prokodo-Chip--filled--inherit",
|
|
17
|
+
"prokodo-Chip--outlined--inherit": "prokodo-Chip--outlined--inherit",
|
|
18
|
+
"prokodo-Chip--has-icon": "prokodo-Chip--has-icon",
|
|
19
|
+
"prokodo-Chip--filled": "prokodo-Chip--filled",
|
|
12
20
|
"prokodo-Chip--filled--white": "prokodo-Chip--filled--white",
|
|
13
21
|
"prokodo-Chip--outlined": "prokodo-Chip--outlined",
|
|
14
|
-
"prokodo-Chip--outlined--primary": "prokodo-Chip--outlined--primary",
|
|
15
|
-
"prokodo-Chip--outlined--secondary": "prokodo-Chip--outlined--secondary",
|
|
16
|
-
"prokodo-Chip--outlined--info": "prokodo-Chip--outlined--info",
|
|
17
|
-
"prokodo-Chip--outlined--success": "prokodo-Chip--outlined--success",
|
|
18
|
-
"prokodo-Chip--outlined--error": "prokodo-Chip--outlined--error",
|
|
19
|
-
"prokodo-Chip--outlined--warning": "prokodo-Chip--outlined--warning",
|
|
20
22
|
"prokodo-Chip--outlined--white": "prokodo-Chip--outlined--white",
|
|
21
23
|
"prokodo-Chip__delete": "prokodo-Chip__delete",
|
|
22
|
-
"prokodo-
|
|
23
|
-
"prokodo-Chip__delete--secondary": "prokodo-Chip__delete--secondary",
|
|
24
|
-
"prokodo-Chip__delete--info": "prokodo-Chip__delete--info",
|
|
25
|
-
"prokodo-Chip__delete--success": "prokodo-Chip__delete--success",
|
|
26
|
-
"prokodo-Chip__delete--error": "prokodo-Chip__delete--error",
|
|
27
|
-
"prokodo-Chip__delete--white": "prokodo-Chip__delete--white",
|
|
28
|
-
"prokodo-Chip__delete--warning": "prokodo-Chip__delete--warning"
|
|
24
|
+
"prokodo-Chip__label": "prokodo-Chip__label"
|
|
29
25
|
};
|
|
30
26
|
export {
|
|
31
27
|
styles as default
|
|
@@ -22,8 +22,8 @@ function ChipView({
|
|
|
22
22
|
"div",
|
|
23
23
|
{
|
|
24
24
|
...rest,
|
|
25
|
-
role: "button",
|
|
26
|
-
tabIndex: isClickable ? 0 :
|
|
25
|
+
role: isClickable ? "button" : void 0,
|
|
26
|
+
tabIndex: isClickable ? 0 : void 0,
|
|
27
27
|
className: bem(
|
|
28
28
|
void 0,
|
|
29
29
|
{
|
|
@@ -34,8 +34,7 @@ function ChipView({
|
|
|
34
34
|
},
|
|
35
35
|
className
|
|
36
36
|
),
|
|
37
|
-
onClick,
|
|
38
|
-
onKeyDown,
|
|
37
|
+
...isClickable ? { onClick, onKeyDown } : {},
|
|
39
38
|
children: [
|
|
40
39
|
icon,
|
|
41
40
|
/* @__PURE__ */ jsx("span", { className: bem("label"), children: label }),
|