@porsche-design-system/components-react 3.0.0-alpha.2 → 3.0.0-alpha.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +302 -0
- package/esm/lib/components/accordion.wrapper.js +2 -1
- package/esm/lib/components/banner.wrapper.js +3 -3
- package/esm/lib/components/carousel.wrapper.js +4 -3
- package/esm/lib/components/divider.wrapper.js +3 -3
- package/esm/lib/components/link-social.wrapper.js +1 -1
- package/esm/lib/components/link-tile.wrapper.js +1 -1
- package/esm/lib/components/modal.wrapper.js +4 -3
- package/esm/lib/components/pagination.wrapper.js +4 -3
- package/esm/lib/components/scroller.wrapper.js +3 -3
- package/esm/lib/components/segmented-control.wrapper.js +2 -1
- package/esm/lib/components/stepper-horizontal.wrapper.js +2 -1
- package/esm/lib/components/switch.wrapper.js +2 -1
- package/esm/lib/components/table.wrapper.js +2 -1
- package/esm/lib/components/tabs-bar.wrapper.js +4 -3
- package/esm/lib/components/tabs.wrapper.js +4 -3
- package/esm/lib/components/text-field-wrapper.wrapper.js +3 -3
- package/esm/lib/components/text-list.wrapper.js +3 -3
- package/esm/lib/components/textarea-wrapper.wrapper.js +3 -3
- package/lib/components/accordion.wrapper.d.ts +12 -4
- package/lib/components/accordion.wrapper.js +2 -1
- package/lib/components/banner.wrapper.d.ts +18 -2
- package/lib/components/banner.wrapper.js +3 -3
- package/lib/components/button-group.wrapper.d.ts +2 -2
- package/lib/components/button-pure.wrapper.d.ts +15 -15
- package/lib/components/button.wrapper.d.ts +5 -5
- package/lib/components/carousel.wrapper.d.ts +22 -6
- package/lib/components/carousel.wrapper.js +4 -3
- package/lib/components/checkbox-wrapper.wrapper.d.ts +5 -5
- package/lib/components/content-wrapper.wrapper.d.ts +2 -2
- package/lib/components/display.wrapper.d.ts +2 -2
- package/lib/components/divider.wrapper.d.ts +13 -5
- package/lib/components/divider.wrapper.js +3 -3
- package/lib/components/fieldset-wrapper.wrapper.d.ts +5 -5
- package/lib/components/flex-item.wrapper.d.ts +2 -2
- package/lib/components/flex.wrapper.d.ts +2 -2
- package/lib/components/grid-item.wrapper.d.ts +2 -2
- package/lib/components/grid.wrapper.d.ts +2 -2
- package/lib/components/heading.wrapper.d.ts +2 -2
- package/lib/components/headline.wrapper.d.ts +2 -2
- package/lib/components/icon.wrapper.d.ts +2 -2
- package/lib/components/inline-notification.wrapper.d.ts +5 -5
- package/lib/components/link-pure.wrapper.d.ts +15 -15
- package/lib/components/link-social.wrapper.d.ts +8 -8
- package/lib/components/link-social.wrapper.js +1 -1
- package/lib/components/link-tile.wrapper.d.ts +7 -7
- package/lib/components/link-tile.wrapper.js +1 -1
- package/lib/components/link.wrapper.d.ts +5 -5
- package/lib/components/marque.wrapper.d.ts +5 -5
- package/lib/components/modal.wrapper.d.ts +22 -6
- package/lib/components/modal.wrapper.js +4 -3
- package/lib/components/model-signature.wrapper.d.ts +2 -2
- package/lib/components/pagination.wrapper.d.ts +31 -15
- package/lib/components/pagination.wrapper.js +4 -3
- package/lib/components/popover.wrapper.d.ts +5 -5
- package/lib/components/radio-button-wrapper.wrapper.d.ts +5 -5
- package/lib/components/scroller.wrapper.d.ts +27 -11
- package/lib/components/scroller.wrapper.js +3 -3
- package/lib/components/segmented-control-item.wrapper.d.ts +5 -5
- package/lib/components/segmented-control.wrapper.d.ts +12 -4
- package/lib/components/segmented-control.wrapper.js +2 -1
- package/lib/components/select-wrapper.wrapper.d.ts +7 -7
- package/lib/components/spinner.wrapper.d.ts +2 -2
- package/lib/components/stepper-horizontal-item.wrapper.d.ts +5 -5
- package/lib/components/stepper-horizontal.wrapper.d.ts +13 -5
- package/lib/components/stepper-horizontal.wrapper.js +2 -1
- package/lib/components/switch.wrapper.d.ts +13 -5
- package/lib/components/switch.wrapper.js +2 -1
- package/lib/components/table-body.wrapper.d.ts +2 -2
- package/lib/components/table-cell.wrapper.d.ts +2 -2
- package/lib/components/table-head-cell.wrapper.d.ts +2 -2
- package/lib/components/table-head-row.wrapper.d.ts +2 -2
- package/lib/components/table-head.wrapper.d.ts +2 -2
- package/lib/components/table-row.wrapper.d.ts +2 -2
- package/lib/components/table.wrapper.d.ts +13 -5
- package/lib/components/table.wrapper.js +2 -1
- package/lib/components/tabs-bar.wrapper.d.ts +27 -11
- package/lib/components/tabs-bar.wrapper.js +4 -3
- package/lib/components/tabs-item.wrapper.d.ts +2 -2
- package/lib/components/tabs.wrapper.d.ts +27 -11
- package/lib/components/tabs.wrapper.js +4 -3
- package/lib/components/tag-dismissible.wrapper.d.ts +2 -2
- package/lib/components/tag.wrapper.d.ts +5 -5
- package/lib/components/text-field-wrapper.wrapper.d.ts +17 -9
- package/lib/components/text-field-wrapper.wrapper.js +3 -3
- package/lib/components/text-list-item.wrapper.d.ts +2 -2
- package/lib/components/text-list.wrapper.d.ts +19 -11
- package/lib/components/text-list.wrapper.js +3 -3
- package/lib/components/text.wrapper.d.ts +2 -2
- package/lib/components/textarea-wrapper.wrapper.d.ts +15 -7
- package/lib/components/textarea-wrapper.wrapper.js +3 -3
- package/lib/components/toast.wrapper.d.ts +2 -2
- package/lib/types.d.ts +95 -30
- package/package.json +2 -2
- package/ssr/components/dist/styles/esm/styles-entry.js +362 -2323
- package/ssr/components/dist/utils/esm/utils-entry.js +151 -2046
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/accordion.wrapper.js +2 -1
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/banner.wrapper.js +4 -4
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/carousel.wrapper.js +5 -4
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/divider.wrapper.js +4 -4
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/link-social.wrapper.js +1 -1
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/link-tile.wrapper.js +1 -1
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/modal.wrapper.js +5 -4
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/pagination.wrapper.js +5 -4
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/scroller.wrapper.js +4 -4
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/segmented-control.wrapper.js +2 -1
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/stepper-horizontal.wrapper.js +2 -1
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/switch.wrapper.js +2 -1
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/table.wrapper.js +2 -1
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/tabs-bar.wrapper.js +5 -4
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/tabs.wrapper.js +5 -4
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/text-field-wrapper.wrapper.js +4 -4
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/text-list.wrapper.js +4 -4
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/textarea-wrapper.wrapper.js +4 -4
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/banner.js +2 -1
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button-pure.js +1 -1
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button.js +1 -1
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/carousel.js +8 -2
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/display.js +1 -1
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/divider.js +6 -1
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/heading.js +1 -1
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/headline.js +1 -1
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/icon.js +9 -2
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-social.js +1 -1
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-tile.js +7 -12
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/marque.js +1 -1
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/modal.js +6 -2
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/pagination.js +14 -4
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/scroller.js +6 -2
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/select-wrapper.js +1 -1
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/stepper-horizontal-item.js +1 -1
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tabs-bar.js +5 -2
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tabs.js +1 -1
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tag-dismissible.js +4 -1
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tag.js +9 -1
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/text-field-wrapper.js +13 -7
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/text-list.js +3 -3
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/text.js +14 -2
- package/ssr/esm/components/dist/styles/esm/styles-entry.js +362 -2323
- package/ssr/esm/components/dist/utils/esm/utils-entry.js +150 -2047
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/accordion.wrapper.js +2 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/banner.wrapper.js +4 -4
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/carousel.wrapper.js +5 -4
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/divider.wrapper.js +4 -4
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/link-social.wrapper.js +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/link-tile.wrapper.js +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/modal.wrapper.js +5 -4
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/pagination.wrapper.js +5 -4
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/scroller.wrapper.js +4 -4
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/segmented-control.wrapper.js +2 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/stepper-horizontal.wrapper.js +2 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/switch.wrapper.js +2 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/table.wrapper.js +2 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/tabs-bar.wrapper.js +5 -4
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/tabs.wrapper.js +5 -4
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/text-field-wrapper.wrapper.js +4 -4
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/text-list.wrapper.js +4 -4
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/textarea-wrapper.wrapper.js +4 -4
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/banner.js +2 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button-pure.js +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button.js +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/carousel.js +8 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/display.js +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/divider.js +6 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/heading.js +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/headline.js +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/icon.js +9 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-social.js +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-tile.js +8 -13
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/marque.js +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/modal.js +6 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/pagination.js +14 -4
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/scroller.js +6 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/select-wrapper.js +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/stepper-horizontal-item.js +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tabs-bar.js +5 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tabs.js +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tag-dismissible.js +4 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tag.js +9 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/text-field-wrapper.js +14 -8
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/text-list.js +3 -3
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/text.js +14 -2
- package/ssr/lib/components/accordion.wrapper.d.ts +12 -4
- package/ssr/lib/components/banner.wrapper.d.ts +18 -2
- package/ssr/lib/components/button-group.wrapper.d.ts +2 -2
- package/ssr/lib/components/button-pure.wrapper.d.ts +15 -15
- package/ssr/lib/components/button.wrapper.d.ts +5 -5
- package/ssr/lib/components/carousel.wrapper.d.ts +22 -6
- package/ssr/lib/components/checkbox-wrapper.wrapper.d.ts +5 -5
- package/ssr/lib/components/content-wrapper.wrapper.d.ts +2 -2
- package/ssr/lib/components/display.wrapper.d.ts +2 -2
- package/ssr/lib/components/divider.wrapper.d.ts +13 -5
- package/ssr/lib/components/fieldset-wrapper.wrapper.d.ts +5 -5
- package/ssr/lib/components/flex-item.wrapper.d.ts +2 -2
- package/ssr/lib/components/flex.wrapper.d.ts +2 -2
- package/ssr/lib/components/grid-item.wrapper.d.ts +2 -2
- package/ssr/lib/components/grid.wrapper.d.ts +2 -2
- package/ssr/lib/components/heading.wrapper.d.ts +2 -2
- package/ssr/lib/components/headline.wrapper.d.ts +2 -2
- package/ssr/lib/components/icon.wrapper.d.ts +2 -2
- package/ssr/lib/components/inline-notification.wrapper.d.ts +5 -5
- package/ssr/lib/components/link-pure.wrapper.d.ts +15 -15
- package/ssr/lib/components/link-social.wrapper.d.ts +8 -8
- package/ssr/lib/components/link-tile.wrapper.d.ts +7 -7
- package/ssr/lib/components/link.wrapper.d.ts +5 -5
- package/ssr/lib/components/marque.wrapper.d.ts +5 -5
- package/ssr/lib/components/modal.wrapper.d.ts +22 -6
- package/ssr/lib/components/model-signature.wrapper.d.ts +2 -2
- package/ssr/lib/components/pagination.wrapper.d.ts +31 -15
- package/ssr/lib/components/popover.wrapper.d.ts +5 -5
- package/ssr/lib/components/radio-button-wrapper.wrapper.d.ts +5 -5
- package/ssr/lib/components/scroller.wrapper.d.ts +27 -11
- package/ssr/lib/components/segmented-control-item.wrapper.d.ts +5 -5
- package/ssr/lib/components/segmented-control.wrapper.d.ts +12 -4
- package/ssr/lib/components/select-wrapper.wrapper.d.ts +7 -7
- package/ssr/lib/components/spinner.wrapper.d.ts +2 -2
- package/ssr/lib/components/stepper-horizontal-item.wrapper.d.ts +5 -5
- package/ssr/lib/components/stepper-horizontal.wrapper.d.ts +13 -5
- package/ssr/lib/components/switch.wrapper.d.ts +13 -5
- package/ssr/lib/components/table-body.wrapper.d.ts +2 -2
- package/ssr/lib/components/table-cell.wrapper.d.ts +2 -2
- package/ssr/lib/components/table-head-cell.wrapper.d.ts +2 -2
- package/ssr/lib/components/table-head-row.wrapper.d.ts +2 -2
- package/ssr/lib/components/table-head.wrapper.d.ts +2 -2
- package/ssr/lib/components/table-row.wrapper.d.ts +2 -2
- package/ssr/lib/components/table.wrapper.d.ts +13 -5
- package/ssr/lib/components/tabs-bar.wrapper.d.ts +27 -11
- package/ssr/lib/components/tabs-item.wrapper.d.ts +2 -2
- package/ssr/lib/components/tabs.wrapper.d.ts +27 -11
- package/ssr/lib/components/tag-dismissible.wrapper.d.ts +2 -2
- package/ssr/lib/components/tag.wrapper.d.ts +5 -5
- package/ssr/lib/components/text-field-wrapper.wrapper.d.ts +17 -9
- package/ssr/lib/components/text-list-item.wrapper.d.ts +2 -2
- package/ssr/lib/components/text-list.wrapper.d.ts +19 -11
- package/ssr/lib/components/text.wrapper.d.ts +2 -2
- package/ssr/lib/components/textarea-wrapper.wrapper.d.ts +15 -7
- package/ssr/lib/components/toast.wrapper.d.ts +2 -2
- package/ssr/lib/dsr-components/carousel.d.ts +1 -1
- package/ssr/lib/dsr-components/link-social.d.ts +1 -1
- package/ssr/lib/dsr-components/modal.d.ts +2 -1
- package/ssr/lib/dsr-components/text-field-wrapper.d.ts +2 -0
- package/ssr/lib/types.d.ts +95 -30
|
@@ -103,19 +103,19 @@ const fontStyleNormal = 'normal';
|
|
|
103
103
|
|
|
104
104
|
const fontVariant = 'normal';
|
|
105
105
|
|
|
106
|
-
const breakpointBase =
|
|
106
|
+
const breakpointBase = 0;
|
|
107
107
|
|
|
108
|
-
const breakpointXS =
|
|
108
|
+
const breakpointXS = 480;
|
|
109
109
|
|
|
110
|
-
const breakpointS =
|
|
110
|
+
const breakpointS = 760;
|
|
111
111
|
|
|
112
|
-
const breakpointM =
|
|
112
|
+
const breakpointM = 1000;
|
|
113
113
|
|
|
114
|
-
const breakpointL =
|
|
114
|
+
const breakpointL = 1300;
|
|
115
115
|
|
|
116
|
-
const breakpointXL =
|
|
116
|
+
const breakpointXL = 1760;
|
|
117
117
|
|
|
118
|
-
const breakpointXXL =
|
|
118
|
+
const breakpointXXL = 1920;
|
|
119
119
|
|
|
120
120
|
const breakpoint = {
|
|
121
121
|
base: breakpointBase,
|
|
@@ -128,83 +128,9 @@ const breakpoint = {
|
|
|
128
128
|
};
|
|
129
129
|
|
|
130
130
|
function getMediaQueryMin(min) {
|
|
131
|
-
return `@media(min-width:${breakpoint[min]})`;
|
|
131
|
+
return `@media(min-width:${breakpoint[min]}px)`;
|
|
132
132
|
}
|
|
133
133
|
|
|
134
|
-
const spacingFluidMedium = 'clamp(16px, 1.25vw + 12px, 36px)';
|
|
135
|
-
|
|
136
|
-
const gridGap = spacingFluidMedium;
|
|
137
|
-
|
|
138
|
-
const gridWidthMin = '320px';
|
|
139
|
-
|
|
140
|
-
const gridWidthMax = '2560px';
|
|
141
|
-
|
|
142
|
-
// fluid sizing calculated by https://fluidtypography.com/#app-get-started
|
|
143
|
-
// gridSafeZoneBase: Viewport Width Range = 320 - 1920px / Size Range = 22 - 192px
|
|
144
|
-
const gridSafeZoneBase = 'clamp(22px, 10.625vw - 12px, 192px)';
|
|
145
|
-
|
|
146
|
-
// fluid sizing calculated by https://fluidtypography.com/#app-get-started
|
|
147
|
-
// gridSafeZoneXXL: Viewport Width Range = 1920 - 2560px / Size Range = 192 - 512px
|
|
148
|
-
const gridSafeZoneXXL = 'clamp(192px, 50vw - 768px, 512px)';
|
|
149
|
-
|
|
150
|
-
const gridFullColumnStart = 'full-start';
|
|
151
|
-
|
|
152
|
-
const gridExtendedColumnStart = 'extended-start';
|
|
153
|
-
|
|
154
|
-
const gridBasicColumnStart = 'basic-start';
|
|
155
|
-
|
|
156
|
-
const gridNarrowColumnStart = 'narrow-start';
|
|
157
|
-
|
|
158
|
-
const gridNarrowColumnEnd = 'narrow-end';
|
|
159
|
-
|
|
160
|
-
const gridBasicColumnEnd = 'basic-end';
|
|
161
|
-
|
|
162
|
-
const gridExtendedColumnEnd = 'extended-end';
|
|
163
|
-
|
|
164
|
-
const gridFullColumnEnd = 'full-end';
|
|
165
|
-
|
|
166
|
-
const _cssVariableGridExtendedSpanOneHalf = '--pds-grid-extended-span-one-half';
|
|
167
|
-
const _cssVariableGridBasicSpanOneHalf = '--pds-grid-basic-span-one-half';
|
|
168
|
-
const _cssVariableGridBasicSpanOneThird = '--pds-grid-basic-span-one-third';
|
|
169
|
-
const _cssVariableGridBasicSpanTwoThirds = '--pds-grid-basic-span-two-thirds';
|
|
170
|
-
const _cssVariableGridNarrowSpanOneHalf = '--pds-grid-narrow-span-one-half';
|
|
171
|
-
const _cssVariableGridSafeZone = '--pds-internal-grid-safe-zone';
|
|
172
|
-
|
|
173
|
-
const outerColumn = `minmax(0, calc(var(${_cssVariableGridSafeZone}) - ${gridGap}))`;
|
|
174
|
-
const column = 'minmax(0, 1fr)';
|
|
175
|
-
const getColumns = (repeat) => (repeat > 1 ? `repeat(${repeat}, ${column})` : column);
|
|
176
|
-
const getColumnSpan = (span) => `span ${span}`;
|
|
177
|
-
const getGridTemplateColumns = (layout) => layout === 'mobile'
|
|
178
|
-
? `[${gridFullColumnStart}] ${outerColumn} [${gridExtendedColumnStart} ${gridBasicColumnStart} ${gridNarrowColumnStart}] ${getColumns(6)} [${gridNarrowColumnEnd} ${gridBasicColumnEnd} ${gridExtendedColumnEnd}] ${outerColumn} [${gridFullColumnEnd}]`
|
|
179
|
-
: `[${gridFullColumnStart}] ${outerColumn} [${gridExtendedColumnStart}] ${getColumns(1)} [${gridBasicColumnStart}] ${getColumns(2)} [${gridNarrowColumnStart}] ${getColumns(8)} [${gridNarrowColumnEnd}] ${getColumns(2)} [${gridBasicColumnEnd}] ${getColumns(1)} [${gridExtendedColumnEnd}] ${outerColumn} [${gridFullColumnEnd}]`;
|
|
180
|
-
({
|
|
181
|
-
[_cssVariableGridSafeZone]: gridSafeZoneBase,
|
|
182
|
-
[_cssVariableGridExtendedSpanOneHalf]: getColumnSpan(3),
|
|
183
|
-
[_cssVariableGridBasicSpanOneHalf]: getColumnSpan(3),
|
|
184
|
-
[_cssVariableGridBasicSpanOneThird]: getColumnSpan(2),
|
|
185
|
-
[_cssVariableGridBasicSpanTwoThirds]: getColumnSpan(4),
|
|
186
|
-
[_cssVariableGridNarrowSpanOneHalf]: getColumnSpan(3),
|
|
187
|
-
display: 'grid',
|
|
188
|
-
gridGap,
|
|
189
|
-
gridTemplateColumns: getGridTemplateColumns('mobile'),
|
|
190
|
-
minWidth: gridWidthMin,
|
|
191
|
-
maxWidth: gridWidthMax,
|
|
192
|
-
margin: 0,
|
|
193
|
-
padding: `0 calc(50% - ${gridWidthMax} / 2)`,
|
|
194
|
-
boxSizing: 'content-box',
|
|
195
|
-
[getMediaQueryMin('s')]: {
|
|
196
|
-
[_cssVariableGridExtendedSpanOneHalf]: getColumnSpan(7),
|
|
197
|
-
[_cssVariableGridBasicSpanOneHalf]: getColumnSpan(6),
|
|
198
|
-
[_cssVariableGridBasicSpanOneThird]: getColumnSpan(4),
|
|
199
|
-
[_cssVariableGridBasicSpanTwoThirds]: getColumnSpan(8),
|
|
200
|
-
[_cssVariableGridNarrowSpanOneHalf]: getColumnSpan(4),
|
|
201
|
-
gridTemplateColumns: getGridTemplateColumns('desktop'),
|
|
202
|
-
},
|
|
203
|
-
[getMediaQueryMin('xxl')]: {
|
|
204
|
-
[_cssVariableGridSafeZone]: gridSafeZoneXXL,
|
|
205
|
-
},
|
|
206
|
-
});
|
|
207
|
-
|
|
208
134
|
const _textFontPartA = `${fontStyleNormal} ${fontVariant} ${fontWeightRegular} `;
|
|
209
135
|
const _textFontPartB = `/${fontLineHeight} ${fontFamily}`;
|
|
210
136
|
|
|
@@ -221,10 +147,10 @@ const textSmallStyle = {
|
|
|
221
147
|
// TODO: we shouldn't exclude xxl breakpoint
|
|
222
148
|
const mediaQueries = Object.entries(breakpoint)
|
|
223
149
|
.filter(([key]) => key !== 'xxl')
|
|
224
|
-
.map(([, val]) => `(min-width:${val})`);
|
|
150
|
+
.map(([, val]) => `(min-width:${val}px)`);
|
|
225
151
|
hasWindow && window.matchMedia ? mediaQueries.map(window.matchMedia) : [];
|
|
226
152
|
|
|
227
|
-
Object.entries(breakpoint).reduce((result, [key, val]) => (Object.assign(Object.assign({}, result), { [val]: key })), {});
|
|
153
|
+
Object.entries(breakpoint).reduce((result, [key, val]) => (Object.assign(Object.assign({}, result), { [`${val}px`]: key })), {});
|
|
228
154
|
|
|
229
155
|
const hasVisibleIcon = (iconName, iconSource) => {
|
|
230
156
|
return iconName !== 'none' || !!iconSource;
|
|
@@ -437,12 +363,6 @@ var _typeof$1 = typeof Symbol === "function" && typeof Symbol.iterator === "symb
|
|
|
437
363
|
|
|
438
364
|
var isBrowser = (typeof window === "undefined" ? "undefined" : _typeof$1(window)) === "object" && (typeof document === "undefined" ? "undefined" : _typeof$1(document)) === 'object' && document.nodeType === 9;
|
|
439
365
|
|
|
440
|
-
var module$1 = /*#__PURE__*/Object.freeze({
|
|
441
|
-
__proto__: null,
|
|
442
|
-
default: isBrowser,
|
|
443
|
-
isBrowser: isBrowser
|
|
444
|
-
});
|
|
445
|
-
|
|
446
366
|
var isProduction = process.env.NODE_ENV === 'production';
|
|
447
367
|
function warning(condition, message) {
|
|
448
368
|
if (!isProduction) {
|
|
@@ -990,7 +910,7 @@ function () {
|
|
|
990
910
|
|
|
991
911
|
return ConditionalRule;
|
|
992
912
|
}();
|
|
993
|
-
var keyRegExp = /@media|@supports\s+/;
|
|
913
|
+
var keyRegExp = /@container|@media|@supports\s+/;
|
|
994
914
|
var pluginConditionalRule = {
|
|
995
915
|
onCreateRule: function onCreateRule(key, styles, options) {
|
|
996
916
|
return keyRegExp.test(key) ? new ConditionalRule(key, styles, options) : null;
|
|
@@ -1287,7 +1207,7 @@ var pluginSimpleRule = {
|
|
|
1287
1207
|
}
|
|
1288
1208
|
};
|
|
1289
1209
|
|
|
1290
|
-
var plugins
|
|
1210
|
+
var plugins = [pluginStyleRule, pluginConditionalRule, pluginKeyframesRule, pluginKeyframeRule, pluginFontFaceRule, pluginViewportRule, pluginSimpleRule];
|
|
1291
1211
|
|
|
1292
1212
|
var defaultUpdateOptions = {
|
|
1293
1213
|
process: true
|
|
@@ -2554,7 +2474,7 @@ var Jss =
|
|
|
2554
2474
|
function () {
|
|
2555
2475
|
function Jss(options) {
|
|
2556
2476
|
this.id = instanceCounter++;
|
|
2557
|
-
this.version = "10.
|
|
2477
|
+
this.version = "10.10.0";
|
|
2558
2478
|
this.plugins = new PluginsRegistry();
|
|
2559
2479
|
this.options = {
|
|
2560
2480
|
id: {
|
|
@@ -2568,8 +2488,8 @@ function () {
|
|
|
2568
2488
|
minify: false
|
|
2569
2489
|
});
|
|
2570
2490
|
|
|
2571
|
-
for (var i = 0; i < plugins
|
|
2572
|
-
this.plugins.use(plugins
|
|
2491
|
+
for (var i = 0; i < plugins.length; i++) {
|
|
2492
|
+
this.plugins.use(plugins[i], {
|
|
2573
2493
|
queue: 'internal'
|
|
2574
2494
|
});
|
|
2575
2495
|
}
|
|
@@ -2834,54 +2754,24 @@ var jss_esm = /*#__PURE__*/Object.freeze({
|
|
|
2834
2754
|
toCssValue: toCssValue
|
|
2835
2755
|
});
|
|
2836
2756
|
|
|
2837
|
-
function getAugmentedNamespace(n) {
|
|
2838
|
-
if (n.__esModule) return n;
|
|
2839
|
-
var f = n.default;
|
|
2840
|
-
if (typeof f == "function") {
|
|
2841
|
-
var a = function a () {
|
|
2842
|
-
if (this instanceof a) {
|
|
2843
|
-
var args = [null];
|
|
2844
|
-
args.push.apply(args, arguments);
|
|
2845
|
-
var Ctor = Function.bind.apply(f, args);
|
|
2846
|
-
return new Ctor();
|
|
2847
|
-
}
|
|
2848
|
-
return f.apply(this, arguments);
|
|
2849
|
-
};
|
|
2850
|
-
a.prototype = f.prototype;
|
|
2851
|
-
} else a = {};
|
|
2852
|
-
Object.defineProperty(a, '__esModule', {value: true});
|
|
2853
|
-
Object.keys(n).forEach(function (k) {
|
|
2854
|
-
var d = Object.getOwnPropertyDescriptor(n, k);
|
|
2855
|
-
Object.defineProperty(a, k, d.get ? d : {
|
|
2856
|
-
enumerable: true,
|
|
2857
|
-
get: function () {
|
|
2858
|
-
return n[k];
|
|
2859
|
-
}
|
|
2860
|
-
});
|
|
2861
|
-
});
|
|
2862
|
-
return a;
|
|
2863
|
-
}
|
|
2864
|
-
|
|
2865
2757
|
/* eslint-disable no-var, prefer-template */
|
|
2866
2758
|
var uppercasePattern = /[A-Z]/g;
|
|
2867
2759
|
var msPattern = /^ms-/;
|
|
2868
|
-
var cache
|
|
2760
|
+
var cache = {};
|
|
2869
2761
|
|
|
2870
2762
|
function toHyphenLower(match) {
|
|
2871
2763
|
return '-' + match.toLowerCase()
|
|
2872
2764
|
}
|
|
2873
2765
|
|
|
2874
2766
|
function hyphenateStyleName(name) {
|
|
2875
|
-
if (cache
|
|
2876
|
-
return cache
|
|
2767
|
+
if (cache.hasOwnProperty(name)) {
|
|
2768
|
+
return cache[name]
|
|
2877
2769
|
}
|
|
2878
2770
|
|
|
2879
2771
|
var hName = name.replace(uppercasePattern, toHyphenLower);
|
|
2880
|
-
return (cache
|
|
2772
|
+
return (cache[name] = msPattern.test(hName) ? '-' + hName : hName)
|
|
2881
2773
|
}
|
|
2882
2774
|
|
|
2883
|
-
var index_cjs = hyphenateStyleName;
|
|
2884
|
-
|
|
2885
2775
|
/**
|
|
2886
2776
|
* Convert camel cased property names to dash separated.
|
|
2887
2777
|
*/
|
|
@@ -2890,7 +2780,7 @@ function convertCase(style) {
|
|
|
2890
2780
|
var converted = {};
|
|
2891
2781
|
|
|
2892
2782
|
for (var prop in style) {
|
|
2893
|
-
var key = prop.indexOf('--') === 0 ? prop :
|
|
2783
|
+
var key = prop.indexOf('--') === 0 ? prop : hyphenateStyleName(prop);
|
|
2894
2784
|
converted[key] = style[prop];
|
|
2895
2785
|
}
|
|
2896
2786
|
|
|
@@ -2924,7 +2814,7 @@ function camelCase() {
|
|
|
2924
2814
|
return value;
|
|
2925
2815
|
}
|
|
2926
2816
|
|
|
2927
|
-
var hyphenatedProp =
|
|
2817
|
+
var hyphenatedProp = hyphenateStyleName(prop); // There was no camel case in place
|
|
2928
2818
|
|
|
2929
2819
|
if (prop === hyphenatedProp) return value;
|
|
2930
2820
|
rule.prop(hyphenatedProp, value); // Core will ignore that property value we set the proper one above.
|
|
@@ -3229,6 +3119,34 @@ function jssNested() {
|
|
|
3229
3119
|
};
|
|
3230
3120
|
}
|
|
3231
3121
|
|
|
3122
|
+
function getAugmentedNamespace(n) {
|
|
3123
|
+
if (n.__esModule) return n;
|
|
3124
|
+
var f = n.default;
|
|
3125
|
+
if (typeof f == "function") {
|
|
3126
|
+
var a = function a () {
|
|
3127
|
+
if (this instanceof a) {
|
|
3128
|
+
var args = [null];
|
|
3129
|
+
args.push.apply(args, arguments);
|
|
3130
|
+
var Ctor = Function.bind.apply(f, args);
|
|
3131
|
+
return new Ctor();
|
|
3132
|
+
}
|
|
3133
|
+
return f.apply(this, arguments);
|
|
3134
|
+
};
|
|
3135
|
+
a.prototype = f.prototype;
|
|
3136
|
+
} else a = {};
|
|
3137
|
+
Object.defineProperty(a, '__esModule', {value: true});
|
|
3138
|
+
Object.keys(n).forEach(function (k) {
|
|
3139
|
+
var d = Object.getOwnPropertyDescriptor(n, k);
|
|
3140
|
+
Object.defineProperty(a, k, d.get ? d : {
|
|
3141
|
+
enumerable: true,
|
|
3142
|
+
get: function () {
|
|
3143
|
+
return n[k];
|
|
3144
|
+
}
|
|
3145
|
+
});
|
|
3146
|
+
});
|
|
3147
|
+
return a;
|
|
3148
|
+
}
|
|
3149
|
+
|
|
3232
3150
|
var _tslib$1 = {};
|
|
3233
3151
|
|
|
3234
3152
|
(function (exports) {
|
|
@@ -3637,10 +3555,10 @@ const themeLight = {
|
|
|
3637
3555
|
contrastHighColor: '#535457',
|
|
3638
3556
|
contrastHighColorDarken: '#353638',
|
|
3639
3557
|
contrastHighColorLighten: '#717276',
|
|
3640
|
-
hoverColor: 'rgba(148, 149, 152,
|
|
3558
|
+
hoverColor: 'rgba(148, 149, 152, .18)',
|
|
3641
3559
|
hoverColorDarken: '#75767A',
|
|
3642
3560
|
activeColor: 'rgba(148, 149, 152, 0.20)',
|
|
3643
|
-
focusColor: '#
|
|
3561
|
+
focusColor: '#1A44EA',
|
|
3644
3562
|
disabledColor: '#949598',
|
|
3645
3563
|
errorColor: '#E7323B',
|
|
3646
3564
|
errorColorDarken: '#C51720',
|
|
@@ -3675,10 +3593,10 @@ const themeDark = {
|
|
|
3675
3593
|
contrastHighColor: '#AFB0B3',
|
|
3676
3594
|
contrastHighColorDarken: '#909195',
|
|
3677
3595
|
contrastHighColorLighten: '#CECFD1',
|
|
3678
|
-
hoverColor: 'rgba(
|
|
3679
|
-
hoverColorDarken: '#
|
|
3596
|
+
hoverColor: 'rgba(148, 149, 152, .18)',
|
|
3597
|
+
hoverColorDarken: '#75767A',
|
|
3680
3598
|
activeColor: 'rgba(126, 127, 130, 0.20)',
|
|
3681
|
-
focusColor: '#
|
|
3599
|
+
focusColor: '#1A44EA',
|
|
3682
3600
|
disabledColor: '#7E7F82',
|
|
3683
3601
|
errorColor: '#CB3333',
|
|
3684
3602
|
errorColorDarken: '#9A2727',
|
|
@@ -3728,1935 +3646,109 @@ const supportsConstructableStylesheets = () => {
|
|
|
3728
3646
|
};
|
|
3729
3647
|
// determine it once
|
|
3730
3648
|
supportsConstructableStylesheets();
|
|
3731
|
-
|
|
3732
|
-
|
|
3733
|
-
{ name: 'Model', id: 'model' },
|
|
3734
|
-
{ name: 'Interest', id: 'interest' },
|
|
3735
|
-
{ name: 'VIN', id: 'vin' },
|
|
3736
|
-
{ name: 'Purchase Intention', id: 'purchaseIntention' },
|
|
3737
|
-
{ name: 'Status', id: 'status' },
|
|
3738
|
-
{ name: 'Comment', id: 'comment' },
|
|
3739
|
-
{ name: 'Lead ID', id: 'leadId' },
|
|
3740
|
-
{ name: 'Action', id: 'action', hideLabel: true },
|
|
3741
|
-
].map((item, i) => ({
|
|
3742
|
-
...item,
|
|
3743
|
-
...(i > 0 &&
|
|
3744
|
-
i < 7 &&
|
|
3745
|
-
i !== 5 && {
|
|
3746
|
-
active: i === 1,
|
|
3747
|
-
direction: 'asc',
|
|
3748
|
-
}),
|
|
3749
|
-
}));
|
|
3750
|
-
|
|
3751
|
-
[
|
|
3752
|
-
{ name: 'Column 1', id: 'col1' },
|
|
3753
|
-
{ name: 'Column 2', id: 'col2' },
|
|
3754
|
-
{ name: 'Column 3', id: 'col3' },
|
|
3755
|
-
].map((item, i) => ({
|
|
3756
|
-
...item,
|
|
3757
|
-
active: i === 1,
|
|
3758
|
-
direction: 'asc',
|
|
3759
|
-
}));
|
|
3760
|
-
|
|
3761
|
-
Array.from(Array(4)).map(() => ({
|
|
3762
|
-
imageUrl: 'https://nav.porsche.com/00BC524/series-assets/1366/911@2x.jpg',
|
|
3763
|
-
imageWidth: 80,
|
|
3764
|
-
imageHeight: 48,
|
|
3765
|
-
html: "<a href='#'>link</a> <b>bold</b> <i>italic</i> <strong>strong</strong> <em>emphasized</em>",
|
|
3766
|
-
longText: 'Lorem ipsum dolor sit amet, consetetur sadipscing elitr',
|
|
3767
|
-
shortText: 'Some text',
|
|
3768
|
-
}));
|
|
3769
|
-
|
|
3770
|
-
var now = Date.now();
|
|
3771
|
-
var fnValuesNs = "fnValues" + now;
|
|
3772
|
-
var fnRuleNs = "fnStyle" + ++now;
|
|
3773
|
-
|
|
3774
|
-
var functionPlugin = function functionPlugin() {
|
|
3775
|
-
return {
|
|
3776
|
-
onCreateRule: function onCreateRule(name, decl, options) {
|
|
3777
|
-
if (typeof decl !== 'function') return null;
|
|
3778
|
-
var rule = createRule(name, {}, options);
|
|
3779
|
-
rule[fnRuleNs] = decl;
|
|
3780
|
-
return rule;
|
|
3781
|
-
},
|
|
3782
|
-
onProcessStyle: function onProcessStyle(style, rule) {
|
|
3783
|
-
// We need to extract function values from the declaration, so that we can keep core unaware of them.
|
|
3784
|
-
// We need to do that only once.
|
|
3785
|
-
// We don't need to extract functions on each style update, since this can happen only once.
|
|
3786
|
-
// We don't support function values inside of function rules.
|
|
3787
|
-
if (fnValuesNs in rule || fnRuleNs in rule) return style;
|
|
3788
|
-
var fnValues = {};
|
|
3789
|
-
|
|
3790
|
-
for (var prop in style) {
|
|
3791
|
-
var value = style[prop];
|
|
3792
|
-
if (typeof value !== 'function') continue;
|
|
3793
|
-
delete style[prop];
|
|
3794
|
-
fnValues[prop] = value;
|
|
3795
|
-
}
|
|
3796
|
-
|
|
3797
|
-
rule[fnValuesNs] = fnValues;
|
|
3798
|
-
return style;
|
|
3799
|
-
},
|
|
3800
|
-
onUpdate: function onUpdate(data, rule, sheet, options) {
|
|
3801
|
-
var styleRule = rule;
|
|
3802
|
-
var fnRule = styleRule[fnRuleNs]; // If we have a style function, the entire rule is dynamic and style object
|
|
3803
|
-
// will be returned from that function.
|
|
3804
|
-
|
|
3805
|
-
if (fnRule) {
|
|
3806
|
-
// Empty object will remove all currently defined props
|
|
3807
|
-
// in case function rule returns a falsy value.
|
|
3808
|
-
styleRule.style = fnRule(data) || {};
|
|
3809
|
-
|
|
3810
|
-
if (process.env.NODE_ENV === 'development') {
|
|
3811
|
-
for (var prop in styleRule.style) {
|
|
3812
|
-
if (typeof styleRule.style[prop] === 'function') {
|
|
3813
|
-
process.env.NODE_ENV !== "production" ? warning(false, '[JSS] Function values inside function rules are not supported.') : void 0;
|
|
3814
|
-
break;
|
|
3815
|
-
}
|
|
3816
|
-
}
|
|
3817
|
-
}
|
|
3818
|
-
}
|
|
3819
|
-
|
|
3820
|
-
var fnValues = styleRule[fnValuesNs]; // If we have a fn values map, it is a rule with function values.
|
|
3821
|
-
|
|
3822
|
-
if (fnValues) {
|
|
3823
|
-
for (var _prop in fnValues) {
|
|
3824
|
-
styleRule.prop(_prop, fnValues[_prop](data), options);
|
|
3825
|
-
}
|
|
3826
|
-
}
|
|
3827
|
-
}
|
|
3828
|
-
};
|
|
3649
|
+
const isScrollable = (isPrevHidden, isNextHidden) => {
|
|
3650
|
+
return !(isPrevHidden && isNextHidden);
|
|
3829
3651
|
};
|
|
3830
3652
|
|
|
3831
|
-
|
|
3832
|
-
var result;
|
|
3833
|
-
var Symbol = root.Symbol;
|
|
3834
|
-
|
|
3835
|
-
if (typeof Symbol === 'function') {
|
|
3836
|
-
if (Symbol.observable) {
|
|
3837
|
-
result = Symbol.observable;
|
|
3838
|
-
} else {
|
|
3839
|
-
result = Symbol('observable');
|
|
3840
|
-
Symbol.observable = result;
|
|
3841
|
-
}
|
|
3842
|
-
} else {
|
|
3843
|
-
result = '@@observable';
|
|
3844
|
-
}
|
|
3845
|
-
|
|
3846
|
-
return result;
|
|
3847
|
-
}
|
|
3848
|
-
|
|
3849
|
-
/* global window */
|
|
3850
|
-
|
|
3851
|
-
var root;
|
|
3852
|
-
|
|
3853
|
-
if (typeof self !== 'undefined') {
|
|
3854
|
-
root = self;
|
|
3855
|
-
} else if (typeof window !== 'undefined') {
|
|
3856
|
-
root = window;
|
|
3857
|
-
} else if (typeof global !== 'undefined') {
|
|
3858
|
-
root = global;
|
|
3859
|
-
} else if (typeof module !== 'undefined') {
|
|
3860
|
-
root = module;
|
|
3861
|
-
} else {
|
|
3862
|
-
root = Function('return this')();
|
|
3863
|
-
}
|
|
3653
|
+
const hasDocument = typeof document !== 'undefined';
|
|
3864
3654
|
|
|
3865
|
-
|
|
3655
|
+
hasDocument && 'scrollBehavior' in document.documentElement.style;
|
|
3656
|
+
const win = typeof window !== 'undefined' ? window : {};
|
|
3657
|
+
win.document || { head: {} };
|
|
3658
|
+
(win.HTMLElement || class {
|
|
3659
|
+
});
|
|
3866
3660
|
|
|
3867
|
-
|
|
3868
|
-
|
|
3661
|
+
const isThemeDark = (theme) => {
|
|
3662
|
+
return theme === 'dark';
|
|
3869
3663
|
};
|
|
3870
3664
|
|
|
3871
|
-
|
|
3872
|
-
|
|
3873
|
-
|
|
3874
|
-
|
|
3875
|
-
|
|
3876
|
-
|
|
3877
|
-
// Call `stream.subscribe()` returns a subscription, which should be explicitly
|
|
3878
|
-
// unsubscribed from when we know this sheet is no longer needed.
|
|
3879
|
-
|
|
3880
|
-
style$.subscribe(function (style) {
|
|
3881
|
-
for (var prop in style) {
|
|
3882
|
-
rule.prop(prop, style[prop], updateOptions);
|
|
3883
|
-
}
|
|
3884
|
-
});
|
|
3885
|
-
return rule;
|
|
3886
|
-
},
|
|
3887
|
-
onProcessRule: function onProcessRule(rule) {
|
|
3888
|
-
if (rule && rule.type !== 'style') return;
|
|
3889
|
-
var styleRule = rule;
|
|
3890
|
-
var style = styleRule.style;
|
|
3891
|
-
|
|
3892
|
-
var _loop = function _loop(prop) {
|
|
3893
|
-
var value = style[prop];
|
|
3894
|
-
if (!isObservable(value)) return "continue";
|
|
3895
|
-
delete style[prop];
|
|
3896
|
-
value.subscribe({
|
|
3897
|
-
next: function next(nextValue) {
|
|
3898
|
-
styleRule.prop(prop, nextValue, updateOptions);
|
|
3899
|
-
}
|
|
3900
|
-
});
|
|
3901
|
-
};
|
|
3902
|
-
|
|
3903
|
-
for (var prop in style) {
|
|
3904
|
-
var _ret = _loop(prop);
|
|
3905
|
-
|
|
3906
|
-
if (_ret === "continue") continue;
|
|
3907
|
-
}
|
|
3908
|
-
}
|
|
3909
|
-
};
|
|
3665
|
+
const formatObjectOutput = (value) => {
|
|
3666
|
+
return JSON.stringify(value)
|
|
3667
|
+
.replace(/"([a-zA-Z?]+)":/g, '$1:') // remove double quotes from keys
|
|
3668
|
+
.replace(/([,:{])/g, '$1 ') // add space after following: ,:{
|
|
3669
|
+
.replace(/(})/g, ' $1') // add space before following: }
|
|
3670
|
+
.replace(/^"(.+)"$/, '$1'); // remove wrapping double quotes
|
|
3910
3671
|
};
|
|
3672
|
+
'value, ' +
|
|
3673
|
+
formatObjectOutput(BREAKPOINTS.reduce((prev, key) => (Object.assign(Object.assign({}, prev), { [key + (key !== 'base' ? '?' : '')]: 'value' })), {})).replace(/"/g, '');
|
|
3911
3674
|
|
|
3912
|
-
|
|
3913
|
-
/**
|
|
3914
|
-
* Naive CSS parser.
|
|
3915
|
-
* - Supports only rule body (no selectors)
|
|
3916
|
-
* - Requires semicolon and new line after the value (except of last line)
|
|
3917
|
-
* - No nested rules support
|
|
3918
|
-
*/
|
|
3919
|
-
|
|
3920
|
-
var parse = function parse(cssText) {
|
|
3921
|
-
var style = {};
|
|
3922
|
-
var split = cssText.split(semiWithNl);
|
|
3923
|
-
|
|
3924
|
-
for (var i = 0; i < split.length; i++) {
|
|
3925
|
-
var decl = (split[i] || '').trim();
|
|
3926
|
-
if (!decl) continue;
|
|
3927
|
-
var colonIndex = decl.indexOf(':');
|
|
3928
|
-
|
|
3929
|
-
if (colonIndex === -1) {
|
|
3930
|
-
process.env.NODE_ENV !== "production" ? warning(false, "[JSS] Malformed CSS string \"" + decl + "\"") : void 0;
|
|
3931
|
-
continue;
|
|
3932
|
-
}
|
|
3933
|
-
|
|
3934
|
-
var prop = decl.substr(0, colonIndex).trim();
|
|
3935
|
-
var value = decl.substr(colonIndex + 1).trim();
|
|
3936
|
-
style[prop] = value;
|
|
3937
|
-
}
|
|
3675
|
+
const HEADING_TAGS = ['h1', 'h2', 'h3', 'h4', 'h5', 'h6'];
|
|
3938
3676
|
|
|
3939
|
-
|
|
3677
|
+
const getLinkButtonThemeForIcon = (variant, theme) => variant === 'primary' ? (isThemeDark(theme) ? 'light' : 'dark') : theme;
|
|
3678
|
+
const resizeMap = new Map();
|
|
3679
|
+
const isResizeObserverDefined = () => hasWindow && 'ResizeObserver' in window;
|
|
3680
|
+
isResizeObserverDefined() &&
|
|
3681
|
+
new ResizeObserver((entries) => {
|
|
3682
|
+
entries.forEach((resizeEntry) => { var _a; return (_a = resizeMap.get(resizeEntry.target)) === null || _a === void 0 ? void 0 : _a(resizeEntry); });
|
|
3683
|
+
});
|
|
3684
|
+
const getButtonPureAriaAttributes = (isDisabled, isLoading, aria) => {
|
|
3685
|
+
return Object.assign(Object.assign({}, parseAndGetAriaAttributes(aria)), getButtonBaseAriaAttributes(isDisabled, isLoading));
|
|
3940
3686
|
};
|
|
3941
3687
|
|
|
3942
|
-
|
|
3943
|
-
|
|
3944
|
-
rule.style = parse(rule.style);
|
|
3945
|
-
}
|
|
3688
|
+
const getButtonAriaAttributes = (isDisabled, isLoading, aria) => {
|
|
3689
|
+
return Object.assign(Object.assign({}, parseAndGetAriaAttributes(aria)), getButtonBaseAriaAttributes(isDisabled, isLoading));
|
|
3946
3690
|
};
|
|
3691
|
+
getMediaQueryMin('s');
|
|
3692
|
+
getMediaQueryMin('xxl');
|
|
3693
|
+
typeof HTMLElement !== 'undefined' && HTMLElement.prototype.hasOwnProperty('inert');
|
|
3947
3694
|
|
|
3948
|
-
|
|
3949
|
-
|
|
3950
|
-
|
|
3951
|
-
|
|
3952
|
-
|
|
3953
|
-
|
|
3954
|
-
var isObject = function isObject(obj) {
|
|
3955
|
-
return obj && typeof obj === 'object' && !Array.isArray(obj);
|
|
3695
|
+
const DISPLAY_TAGS = ['h1', 'h2', 'h3', 'h4', 'h5', 'h6'];
|
|
3696
|
+
const displaySizeToTagMap = {
|
|
3697
|
+
small: 'h3',
|
|
3698
|
+
medium: 'h2',
|
|
3699
|
+
large: 'h1',
|
|
3700
|
+
inherit: 'h1',
|
|
3956
3701
|
};
|
|
3957
|
-
|
|
3958
|
-
|
|
3959
|
-
|
|
3960
|
-
function mergeExtend(style, rule, sheet, newStyle) {
|
|
3961
|
-
var extendType = typeof style.extend; // Extend using a rule name.
|
|
3962
|
-
|
|
3963
|
-
if (extendType === 'string') {
|
|
3964
|
-
if (!sheet) return;
|
|
3965
|
-
var refRule = sheet.getRule(style.extend);
|
|
3966
|
-
if (!refRule) return;
|
|
3967
|
-
|
|
3968
|
-
if (refRule === rule) {
|
|
3969
|
-
process.env.NODE_ENV !== "production" ? warning(false, "[JSS] A rule tries to extend itself \n" + rule.toString()) : void 0;
|
|
3970
|
-
return;
|
|
3702
|
+
const getDisplayTagType = (host, size, tag) => {
|
|
3703
|
+
if (hasSpecificSlottedTag(host, DISPLAY_TAGS.join())) {
|
|
3704
|
+
return 'div';
|
|
3971
3705
|
}
|
|
3972
|
-
|
|
3973
|
-
|
|
3974
|
-
|
|
3975
|
-
if (parent) {
|
|
3976
|
-
var originalStyle = parent.rules.raw[style.extend];
|
|
3977
|
-
extend(originalStyle, rule, sheet, newStyle);
|
|
3706
|
+
else if (tag) {
|
|
3707
|
+
return tag;
|
|
3978
3708
|
}
|
|
3979
|
-
|
|
3980
|
-
|
|
3981
|
-
} // Extend using an array.
|
|
3982
|
-
|
|
3983
|
-
|
|
3984
|
-
if (Array.isArray(style.extend)) {
|
|
3985
|
-
for (var index = 0; index < style.extend.length; index++) {
|
|
3986
|
-
var singleExtend = style.extend[index];
|
|
3987
|
-
var singleStyle = typeof singleExtend === 'string' ? _extends({}, style, {
|
|
3988
|
-
extend: singleExtend
|
|
3989
|
-
}) : style.extend[index];
|
|
3990
|
-
extend(singleStyle, rule, sheet, newStyle);
|
|
3709
|
+
else {
|
|
3710
|
+
return displaySizeToTagMap[size] || 'h1';
|
|
3991
3711
|
}
|
|
3992
|
-
|
|
3993
|
-
|
|
3994
|
-
|
|
3995
|
-
|
|
3996
|
-
|
|
3997
|
-
|
|
3998
|
-
|
|
3999
|
-
|
|
4000
|
-
|
|
3712
|
+
};
|
|
3713
|
+
const headingSizeToTagMap = {
|
|
3714
|
+
small: 'h6',
|
|
3715
|
+
medium: 'h5',
|
|
3716
|
+
large: 'h4',
|
|
3717
|
+
'x-large': 'h3',
|
|
3718
|
+
'xx-large': 'h2',
|
|
3719
|
+
inherit: 'h2',
|
|
3720
|
+
};
|
|
3721
|
+
const getHeadingTagType = (host, size, tag) => {
|
|
3722
|
+
if (hasSpecificSlottedTag(host, HEADING_TAGS.join())) {
|
|
3723
|
+
return 'div';
|
|
4001
3724
|
}
|
|
4002
|
-
|
|
4003
|
-
|
|
4004
|
-
if (!(prop in newStyle)) newStyle[prop] = {};
|
|
4005
|
-
extend(style.extend[prop], rule, sheet, newStyle[prop]);
|
|
4006
|
-
continue;
|
|
3725
|
+
else if (tag) {
|
|
3726
|
+
return tag;
|
|
4007
3727
|
}
|
|
4008
|
-
|
|
4009
|
-
|
|
4010
|
-
}
|
|
4011
|
-
}
|
|
4012
|
-
|
|
4013
|
-
function mergeRest(style, rule, sheet, newStyle) {
|
|
4014
|
-
// Copy base style.
|
|
4015
|
-
for (var prop in style) {
|
|
4016
|
-
if (prop === 'extend') continue;
|
|
4017
|
-
|
|
4018
|
-
if (isObject(newStyle[prop]) && isObject(style[prop])) {
|
|
4019
|
-
extend(style[prop], rule, sheet, newStyle[prop]);
|
|
4020
|
-
continue;
|
|
3728
|
+
else {
|
|
3729
|
+
return headingSizeToTagMap[size] || 'h2';
|
|
4021
3730
|
}
|
|
4022
|
-
|
|
4023
|
-
|
|
4024
|
-
|
|
4025
|
-
|
|
3731
|
+
};
|
|
3732
|
+
const HEADLINE_TAGS = ['h1', 'h2', 'h3', 'h4', 'h5', 'h6'];
|
|
3733
|
+
const variantToTagMap = {
|
|
3734
|
+
'large-title': 'h1',
|
|
3735
|
+
'headline-1': 'h1',
|
|
3736
|
+
'headline-2': 'h2',
|
|
3737
|
+
'headline-3': 'h3',
|
|
3738
|
+
'headline-4': 'h4',
|
|
3739
|
+
'headline-5': 'h5',
|
|
3740
|
+
};
|
|
3741
|
+
const getHeadlineTagType = (host, variant, tag) => {
|
|
3742
|
+
if (hasSpecificSlottedTag(host, HEADLINE_TAGS.join())) {
|
|
3743
|
+
return 'div';
|
|
4026
3744
|
}
|
|
4027
|
-
|
|
4028
|
-
|
|
4029
|
-
|
|
4030
|
-
|
|
4031
|
-
|
|
4032
|
-
|
|
4033
|
-
|
|
4034
|
-
|
|
4035
|
-
|
|
4036
|
-
function extend(style, rule, sheet, newStyle) {
|
|
4037
|
-
if (newStyle === void 0) {
|
|
4038
|
-
newStyle = {};
|
|
4039
|
-
}
|
|
4040
|
-
|
|
4041
|
-
mergeExtend(style, rule, sheet, newStyle);
|
|
4042
|
-
mergeRest(style, rule, sheet, newStyle);
|
|
4043
|
-
return newStyle;
|
|
4044
|
-
}
|
|
4045
|
-
/**
|
|
4046
|
-
* Handle `extend` property.
|
|
4047
|
-
*/
|
|
4048
|
-
|
|
4049
|
-
|
|
4050
|
-
function jssExtend() {
|
|
4051
|
-
function onProcessStyle(style, rule, sheet) {
|
|
4052
|
-
if ('extend' in style) return extend(style, rule, sheet);
|
|
4053
|
-
return style;
|
|
4054
|
-
}
|
|
4055
|
-
|
|
4056
|
-
function onChangeValue(value, prop, rule) {
|
|
4057
|
-
if (prop !== 'extend') return value; // Value is empty, remove properties set previously.
|
|
4058
|
-
|
|
4059
|
-
if (value == null || value === false) {
|
|
4060
|
-
for (var key in rule[valueNs]) {
|
|
4061
|
-
rule.prop(key, null);
|
|
4062
|
-
}
|
|
4063
|
-
|
|
4064
|
-
rule[valueNs] = null;
|
|
4065
|
-
return null;
|
|
4066
|
-
}
|
|
4067
|
-
|
|
4068
|
-
if (typeof value === 'object') {
|
|
4069
|
-
for (var _key in value) {
|
|
4070
|
-
rule.prop(_key, value[_key]);
|
|
4071
|
-
}
|
|
4072
|
-
|
|
4073
|
-
rule[valueNs] = value;
|
|
4074
|
-
} // Make sure we don't set the value in the core.
|
|
4075
|
-
|
|
4076
|
-
|
|
4077
|
-
return null;
|
|
4078
|
-
}
|
|
4079
|
-
|
|
4080
|
-
return {
|
|
4081
|
-
onProcessStyle: onProcessStyle,
|
|
4082
|
-
onChangeValue: onChangeValue
|
|
4083
|
-
};
|
|
4084
|
-
}
|
|
4085
|
-
|
|
4086
|
-
/**
|
|
4087
|
-
* Set selector.
|
|
4088
|
-
*
|
|
4089
|
-
* @param original rule
|
|
4090
|
-
* @param className class string
|
|
4091
|
-
* @return flag indicating function was successfull or not
|
|
4092
|
-
*/
|
|
4093
|
-
|
|
4094
|
-
function registerClass(rule, className) {
|
|
4095
|
-
// Skip falsy values
|
|
4096
|
-
if (!className) return true; // Support array of class names `{composes: ['foo', 'bar']}`
|
|
4097
|
-
|
|
4098
|
-
if (Array.isArray(className)) {
|
|
4099
|
-
for (var index = 0; index < className.length; index++) {
|
|
4100
|
-
var isSetted = registerClass(rule, className[index]);
|
|
4101
|
-
if (!isSetted) return false;
|
|
4102
|
-
}
|
|
4103
|
-
|
|
4104
|
-
return true;
|
|
4105
|
-
} // Support space separated class names `{composes: 'foo bar'}`
|
|
4106
|
-
|
|
4107
|
-
|
|
4108
|
-
if (className.indexOf(' ') > -1) {
|
|
4109
|
-
return registerClass(rule, className.split(' '));
|
|
4110
|
-
}
|
|
4111
|
-
|
|
4112
|
-
var parent = rule.options.parent; // It is a ref to a local rule.
|
|
4113
|
-
|
|
4114
|
-
if (className[0] === '$') {
|
|
4115
|
-
var refRule = parent.getRule(className.substr(1));
|
|
4116
|
-
|
|
4117
|
-
if (!refRule) {
|
|
4118
|
-
process.env.NODE_ENV !== "production" ? warning(false, "[JSS] Referenced rule is not defined. \n" + rule.toString()) : void 0;
|
|
4119
|
-
return false;
|
|
4120
|
-
}
|
|
4121
|
-
|
|
4122
|
-
if (refRule === rule) {
|
|
4123
|
-
process.env.NODE_ENV !== "production" ? warning(false, "[JSS] Cyclic composition detected. \n" + rule.toString()) : void 0;
|
|
4124
|
-
return false;
|
|
4125
|
-
}
|
|
4126
|
-
|
|
4127
|
-
parent.classes[rule.key] += " " + parent.classes[refRule.key];
|
|
4128
|
-
return true;
|
|
4129
|
-
}
|
|
4130
|
-
|
|
4131
|
-
parent.classes[rule.key] += " " + className;
|
|
4132
|
-
return true;
|
|
4133
|
-
}
|
|
4134
|
-
/**
|
|
4135
|
-
* Convert compose property to additional class, remove property from original styles.
|
|
4136
|
-
*/
|
|
4137
|
-
|
|
4138
|
-
|
|
4139
|
-
function jssCompose() {
|
|
4140
|
-
function onProcessStyle(style, rule) {
|
|
4141
|
-
if (!('composes' in style)) return style;
|
|
4142
|
-
registerClass(rule, style.composes); // Remove composes property to prevent infinite loop.
|
|
4143
|
-
|
|
4144
|
-
delete style.composes;
|
|
4145
|
-
return style;
|
|
4146
|
-
}
|
|
4147
|
-
|
|
4148
|
-
return {
|
|
4149
|
-
onProcessStyle: onProcessStyle
|
|
4150
|
-
};
|
|
4151
|
-
}
|
|
4152
|
-
|
|
4153
|
-
var px = hasCSSTOMSupport && CSS ? CSS.px : 'px';
|
|
4154
|
-
var ms = hasCSSTOMSupport && CSS ? CSS.ms : 'ms';
|
|
4155
|
-
var percent = hasCSSTOMSupport && CSS ? CSS.percent : '%';
|
|
4156
|
-
/**
|
|
4157
|
-
* Generated jss-plugin-default-unit CSS property units
|
|
4158
|
-
*/
|
|
4159
|
-
|
|
4160
|
-
var defaultUnits = {
|
|
4161
|
-
// Animation properties
|
|
4162
|
-
'animation-delay': ms,
|
|
4163
|
-
'animation-duration': ms,
|
|
4164
|
-
// Background properties
|
|
4165
|
-
'background-position': px,
|
|
4166
|
-
'background-position-x': px,
|
|
4167
|
-
'background-position-y': px,
|
|
4168
|
-
'background-size': px,
|
|
4169
|
-
// Border Properties
|
|
4170
|
-
border: px,
|
|
4171
|
-
'border-bottom': px,
|
|
4172
|
-
'border-bottom-left-radius': px,
|
|
4173
|
-
'border-bottom-right-radius': px,
|
|
4174
|
-
'border-bottom-width': px,
|
|
4175
|
-
'border-left': px,
|
|
4176
|
-
'border-left-width': px,
|
|
4177
|
-
'border-radius': px,
|
|
4178
|
-
'border-right': px,
|
|
4179
|
-
'border-right-width': px,
|
|
4180
|
-
'border-top': px,
|
|
4181
|
-
'border-top-left-radius': px,
|
|
4182
|
-
'border-top-right-radius': px,
|
|
4183
|
-
'border-top-width': px,
|
|
4184
|
-
'border-width': px,
|
|
4185
|
-
'border-block': px,
|
|
4186
|
-
'border-block-end': px,
|
|
4187
|
-
'border-block-end-width': px,
|
|
4188
|
-
'border-block-start': px,
|
|
4189
|
-
'border-block-start-width': px,
|
|
4190
|
-
'border-block-width': px,
|
|
4191
|
-
'border-inline': px,
|
|
4192
|
-
'border-inline-end': px,
|
|
4193
|
-
'border-inline-end-width': px,
|
|
4194
|
-
'border-inline-start': px,
|
|
4195
|
-
'border-inline-start-width': px,
|
|
4196
|
-
'border-inline-width': px,
|
|
4197
|
-
'border-start-start-radius': px,
|
|
4198
|
-
'border-start-end-radius': px,
|
|
4199
|
-
'border-end-start-radius': px,
|
|
4200
|
-
'border-end-end-radius': px,
|
|
4201
|
-
// Margin properties
|
|
4202
|
-
margin: px,
|
|
4203
|
-
'margin-bottom': px,
|
|
4204
|
-
'margin-left': px,
|
|
4205
|
-
'margin-right': px,
|
|
4206
|
-
'margin-top': px,
|
|
4207
|
-
'margin-block': px,
|
|
4208
|
-
'margin-block-end': px,
|
|
4209
|
-
'margin-block-start': px,
|
|
4210
|
-
'margin-inline': px,
|
|
4211
|
-
'margin-inline-end': px,
|
|
4212
|
-
'margin-inline-start': px,
|
|
4213
|
-
// Padding properties
|
|
4214
|
-
padding: px,
|
|
4215
|
-
'padding-bottom': px,
|
|
4216
|
-
'padding-left': px,
|
|
4217
|
-
'padding-right': px,
|
|
4218
|
-
'padding-top': px,
|
|
4219
|
-
'padding-block': px,
|
|
4220
|
-
'padding-block-end': px,
|
|
4221
|
-
'padding-block-start': px,
|
|
4222
|
-
'padding-inline': px,
|
|
4223
|
-
'padding-inline-end': px,
|
|
4224
|
-
'padding-inline-start': px,
|
|
4225
|
-
// Mask properties
|
|
4226
|
-
'mask-position-x': px,
|
|
4227
|
-
'mask-position-y': px,
|
|
4228
|
-
'mask-size': px,
|
|
4229
|
-
// Width and height properties
|
|
4230
|
-
height: px,
|
|
4231
|
-
width: px,
|
|
4232
|
-
'min-height': px,
|
|
4233
|
-
'max-height': px,
|
|
4234
|
-
'min-width': px,
|
|
4235
|
-
'max-width': px,
|
|
4236
|
-
// Position properties
|
|
4237
|
-
bottom: px,
|
|
4238
|
-
left: px,
|
|
4239
|
-
top: px,
|
|
4240
|
-
right: px,
|
|
4241
|
-
inset: px,
|
|
4242
|
-
'inset-block': px,
|
|
4243
|
-
'inset-block-end': px,
|
|
4244
|
-
'inset-block-start': px,
|
|
4245
|
-
'inset-inline': px,
|
|
4246
|
-
'inset-inline-end': px,
|
|
4247
|
-
'inset-inline-start': px,
|
|
4248
|
-
// Shadow properties
|
|
4249
|
-
'box-shadow': px,
|
|
4250
|
-
'text-shadow': px,
|
|
4251
|
-
// Column properties
|
|
4252
|
-
'column-gap': px,
|
|
4253
|
-
'column-rule': px,
|
|
4254
|
-
'column-rule-width': px,
|
|
4255
|
-
'column-width': px,
|
|
4256
|
-
// Font and text properties
|
|
4257
|
-
'font-size': px,
|
|
4258
|
-
'font-size-delta': px,
|
|
4259
|
-
'letter-spacing': px,
|
|
4260
|
-
'text-decoration-thickness': px,
|
|
4261
|
-
'text-indent': px,
|
|
4262
|
-
'text-stroke': px,
|
|
4263
|
-
'text-stroke-width': px,
|
|
4264
|
-
'word-spacing': px,
|
|
4265
|
-
// Motion properties
|
|
4266
|
-
motion: px,
|
|
4267
|
-
'motion-offset': px,
|
|
4268
|
-
// Outline properties
|
|
4269
|
-
outline: px,
|
|
4270
|
-
'outline-offset': px,
|
|
4271
|
-
'outline-width': px,
|
|
4272
|
-
// Perspective properties
|
|
4273
|
-
perspective: px,
|
|
4274
|
-
'perspective-origin-x': percent,
|
|
4275
|
-
'perspective-origin-y': percent,
|
|
4276
|
-
// Transform properties
|
|
4277
|
-
'transform-origin': percent,
|
|
4278
|
-
'transform-origin-x': percent,
|
|
4279
|
-
'transform-origin-y': percent,
|
|
4280
|
-
'transform-origin-z': percent,
|
|
4281
|
-
// Transition properties
|
|
4282
|
-
'transition-delay': ms,
|
|
4283
|
-
'transition-duration': ms,
|
|
4284
|
-
// Alignment properties
|
|
4285
|
-
'vertical-align': px,
|
|
4286
|
-
'flex-basis': px,
|
|
4287
|
-
// Some random properties
|
|
4288
|
-
'shape-margin': px,
|
|
4289
|
-
size: px,
|
|
4290
|
-
gap: px,
|
|
4291
|
-
// Grid properties
|
|
4292
|
-
grid: px,
|
|
4293
|
-
'grid-gap': px,
|
|
4294
|
-
'row-gap': px,
|
|
4295
|
-
'grid-row-gap': px,
|
|
4296
|
-
'grid-column-gap': px,
|
|
4297
|
-
'grid-template-rows': px,
|
|
4298
|
-
'grid-template-columns': px,
|
|
4299
|
-
'grid-auto-rows': px,
|
|
4300
|
-
'grid-auto-columns': px,
|
|
4301
|
-
// Not existing properties.
|
|
4302
|
-
// Used to avoid issues with jss-plugin-expand integration.
|
|
4303
|
-
'box-shadow-x': px,
|
|
4304
|
-
'box-shadow-y': px,
|
|
4305
|
-
'box-shadow-blur': px,
|
|
4306
|
-
'box-shadow-spread': px,
|
|
4307
|
-
'font-line-height': px,
|
|
4308
|
-
'text-shadow-x': px,
|
|
4309
|
-
'text-shadow-y': px,
|
|
4310
|
-
'text-shadow-blur': px
|
|
4311
|
-
};
|
|
4312
|
-
|
|
4313
|
-
/**
|
|
4314
|
-
* Clones the object and adds a camel cased property version.
|
|
4315
|
-
*/
|
|
4316
|
-
|
|
4317
|
-
function addCamelCasedVersion(obj) {
|
|
4318
|
-
var regExp = /(-[a-z])/g;
|
|
4319
|
-
|
|
4320
|
-
var replace = function replace(str) {
|
|
4321
|
-
return str[1].toUpperCase();
|
|
4322
|
-
};
|
|
4323
|
-
|
|
4324
|
-
var newObj = {};
|
|
4325
|
-
|
|
4326
|
-
for (var key in obj) {
|
|
4327
|
-
newObj[key] = obj[key];
|
|
4328
|
-
newObj[key.replace(regExp, replace)] = obj[key];
|
|
4329
|
-
}
|
|
4330
|
-
|
|
4331
|
-
return newObj;
|
|
4332
|
-
}
|
|
4333
|
-
|
|
4334
|
-
var units = addCamelCasedVersion(defaultUnits);
|
|
4335
|
-
/**
|
|
4336
|
-
* Recursive deep style passing function
|
|
4337
|
-
*/
|
|
4338
|
-
|
|
4339
|
-
function iterate(prop, value, options) {
|
|
4340
|
-
if (value == null) return value;
|
|
4341
|
-
|
|
4342
|
-
if (Array.isArray(value)) {
|
|
4343
|
-
for (var i = 0; i < value.length; i++) {
|
|
4344
|
-
value[i] = iterate(prop, value[i], options);
|
|
4345
|
-
}
|
|
4346
|
-
} else if (typeof value === 'object') {
|
|
4347
|
-
if (prop === 'fallbacks') {
|
|
4348
|
-
for (var innerProp in value) {
|
|
4349
|
-
value[innerProp] = iterate(innerProp, value[innerProp], options);
|
|
4350
|
-
}
|
|
4351
|
-
} else {
|
|
4352
|
-
for (var _innerProp in value) {
|
|
4353
|
-
value[_innerProp] = iterate(prop + "-" + _innerProp, value[_innerProp], options);
|
|
4354
|
-
}
|
|
4355
|
-
} // eslint-disable-next-line no-restricted-globals
|
|
4356
|
-
|
|
4357
|
-
} else if (typeof value === 'number' && isNaN(value) === false) {
|
|
4358
|
-
var unit = options[prop] || units[prop]; // Add the unit if available, except for the special case of 0px.
|
|
4359
|
-
|
|
4360
|
-
if (unit && !(value === 0 && unit === px)) {
|
|
4361
|
-
return typeof unit === 'function' ? unit(value).toString() : "" + value + unit;
|
|
4362
|
-
}
|
|
4363
|
-
|
|
4364
|
-
return value.toString();
|
|
4365
|
-
}
|
|
4366
|
-
|
|
4367
|
-
return value;
|
|
4368
|
-
}
|
|
4369
|
-
/**
|
|
4370
|
-
* Add unit to numeric values.
|
|
4371
|
-
*/
|
|
4372
|
-
|
|
4373
|
-
|
|
4374
|
-
function defaultUnit(options) {
|
|
4375
|
-
if (options === void 0) {
|
|
4376
|
-
options = {};
|
|
4377
|
-
}
|
|
4378
|
-
|
|
4379
|
-
var camelCasedOptions = addCamelCasedVersion(options);
|
|
4380
|
-
|
|
4381
|
-
function onProcessStyle(style, rule) {
|
|
4382
|
-
if (rule.type !== 'style') return style;
|
|
4383
|
-
|
|
4384
|
-
for (var prop in style) {
|
|
4385
|
-
style[prop] = iterate(prop, style[prop], camelCasedOptions);
|
|
4386
|
-
}
|
|
4387
|
-
|
|
4388
|
-
return style;
|
|
4389
|
-
}
|
|
4390
|
-
|
|
4391
|
-
function onChangeValue(value, prop) {
|
|
4392
|
-
return iterate(prop, value, camelCasedOptions);
|
|
4393
|
-
}
|
|
4394
|
-
|
|
4395
|
-
return {
|
|
4396
|
-
onProcessStyle: onProcessStyle,
|
|
4397
|
-
onChangeValue: onChangeValue
|
|
4398
|
-
};
|
|
4399
|
-
}
|
|
4400
|
-
|
|
4401
|
-
/**
|
|
4402
|
-
* A scheme for converting properties from array to regular style.
|
|
4403
|
-
* All properties listed below will be transformed to a string separated by space.
|
|
4404
|
-
*/
|
|
4405
|
-
var propArray = {
|
|
4406
|
-
'background-size': true,
|
|
4407
|
-
'background-position': true,
|
|
4408
|
-
border: true,
|
|
4409
|
-
'border-bottom': true,
|
|
4410
|
-
'border-left': true,
|
|
4411
|
-
'border-top': true,
|
|
4412
|
-
'border-right': true,
|
|
4413
|
-
'border-radius': true,
|
|
4414
|
-
'border-image': true,
|
|
4415
|
-
'border-width': true,
|
|
4416
|
-
'border-style': true,
|
|
4417
|
-
'border-color': true,
|
|
4418
|
-
'box-shadow': true,
|
|
4419
|
-
flex: true,
|
|
4420
|
-
margin: true,
|
|
4421
|
-
padding: true,
|
|
4422
|
-
outline: true,
|
|
4423
|
-
'transform-origin': true,
|
|
4424
|
-
transform: true,
|
|
4425
|
-
transition: true
|
|
4426
|
-
/**
|
|
4427
|
-
* A scheme for converting arrays to regular styles inside of objects.
|
|
4428
|
-
* For e.g.: "{position: [0, 0]}" => "background-position: 0 0;".
|
|
4429
|
-
*/
|
|
4430
|
-
|
|
4431
|
-
};
|
|
4432
|
-
var propArrayInObj = {
|
|
4433
|
-
position: true,
|
|
4434
|
-
// background-position
|
|
4435
|
-
size: true // background-size
|
|
4436
|
-
|
|
4437
|
-
/**
|
|
4438
|
-
* A scheme for parsing and building correct styles from passed objects.
|
|
4439
|
-
*/
|
|
4440
|
-
|
|
4441
|
-
};
|
|
4442
|
-
var propObj = {
|
|
4443
|
-
padding: {
|
|
4444
|
-
top: 0,
|
|
4445
|
-
right: 0,
|
|
4446
|
-
bottom: 0,
|
|
4447
|
-
left: 0
|
|
4448
|
-
},
|
|
4449
|
-
margin: {
|
|
4450
|
-
top: 0,
|
|
4451
|
-
right: 0,
|
|
4452
|
-
bottom: 0,
|
|
4453
|
-
left: 0
|
|
4454
|
-
},
|
|
4455
|
-
background: {
|
|
4456
|
-
attachment: null,
|
|
4457
|
-
color: null,
|
|
4458
|
-
image: null,
|
|
4459
|
-
position: null,
|
|
4460
|
-
repeat: null
|
|
4461
|
-
},
|
|
4462
|
-
border: {
|
|
4463
|
-
width: null,
|
|
4464
|
-
style: null,
|
|
4465
|
-
color: null
|
|
4466
|
-
},
|
|
4467
|
-
'border-top': {
|
|
4468
|
-
width: null,
|
|
4469
|
-
style: null,
|
|
4470
|
-
color: null
|
|
4471
|
-
},
|
|
4472
|
-
'border-right': {
|
|
4473
|
-
width: null,
|
|
4474
|
-
style: null,
|
|
4475
|
-
color: null
|
|
4476
|
-
},
|
|
4477
|
-
'border-bottom': {
|
|
4478
|
-
width: null,
|
|
4479
|
-
style: null,
|
|
4480
|
-
color: null
|
|
4481
|
-
},
|
|
4482
|
-
'border-left': {
|
|
4483
|
-
width: null,
|
|
4484
|
-
style: null,
|
|
4485
|
-
color: null
|
|
4486
|
-
},
|
|
4487
|
-
outline: {
|
|
4488
|
-
width: null,
|
|
4489
|
-
style: null,
|
|
4490
|
-
color: null
|
|
4491
|
-
},
|
|
4492
|
-
'list-style': {
|
|
4493
|
-
type: null,
|
|
4494
|
-
position: null,
|
|
4495
|
-
image: null
|
|
4496
|
-
},
|
|
4497
|
-
transition: {
|
|
4498
|
-
property: null,
|
|
4499
|
-
duration: null,
|
|
4500
|
-
'timing-function': null,
|
|
4501
|
-
timingFunction: null,
|
|
4502
|
-
// Needed for avoiding comilation issues with jss-plugin-camel-case
|
|
4503
|
-
delay: null
|
|
4504
|
-
},
|
|
4505
|
-
animation: {
|
|
4506
|
-
name: null,
|
|
4507
|
-
duration: null,
|
|
4508
|
-
'timing-function': null,
|
|
4509
|
-
timingFunction: null,
|
|
4510
|
-
// Needed to avoid compilation issues with jss-plugin-camel-case
|
|
4511
|
-
delay: null,
|
|
4512
|
-
'iteration-count': null,
|
|
4513
|
-
iterationCount: null,
|
|
4514
|
-
// Needed to avoid compilation issues with jss-plugin-camel-case
|
|
4515
|
-
direction: null,
|
|
4516
|
-
'fill-mode': null,
|
|
4517
|
-
fillMode: null,
|
|
4518
|
-
// Needed to avoid compilation issues with jss-plugin-camel-case
|
|
4519
|
-
'play-state': null,
|
|
4520
|
-
playState: null // Needed to avoid compilation issues with jss-plugin-camel-case
|
|
4521
|
-
|
|
4522
|
-
},
|
|
4523
|
-
'box-shadow': {
|
|
4524
|
-
x: 0,
|
|
4525
|
-
y: 0,
|
|
4526
|
-
blur: 0,
|
|
4527
|
-
spread: 0,
|
|
4528
|
-
color: null,
|
|
4529
|
-
inset: null
|
|
4530
|
-
},
|
|
4531
|
-
'text-shadow': {
|
|
4532
|
-
x: 0,
|
|
4533
|
-
y: 0,
|
|
4534
|
-
blur: null,
|
|
4535
|
-
color: null
|
|
4536
|
-
}
|
|
4537
|
-
/**
|
|
4538
|
-
* A scheme for converting non-standart properties inside object.
|
|
4539
|
-
* For e.g.: include 'border-radius' property inside 'border' object.
|
|
4540
|
-
*/
|
|
4541
|
-
|
|
4542
|
-
};
|
|
4543
|
-
var customPropObj = {
|
|
4544
|
-
border: {
|
|
4545
|
-
radius: 'border-radius',
|
|
4546
|
-
image: 'border-image',
|
|
4547
|
-
width: 'border-width',
|
|
4548
|
-
style: 'border-style',
|
|
4549
|
-
color: 'border-color'
|
|
4550
|
-
},
|
|
4551
|
-
'border-bottom': {
|
|
4552
|
-
width: 'border-bottom-width',
|
|
4553
|
-
style: 'border-bottom-style',
|
|
4554
|
-
color: 'border-bottom-color'
|
|
4555
|
-
},
|
|
4556
|
-
'border-top': {
|
|
4557
|
-
width: 'border-top-width',
|
|
4558
|
-
style: 'border-top-style',
|
|
4559
|
-
color: 'border-top-color'
|
|
4560
|
-
},
|
|
4561
|
-
'border-left': {
|
|
4562
|
-
width: 'border-left-width',
|
|
4563
|
-
style: 'border-left-style',
|
|
4564
|
-
color: 'border-left-color'
|
|
4565
|
-
},
|
|
4566
|
-
'border-right': {
|
|
4567
|
-
width: 'border-right-width',
|
|
4568
|
-
style: 'border-right-style',
|
|
4569
|
-
color: 'border-right-color'
|
|
4570
|
-
},
|
|
4571
|
-
background: {
|
|
4572
|
-
size: 'background-size',
|
|
4573
|
-
image: 'background-image'
|
|
4574
|
-
},
|
|
4575
|
-
font: {
|
|
4576
|
-
style: 'font-style',
|
|
4577
|
-
variant: 'font-variant',
|
|
4578
|
-
weight: 'font-weight',
|
|
4579
|
-
stretch: 'font-stretch',
|
|
4580
|
-
size: 'font-size',
|
|
4581
|
-
family: 'font-family',
|
|
4582
|
-
lineHeight: 'line-height',
|
|
4583
|
-
// Needed to avoid compilation issues with jss-plugin-camel-case
|
|
4584
|
-
'line-height': 'line-height'
|
|
4585
|
-
},
|
|
4586
|
-
flex: {
|
|
4587
|
-
grow: 'flex-grow',
|
|
4588
|
-
basis: 'flex-basis',
|
|
4589
|
-
direction: 'flex-direction',
|
|
4590
|
-
wrap: 'flex-wrap',
|
|
4591
|
-
flow: 'flex-flow',
|
|
4592
|
-
shrink: 'flex-shrink'
|
|
4593
|
-
},
|
|
4594
|
-
align: {
|
|
4595
|
-
self: 'align-self',
|
|
4596
|
-
items: 'align-items',
|
|
4597
|
-
content: 'align-content'
|
|
4598
|
-
},
|
|
4599
|
-
grid: {
|
|
4600
|
-
'template-columns': 'grid-template-columns',
|
|
4601
|
-
templateColumns: 'grid-template-columns',
|
|
4602
|
-
'template-rows': 'grid-template-rows',
|
|
4603
|
-
templateRows: 'grid-template-rows',
|
|
4604
|
-
'template-areas': 'grid-template-areas',
|
|
4605
|
-
templateAreas: 'grid-template-areas',
|
|
4606
|
-
template: 'grid-template',
|
|
4607
|
-
'auto-columns': 'grid-auto-columns',
|
|
4608
|
-
autoColumns: 'grid-auto-columns',
|
|
4609
|
-
'auto-rows': 'grid-auto-rows',
|
|
4610
|
-
autoRows: 'grid-auto-rows',
|
|
4611
|
-
'auto-flow': 'grid-auto-flow',
|
|
4612
|
-
autoFlow: 'grid-auto-flow',
|
|
4613
|
-
row: 'grid-row',
|
|
4614
|
-
column: 'grid-column',
|
|
4615
|
-
'row-start': 'grid-row-start',
|
|
4616
|
-
rowStart: 'grid-row-start',
|
|
4617
|
-
'row-end': 'grid-row-end',
|
|
4618
|
-
rowEnd: 'grid-row-end',
|
|
4619
|
-
'column-start': 'grid-column-start',
|
|
4620
|
-
columnStart: 'grid-column-start',
|
|
4621
|
-
'column-end': 'grid-column-end',
|
|
4622
|
-
columnEnd: 'grid-column-end',
|
|
4623
|
-
area: 'grid-area',
|
|
4624
|
-
gap: 'grid-gap',
|
|
4625
|
-
'row-gap': 'grid-row-gap',
|
|
4626
|
-
rowGap: 'grid-row-gap',
|
|
4627
|
-
'column-gap': 'grid-column-gap',
|
|
4628
|
-
columnGap: 'grid-column-gap'
|
|
4629
|
-
}
|
|
4630
|
-
};
|
|
4631
|
-
|
|
4632
|
-
/* eslint-disable no-use-before-define */
|
|
4633
|
-
/**
|
|
4634
|
-
* Map values by given prop.
|
|
4635
|
-
*
|
|
4636
|
-
* @param {Array} array of values
|
|
4637
|
-
* @param {String} original property
|
|
4638
|
-
* @param {String} original rule
|
|
4639
|
-
* @return {String} mapped values
|
|
4640
|
-
*/
|
|
4641
|
-
|
|
4642
|
-
function mapValuesByProp(value, prop, rule) {
|
|
4643
|
-
return value.map(function (item) {
|
|
4644
|
-
return objectToArray(item, prop, rule, false, true);
|
|
4645
|
-
});
|
|
4646
|
-
}
|
|
4647
|
-
/**
|
|
4648
|
-
* Convert array to nested array, if needed
|
|
4649
|
-
*/
|
|
4650
|
-
|
|
4651
|
-
|
|
4652
|
-
function processArray(value, prop, scheme, rule) {
|
|
4653
|
-
if (scheme[prop] == null) return value;
|
|
4654
|
-
if (value.length === 0) return [];
|
|
4655
|
-
if (Array.isArray(value[0])) return processArray(value[0], prop, scheme, rule);
|
|
4656
|
-
|
|
4657
|
-
if (typeof value[0] === 'object') {
|
|
4658
|
-
return mapValuesByProp(value, prop, rule);
|
|
4659
|
-
}
|
|
4660
|
-
|
|
4661
|
-
return [value];
|
|
4662
|
-
}
|
|
4663
|
-
/**
|
|
4664
|
-
* Convert object to array.
|
|
4665
|
-
*/
|
|
4666
|
-
|
|
4667
|
-
|
|
4668
|
-
function objectToArray(value, prop, rule, isFallback, isInArray) {
|
|
4669
|
-
if (!(propObj[prop] || customPropObj[prop])) return [];
|
|
4670
|
-
var result = []; // Check if exists any non-standard property
|
|
4671
|
-
|
|
4672
|
-
if (customPropObj[prop]) {
|
|
4673
|
-
// eslint-disable-next-line no-param-reassign
|
|
4674
|
-
value = customPropsToStyle(value, rule, customPropObj[prop], isFallback);
|
|
4675
|
-
} // Pass throught all standart props
|
|
4676
|
-
|
|
4677
|
-
|
|
4678
|
-
if (Object.keys(value).length) {
|
|
4679
|
-
for (var baseProp in propObj[prop]) {
|
|
4680
|
-
if (value[baseProp]) {
|
|
4681
|
-
if (Array.isArray(value[baseProp])) {
|
|
4682
|
-
result.push(propArrayInObj[baseProp] === null ? value[baseProp] : value[baseProp].join(' '));
|
|
4683
|
-
} else result.push(value[baseProp]);
|
|
4684
|
-
|
|
4685
|
-
continue;
|
|
4686
|
-
} // Add default value from props config.
|
|
4687
|
-
|
|
4688
|
-
|
|
4689
|
-
if (propObj[prop][baseProp] != null) {
|
|
4690
|
-
result.push(propObj[prop][baseProp]);
|
|
4691
|
-
}
|
|
4692
|
-
}
|
|
4693
|
-
}
|
|
4694
|
-
|
|
4695
|
-
if (!result.length || isInArray) return result;
|
|
4696
|
-
return [result];
|
|
4697
|
-
}
|
|
4698
|
-
/**
|
|
4699
|
-
* Convert custom properties values to styles adding them to rule directly
|
|
4700
|
-
*/
|
|
4701
|
-
|
|
4702
|
-
|
|
4703
|
-
function customPropsToStyle(value, rule, customProps, isFallback) {
|
|
4704
|
-
for (var prop in customProps) {
|
|
4705
|
-
var propName = customProps[prop]; // If current property doesn't exist already in rule - add new one
|
|
4706
|
-
|
|
4707
|
-
if (typeof value[prop] !== 'undefined' && (isFallback || !rule.prop(propName))) {
|
|
4708
|
-
var _styleDetector;
|
|
4709
|
-
|
|
4710
|
-
var appendedValue = styleDetector((_styleDetector = {}, _styleDetector[propName] = value[prop], _styleDetector), rule)[propName]; // Add style directly in rule
|
|
4711
|
-
|
|
4712
|
-
if (isFallback) rule.style.fallbacks[propName] = appendedValue;else rule.style[propName] = appendedValue;
|
|
4713
|
-
} // Delete converted property to avoid double converting
|
|
4714
|
-
|
|
4715
|
-
|
|
4716
|
-
delete value[prop];
|
|
4717
|
-
}
|
|
4718
|
-
|
|
4719
|
-
return value;
|
|
4720
|
-
}
|
|
4721
|
-
/**
|
|
4722
|
-
* Detect if a style needs to be converted.
|
|
4723
|
-
*/
|
|
4724
|
-
|
|
4725
|
-
|
|
4726
|
-
function styleDetector(style, rule, isFallback) {
|
|
4727
|
-
for (var prop in style) {
|
|
4728
|
-
var value = style[prop];
|
|
4729
|
-
|
|
4730
|
-
if (Array.isArray(value)) {
|
|
4731
|
-
// Check double arrays to avoid recursion.
|
|
4732
|
-
if (!Array.isArray(value[0])) {
|
|
4733
|
-
if (prop === 'fallbacks') {
|
|
4734
|
-
for (var index = 0; index < style.fallbacks.length; index++) {
|
|
4735
|
-
style.fallbacks[index] = styleDetector(style.fallbacks[index], rule, true);
|
|
4736
|
-
}
|
|
4737
|
-
|
|
4738
|
-
continue;
|
|
4739
|
-
}
|
|
4740
|
-
|
|
4741
|
-
style[prop] = processArray(value, prop, propArray, rule); // Avoid creating properties with empty values
|
|
4742
|
-
|
|
4743
|
-
if (!style[prop].length) delete style[prop];
|
|
4744
|
-
}
|
|
4745
|
-
} else if (typeof value === 'object') {
|
|
4746
|
-
if (prop === 'fallbacks') {
|
|
4747
|
-
style.fallbacks = styleDetector(style.fallbacks, rule, true);
|
|
4748
|
-
continue;
|
|
4749
|
-
}
|
|
4750
|
-
|
|
4751
|
-
style[prop] = objectToArray(value, prop, rule, isFallback); // Avoid creating properties with empty values
|
|
4752
|
-
|
|
4753
|
-
if (!style[prop].length) delete style[prop];
|
|
4754
|
-
} // Maybe a computed value resulting in an empty string
|
|
4755
|
-
else if (style[prop] === '') delete style[prop];
|
|
4756
|
-
}
|
|
4757
|
-
|
|
4758
|
-
return style;
|
|
4759
|
-
}
|
|
4760
|
-
/**
|
|
4761
|
-
* Adds possibility to write expanded styles.
|
|
4762
|
-
*/
|
|
4763
|
-
|
|
4764
|
-
|
|
4765
|
-
function jssExpand() {
|
|
4766
|
-
function onProcessStyle(style, rule) {
|
|
4767
|
-
if (!style || rule.type !== 'style') return style;
|
|
4768
|
-
|
|
4769
|
-
if (Array.isArray(style)) {
|
|
4770
|
-
// Pass rules one by one and reformat them
|
|
4771
|
-
for (var index = 0; index < style.length; index++) {
|
|
4772
|
-
style[index] = styleDetector(style[index], rule);
|
|
4773
|
-
}
|
|
4774
|
-
|
|
4775
|
-
return style;
|
|
4776
|
-
}
|
|
4777
|
-
|
|
4778
|
-
return styleDetector(style, rule);
|
|
4779
|
-
}
|
|
4780
|
-
|
|
4781
|
-
return {
|
|
4782
|
-
onProcessStyle: onProcessStyle
|
|
4783
|
-
};
|
|
4784
|
-
}
|
|
4785
|
-
|
|
4786
|
-
var cssVendor_cjs = {};
|
|
4787
|
-
|
|
4788
|
-
var require$$0 = /*@__PURE__*/getAugmentedNamespace(module$1);
|
|
4789
|
-
|
|
4790
|
-
var toConsumableArrayExports = {};
|
|
4791
|
-
var toConsumableArray = {
|
|
4792
|
-
get exports(){ return toConsumableArrayExports; },
|
|
4793
|
-
set exports(v){ toConsumableArrayExports = v; },
|
|
4794
|
-
};
|
|
4795
|
-
|
|
4796
|
-
var arrayWithoutHolesExports = {};
|
|
4797
|
-
var arrayWithoutHoles = {
|
|
4798
|
-
get exports(){ return arrayWithoutHolesExports; },
|
|
4799
|
-
set exports(v){ arrayWithoutHolesExports = v; },
|
|
4800
|
-
};
|
|
4801
|
-
|
|
4802
|
-
var arrayLikeToArrayExports = {};
|
|
4803
|
-
var arrayLikeToArray = {
|
|
4804
|
-
get exports(){ return arrayLikeToArrayExports; },
|
|
4805
|
-
set exports(v){ arrayLikeToArrayExports = v; },
|
|
4806
|
-
};
|
|
4807
|
-
|
|
4808
|
-
(function (module) {
|
|
4809
|
-
function _arrayLikeToArray(arr, len) {
|
|
4810
|
-
if (len == null || len > arr.length) len = arr.length;
|
|
4811
|
-
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
|
4812
|
-
return arr2;
|
|
4813
|
-
}
|
|
4814
|
-
module.exports = _arrayLikeToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
4815
|
-
} (arrayLikeToArray));
|
|
4816
|
-
|
|
4817
|
-
(function (module) {
|
|
4818
|
-
var arrayLikeToArray = arrayLikeToArrayExports;
|
|
4819
|
-
function _arrayWithoutHoles(arr) {
|
|
4820
|
-
if (Array.isArray(arr)) return arrayLikeToArray(arr);
|
|
4821
|
-
}
|
|
4822
|
-
module.exports = _arrayWithoutHoles, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
4823
|
-
} (arrayWithoutHoles));
|
|
4824
|
-
|
|
4825
|
-
var iterableToArrayExports = {};
|
|
4826
|
-
var iterableToArray = {
|
|
4827
|
-
get exports(){ return iterableToArrayExports; },
|
|
4828
|
-
set exports(v){ iterableToArrayExports = v; },
|
|
4829
|
-
};
|
|
4830
|
-
|
|
4831
|
-
(function (module) {
|
|
4832
|
-
function _iterableToArray(iter) {
|
|
4833
|
-
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
4834
|
-
}
|
|
4835
|
-
module.exports = _iterableToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
4836
|
-
} (iterableToArray));
|
|
4837
|
-
|
|
4838
|
-
var unsupportedIterableToArrayExports = {};
|
|
4839
|
-
var unsupportedIterableToArray = {
|
|
4840
|
-
get exports(){ return unsupportedIterableToArrayExports; },
|
|
4841
|
-
set exports(v){ unsupportedIterableToArrayExports = v; },
|
|
4842
|
-
};
|
|
4843
|
-
|
|
4844
|
-
(function (module) {
|
|
4845
|
-
var arrayLikeToArray = arrayLikeToArrayExports;
|
|
4846
|
-
function _unsupportedIterableToArray(o, minLen) {
|
|
4847
|
-
if (!o) return;
|
|
4848
|
-
if (typeof o === "string") return arrayLikeToArray(o, minLen);
|
|
4849
|
-
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
4850
|
-
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
4851
|
-
if (n === "Map" || n === "Set") return Array.from(o);
|
|
4852
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray(o, minLen);
|
|
4853
|
-
}
|
|
4854
|
-
module.exports = _unsupportedIterableToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
4855
|
-
} (unsupportedIterableToArray));
|
|
4856
|
-
|
|
4857
|
-
var nonIterableSpreadExports = {};
|
|
4858
|
-
var nonIterableSpread = {
|
|
4859
|
-
get exports(){ return nonIterableSpreadExports; },
|
|
4860
|
-
set exports(v){ nonIterableSpreadExports = v; },
|
|
4861
|
-
};
|
|
4862
|
-
|
|
4863
|
-
(function (module) {
|
|
4864
|
-
function _nonIterableSpread() {
|
|
4865
|
-
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
4866
|
-
}
|
|
4867
|
-
module.exports = _nonIterableSpread, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
4868
|
-
} (nonIterableSpread));
|
|
4869
|
-
|
|
4870
|
-
(function (module) {
|
|
4871
|
-
var arrayWithoutHoles = arrayWithoutHolesExports;
|
|
4872
|
-
var iterableToArray = iterableToArrayExports;
|
|
4873
|
-
var unsupportedIterableToArray = unsupportedIterableToArrayExports;
|
|
4874
|
-
var nonIterableSpread = nonIterableSpreadExports;
|
|
4875
|
-
function _toConsumableArray(arr) {
|
|
4876
|
-
return arrayWithoutHoles(arr) || iterableToArray(arr) || unsupportedIterableToArray(arr) || nonIterableSpread();
|
|
4877
|
-
}
|
|
4878
|
-
module.exports = _toConsumableArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
4879
|
-
} (toConsumableArray));
|
|
4880
|
-
|
|
4881
|
-
Object.defineProperty(cssVendor_cjs, '__esModule', { value: true });
|
|
4882
|
-
|
|
4883
|
-
function _interopDefault$1 (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
|
|
4884
|
-
|
|
4885
|
-
var isInBrowser = _interopDefault$1(require$$0);
|
|
4886
|
-
var _toConsumableArray = _interopDefault$1(toConsumableArrayExports);
|
|
4887
|
-
|
|
4888
|
-
// Export javascript style and css style vendor prefixes.
|
|
4889
|
-
var js = '';
|
|
4890
|
-
var css = '';
|
|
4891
|
-
var vendor = '';
|
|
4892
|
-
var browser = '';
|
|
4893
|
-
var isTouch = isInBrowser && 'ontouchstart' in document.documentElement; // We should not do anything if required serverside.
|
|
4894
|
-
|
|
4895
|
-
if (isInBrowser) {
|
|
4896
|
-
// Order matters. We need to check Webkit the last one because
|
|
4897
|
-
// other vendors use to add Webkit prefixes to some properties
|
|
4898
|
-
var jsCssMap = {
|
|
4899
|
-
Moz: '-moz-',
|
|
4900
|
-
ms: '-ms-',
|
|
4901
|
-
O: '-o-',
|
|
4902
|
-
Webkit: '-webkit-'
|
|
4903
|
-
};
|
|
4904
|
-
|
|
4905
|
-
var _document$createEleme = document.createElement('p'),
|
|
4906
|
-
style = _document$createEleme.style;
|
|
4907
|
-
|
|
4908
|
-
var testProp = 'Transform';
|
|
4909
|
-
|
|
4910
|
-
for (var key in jsCssMap) {
|
|
4911
|
-
if (key + testProp in style) {
|
|
4912
|
-
js = key;
|
|
4913
|
-
css = jsCssMap[key];
|
|
4914
|
-
break;
|
|
4915
|
-
}
|
|
4916
|
-
} // Correctly detect the Edge browser.
|
|
4917
|
-
|
|
4918
|
-
|
|
4919
|
-
if (js === 'Webkit' && 'msHyphens' in style) {
|
|
4920
|
-
js = 'ms';
|
|
4921
|
-
css = jsCssMap.ms;
|
|
4922
|
-
browser = 'edge';
|
|
4923
|
-
} // Correctly detect the Safari browser.
|
|
4924
|
-
|
|
4925
|
-
|
|
4926
|
-
if (js === 'Webkit' && '-apple-trailing-word' in style) {
|
|
4927
|
-
vendor = 'apple';
|
|
4928
|
-
}
|
|
4929
|
-
}
|
|
4930
|
-
/**
|
|
4931
|
-
* Vendor prefix string for the current browser.
|
|
4932
|
-
*
|
|
4933
|
-
* @type {{js: String, css: String, vendor: String, browser: String}}
|
|
4934
|
-
* @api public
|
|
4935
|
-
*/
|
|
4936
|
-
|
|
4937
|
-
|
|
4938
|
-
var prefix = {
|
|
4939
|
-
js: js,
|
|
4940
|
-
css: css,
|
|
4941
|
-
vendor: vendor,
|
|
4942
|
-
browser: browser,
|
|
4943
|
-
isTouch: isTouch
|
|
4944
|
-
};
|
|
4945
|
-
|
|
4946
|
-
/**
|
|
4947
|
-
* Test if a keyframe at-rule should be prefixed or not
|
|
4948
|
-
*
|
|
4949
|
-
* @param {String} vendor prefix string for the current browser.
|
|
4950
|
-
* @return {String}
|
|
4951
|
-
* @api public
|
|
4952
|
-
*/
|
|
4953
|
-
|
|
4954
|
-
function supportedKeyframes(key) {
|
|
4955
|
-
// Keyframes is already prefixed. e.g. key = '@-webkit-keyframes a'
|
|
4956
|
-
if (key[1] === '-') return key; // No need to prefix IE/Edge. Older browsers will ignore unsupported rules.
|
|
4957
|
-
// https://caniuse.com/#search=keyframes
|
|
4958
|
-
|
|
4959
|
-
if (prefix.js === 'ms') return key;
|
|
4960
|
-
return "@" + prefix.css + "keyframes" + key.substr(10);
|
|
4961
|
-
}
|
|
4962
|
-
|
|
4963
|
-
// https://caniuse.com/#search=appearance
|
|
4964
|
-
|
|
4965
|
-
var appearence = {
|
|
4966
|
-
noPrefill: ['appearance'],
|
|
4967
|
-
supportedProperty: function supportedProperty(prop) {
|
|
4968
|
-
if (prop !== 'appearance') return false;
|
|
4969
|
-
if (prefix.js === 'ms') return "-webkit-" + prop;
|
|
4970
|
-
return prefix.css + prop;
|
|
4971
|
-
}
|
|
4972
|
-
};
|
|
4973
|
-
|
|
4974
|
-
// https://caniuse.com/#search=color-adjust
|
|
4975
|
-
|
|
4976
|
-
var colorAdjust = {
|
|
4977
|
-
noPrefill: ['color-adjust'],
|
|
4978
|
-
supportedProperty: function supportedProperty(prop) {
|
|
4979
|
-
if (prop !== 'color-adjust') return false;
|
|
4980
|
-
if (prefix.js === 'Webkit') return prefix.css + "print-" + prop;
|
|
4981
|
-
return prop;
|
|
4982
|
-
}
|
|
4983
|
-
};
|
|
4984
|
-
|
|
4985
|
-
var regExp = /[-\s]+(.)?/g;
|
|
4986
|
-
/**
|
|
4987
|
-
* Replaces the letter with the capital letter
|
|
4988
|
-
*
|
|
4989
|
-
* @param {String} match
|
|
4990
|
-
* @param {String} c
|
|
4991
|
-
* @return {String}
|
|
4992
|
-
* @api private
|
|
4993
|
-
*/
|
|
4994
|
-
|
|
4995
|
-
function toUpper(match, c) {
|
|
4996
|
-
return c ? c.toUpperCase() : '';
|
|
4997
|
-
}
|
|
4998
|
-
/**
|
|
4999
|
-
* Convert dash separated strings to camel-cased.
|
|
5000
|
-
*
|
|
5001
|
-
* @param {String} str
|
|
5002
|
-
* @return {String}
|
|
5003
|
-
* @api private
|
|
5004
|
-
*/
|
|
5005
|
-
|
|
5006
|
-
|
|
5007
|
-
function camelize(str) {
|
|
5008
|
-
return str.replace(regExp, toUpper);
|
|
5009
|
-
}
|
|
5010
|
-
|
|
5011
|
-
/**
|
|
5012
|
-
* Convert dash separated strings to pascal cased.
|
|
5013
|
-
*
|
|
5014
|
-
* @param {String} str
|
|
5015
|
-
* @return {String}
|
|
5016
|
-
* @api private
|
|
5017
|
-
*/
|
|
5018
|
-
|
|
5019
|
-
function pascalize(str) {
|
|
5020
|
-
return camelize("-" + str);
|
|
5021
|
-
}
|
|
5022
|
-
|
|
5023
|
-
// but we can use a longhand property instead.
|
|
5024
|
-
// https://caniuse.com/#search=mask
|
|
5025
|
-
|
|
5026
|
-
var mask = {
|
|
5027
|
-
noPrefill: ['mask'],
|
|
5028
|
-
supportedProperty: function supportedProperty(prop, style) {
|
|
5029
|
-
if (!/^mask/.test(prop)) return false;
|
|
5030
|
-
|
|
5031
|
-
if (prefix.js === 'Webkit') {
|
|
5032
|
-
var longhand = 'mask-image';
|
|
5033
|
-
|
|
5034
|
-
if (camelize(longhand) in style) {
|
|
5035
|
-
return prop;
|
|
5036
|
-
}
|
|
5037
|
-
|
|
5038
|
-
if (prefix.js + pascalize(longhand) in style) {
|
|
5039
|
-
return prefix.css + prop;
|
|
5040
|
-
}
|
|
5041
|
-
}
|
|
5042
|
-
|
|
5043
|
-
return prop;
|
|
5044
|
-
}
|
|
5045
|
-
};
|
|
5046
|
-
|
|
5047
|
-
// https://caniuse.com/#search=text-orientation
|
|
5048
|
-
|
|
5049
|
-
var textOrientation = {
|
|
5050
|
-
noPrefill: ['text-orientation'],
|
|
5051
|
-
supportedProperty: function supportedProperty(prop) {
|
|
5052
|
-
if (prop !== 'text-orientation') return false;
|
|
5053
|
-
|
|
5054
|
-
if (prefix.vendor === 'apple' && !prefix.isTouch) {
|
|
5055
|
-
return prefix.css + prop;
|
|
5056
|
-
}
|
|
5057
|
-
|
|
5058
|
-
return prop;
|
|
5059
|
-
}
|
|
5060
|
-
};
|
|
5061
|
-
|
|
5062
|
-
// https://caniuse.com/#search=transform
|
|
5063
|
-
|
|
5064
|
-
var transform = {
|
|
5065
|
-
noPrefill: ['transform'],
|
|
5066
|
-
supportedProperty: function supportedProperty(prop, style, options) {
|
|
5067
|
-
if (prop !== 'transform') return false;
|
|
5068
|
-
|
|
5069
|
-
if (options.transform) {
|
|
5070
|
-
return prop;
|
|
5071
|
-
}
|
|
5072
|
-
|
|
5073
|
-
return prefix.css + prop;
|
|
5074
|
-
}
|
|
5075
|
-
};
|
|
5076
|
-
|
|
5077
|
-
// https://caniuse.com/#search=transition
|
|
5078
|
-
|
|
5079
|
-
var transition = {
|
|
5080
|
-
noPrefill: ['transition'],
|
|
5081
|
-
supportedProperty: function supportedProperty(prop, style, options) {
|
|
5082
|
-
if (prop !== 'transition') return false;
|
|
5083
|
-
|
|
5084
|
-
if (options.transition) {
|
|
5085
|
-
return prop;
|
|
5086
|
-
}
|
|
5087
|
-
|
|
5088
|
-
return prefix.css + prop;
|
|
5089
|
-
}
|
|
5090
|
-
};
|
|
5091
|
-
|
|
5092
|
-
// https://caniuse.com/#search=writing-mode
|
|
5093
|
-
|
|
5094
|
-
var writingMode = {
|
|
5095
|
-
noPrefill: ['writing-mode'],
|
|
5096
|
-
supportedProperty: function supportedProperty(prop) {
|
|
5097
|
-
if (prop !== 'writing-mode') return false;
|
|
5098
|
-
|
|
5099
|
-
if (prefix.js === 'Webkit' || prefix.js === 'ms' && prefix.browser !== 'edge') {
|
|
5100
|
-
return prefix.css + prop;
|
|
5101
|
-
}
|
|
5102
|
-
|
|
5103
|
-
return prop;
|
|
5104
|
-
}
|
|
5105
|
-
};
|
|
5106
|
-
|
|
5107
|
-
// https://caniuse.com/#search=user-select
|
|
5108
|
-
|
|
5109
|
-
var userSelect = {
|
|
5110
|
-
noPrefill: ['user-select'],
|
|
5111
|
-
supportedProperty: function supportedProperty(prop) {
|
|
5112
|
-
if (prop !== 'user-select') return false;
|
|
5113
|
-
|
|
5114
|
-
if (prefix.js === 'Moz' || prefix.js === 'ms' || prefix.vendor === 'apple') {
|
|
5115
|
-
return prefix.css + prop;
|
|
5116
|
-
}
|
|
5117
|
-
|
|
5118
|
-
return prop;
|
|
5119
|
-
}
|
|
5120
|
-
};
|
|
5121
|
-
|
|
5122
|
-
// https://caniuse.com/#search=multicolumn
|
|
5123
|
-
// https://github.com/postcss/autoprefixer/issues/491
|
|
5124
|
-
// https://github.com/postcss/autoprefixer/issues/177
|
|
5125
|
-
|
|
5126
|
-
var breakPropsOld = {
|
|
5127
|
-
supportedProperty: function supportedProperty(prop, style) {
|
|
5128
|
-
if (!/^break-/.test(prop)) return false;
|
|
5129
|
-
|
|
5130
|
-
if (prefix.js === 'Webkit') {
|
|
5131
|
-
var jsProp = "WebkitColumn" + pascalize(prop);
|
|
5132
|
-
return jsProp in style ? prefix.css + "column-" + prop : false;
|
|
5133
|
-
}
|
|
5134
|
-
|
|
5135
|
-
if (prefix.js === 'Moz') {
|
|
5136
|
-
var _jsProp = "page" + pascalize(prop);
|
|
5137
|
-
|
|
5138
|
-
return _jsProp in style ? "page-" + prop : false;
|
|
5139
|
-
}
|
|
5140
|
-
|
|
5141
|
-
return false;
|
|
5142
|
-
}
|
|
5143
|
-
};
|
|
5144
|
-
|
|
5145
|
-
// See https://github.com/postcss/autoprefixer/issues/324.
|
|
5146
|
-
|
|
5147
|
-
var inlineLogicalOld = {
|
|
5148
|
-
supportedProperty: function supportedProperty(prop, style) {
|
|
5149
|
-
if (!/^(border|margin|padding)-inline/.test(prop)) return false;
|
|
5150
|
-
if (prefix.js === 'Moz') return prop;
|
|
5151
|
-
var newProp = prop.replace('-inline', '');
|
|
5152
|
-
return prefix.js + pascalize(newProp) in style ? prefix.css + newProp : false;
|
|
5153
|
-
}
|
|
5154
|
-
};
|
|
5155
|
-
|
|
5156
|
-
// Camelization is required because we can't test using.
|
|
5157
|
-
// CSS syntax for e.g. in FF.
|
|
5158
|
-
|
|
5159
|
-
var unprefixed = {
|
|
5160
|
-
supportedProperty: function supportedProperty(prop, style) {
|
|
5161
|
-
return camelize(prop) in style ? prop : false;
|
|
5162
|
-
}
|
|
5163
|
-
};
|
|
5164
|
-
|
|
5165
|
-
var prefixed = {
|
|
5166
|
-
supportedProperty: function supportedProperty(prop, style) {
|
|
5167
|
-
var pascalized = pascalize(prop); // Return custom CSS variable without prefixing.
|
|
5168
|
-
|
|
5169
|
-
if (prop[0] === '-') return prop; // Return already prefixed value without prefixing.
|
|
5170
|
-
|
|
5171
|
-
if (prop[0] === '-' && prop[1] === '-') return prop;
|
|
5172
|
-
if (prefix.js + pascalized in style) return prefix.css + prop; // Try webkit fallback.
|
|
5173
|
-
|
|
5174
|
-
if (prefix.js !== 'Webkit' && "Webkit" + pascalized in style) return "-webkit-" + prop;
|
|
5175
|
-
return false;
|
|
5176
|
-
}
|
|
5177
|
-
};
|
|
5178
|
-
|
|
5179
|
-
// https://caniuse.com/#search=scroll-snap
|
|
5180
|
-
|
|
5181
|
-
var scrollSnap = {
|
|
5182
|
-
supportedProperty: function supportedProperty(prop) {
|
|
5183
|
-
if (prop.substring(0, 11) !== 'scroll-snap') return false;
|
|
5184
|
-
|
|
5185
|
-
if (prefix.js === 'ms') {
|
|
5186
|
-
return "" + prefix.css + prop;
|
|
5187
|
-
}
|
|
5188
|
-
|
|
5189
|
-
return prop;
|
|
5190
|
-
}
|
|
5191
|
-
};
|
|
5192
|
-
|
|
5193
|
-
// https://caniuse.com/#search=overscroll-behavior
|
|
5194
|
-
|
|
5195
|
-
var overscrollBehavior = {
|
|
5196
|
-
supportedProperty: function supportedProperty(prop) {
|
|
5197
|
-
if (prop !== 'overscroll-behavior') return false;
|
|
5198
|
-
|
|
5199
|
-
if (prefix.js === 'ms') {
|
|
5200
|
-
return prefix.css + "scroll-chaining";
|
|
5201
|
-
}
|
|
5202
|
-
|
|
5203
|
-
return prop;
|
|
5204
|
-
}
|
|
5205
|
-
};
|
|
5206
|
-
|
|
5207
|
-
var propMap = {
|
|
5208
|
-
'flex-grow': 'flex-positive',
|
|
5209
|
-
'flex-shrink': 'flex-negative',
|
|
5210
|
-
'flex-basis': 'flex-preferred-size',
|
|
5211
|
-
'justify-content': 'flex-pack',
|
|
5212
|
-
order: 'flex-order',
|
|
5213
|
-
'align-items': 'flex-align',
|
|
5214
|
-
'align-content': 'flex-line-pack' // 'align-self' is handled by 'align-self' plugin.
|
|
5215
|
-
|
|
5216
|
-
}; // Support old flex spec from 2012.
|
|
5217
|
-
|
|
5218
|
-
var flex2012 = {
|
|
5219
|
-
supportedProperty: function supportedProperty(prop, style) {
|
|
5220
|
-
var newProp = propMap[prop];
|
|
5221
|
-
if (!newProp) return false;
|
|
5222
|
-
return prefix.js + pascalize(newProp) in style ? prefix.css + newProp : false;
|
|
5223
|
-
}
|
|
5224
|
-
};
|
|
5225
|
-
|
|
5226
|
-
var propMap$1 = {
|
|
5227
|
-
flex: 'box-flex',
|
|
5228
|
-
'flex-grow': 'box-flex',
|
|
5229
|
-
'flex-direction': ['box-orient', 'box-direction'],
|
|
5230
|
-
order: 'box-ordinal-group',
|
|
5231
|
-
'align-items': 'box-align',
|
|
5232
|
-
'flex-flow': ['box-orient', 'box-direction'],
|
|
5233
|
-
'justify-content': 'box-pack'
|
|
5234
|
-
};
|
|
5235
|
-
var propKeys = Object.keys(propMap$1);
|
|
5236
|
-
|
|
5237
|
-
var prefixCss = function prefixCss(p) {
|
|
5238
|
-
return prefix.css + p;
|
|
5239
|
-
}; // Support old flex spec from 2009.
|
|
5240
|
-
|
|
5241
|
-
|
|
5242
|
-
var flex2009 = {
|
|
5243
|
-
supportedProperty: function supportedProperty(prop, style, _ref) {
|
|
5244
|
-
var multiple = _ref.multiple;
|
|
5245
|
-
|
|
5246
|
-
if (propKeys.indexOf(prop) > -1) {
|
|
5247
|
-
var newProp = propMap$1[prop];
|
|
5248
|
-
|
|
5249
|
-
if (!Array.isArray(newProp)) {
|
|
5250
|
-
return prefix.js + pascalize(newProp) in style ? prefix.css + newProp : false;
|
|
5251
|
-
}
|
|
5252
|
-
|
|
5253
|
-
if (!multiple) return false;
|
|
5254
|
-
|
|
5255
|
-
for (var i = 0; i < newProp.length; i++) {
|
|
5256
|
-
if (!(prefix.js + pascalize(newProp[0]) in style)) {
|
|
5257
|
-
return false;
|
|
5258
|
-
}
|
|
5259
|
-
}
|
|
5260
|
-
|
|
5261
|
-
return newProp.map(prefixCss);
|
|
5262
|
-
}
|
|
5263
|
-
|
|
5264
|
-
return false;
|
|
5265
|
-
}
|
|
5266
|
-
};
|
|
5267
|
-
|
|
5268
|
-
// plugins = [
|
|
5269
|
-
// ...plugins,
|
|
5270
|
-
// breakPropsOld,
|
|
5271
|
-
// inlineLogicalOld,
|
|
5272
|
-
// unprefixed,
|
|
5273
|
-
// prefixed,
|
|
5274
|
-
// scrollSnap,
|
|
5275
|
-
// flex2012,
|
|
5276
|
-
// flex2009
|
|
5277
|
-
// ]
|
|
5278
|
-
// Plugins without 'noPrefill' value, going last.
|
|
5279
|
-
// 'flex-*' plugins should be at the bottom.
|
|
5280
|
-
// 'flex2009' going after 'flex2012'.
|
|
5281
|
-
// 'prefixed' going after 'unprefixed'
|
|
5282
|
-
|
|
5283
|
-
var plugins = [appearence, colorAdjust, mask, textOrientation, transform, transition, writingMode, userSelect, breakPropsOld, inlineLogicalOld, unprefixed, prefixed, scrollSnap, overscrollBehavior, flex2012, flex2009];
|
|
5284
|
-
var propertyDetectors = plugins.filter(function (p) {
|
|
5285
|
-
return p.supportedProperty;
|
|
5286
|
-
}).map(function (p) {
|
|
5287
|
-
return p.supportedProperty;
|
|
5288
|
-
});
|
|
5289
|
-
var noPrefill = plugins.filter(function (p) {
|
|
5290
|
-
return p.noPrefill;
|
|
5291
|
-
}).reduce(function (a, p) {
|
|
5292
|
-
a.push.apply(a, _toConsumableArray(p.noPrefill));
|
|
5293
|
-
return a;
|
|
5294
|
-
}, []);
|
|
5295
|
-
|
|
5296
|
-
var el;
|
|
5297
|
-
var cache = {};
|
|
5298
|
-
|
|
5299
|
-
if (isInBrowser) {
|
|
5300
|
-
el = document.createElement('p'); // We test every property on vendor prefix requirement.
|
|
5301
|
-
// Once tested, result is cached. It gives us up to 70% perf boost.
|
|
5302
|
-
// http://jsperf.com/element-style-object-access-vs-plain-object
|
|
5303
|
-
//
|
|
5304
|
-
// Prefill cache with known css properties to reduce amount of
|
|
5305
|
-
// properties we need to feature test at runtime.
|
|
5306
|
-
// http://davidwalsh.name/vendor-prefix
|
|
5307
|
-
|
|
5308
|
-
var computed = window.getComputedStyle(document.documentElement, '');
|
|
5309
|
-
|
|
5310
|
-
for (var key$1 in computed) {
|
|
5311
|
-
// eslint-disable-next-line no-restricted-globals
|
|
5312
|
-
if (!isNaN(key$1)) cache[computed[key$1]] = computed[key$1];
|
|
5313
|
-
} // Properties that cannot be correctly detected using the
|
|
5314
|
-
// cache prefill method.
|
|
5315
|
-
|
|
5316
|
-
|
|
5317
|
-
noPrefill.forEach(function (x) {
|
|
5318
|
-
return delete cache[x];
|
|
5319
|
-
});
|
|
5320
|
-
}
|
|
5321
|
-
/**
|
|
5322
|
-
* Test if a property is supported, returns supported property with vendor
|
|
5323
|
-
* prefix if required. Returns `false` if not supported.
|
|
5324
|
-
*
|
|
5325
|
-
* @param {String} prop dash separated
|
|
5326
|
-
* @param {Object} [options]
|
|
5327
|
-
* @return {String|Boolean}
|
|
5328
|
-
* @api public
|
|
5329
|
-
*/
|
|
5330
|
-
|
|
5331
|
-
|
|
5332
|
-
function supportedProperty(prop, options) {
|
|
5333
|
-
if (options === void 0) {
|
|
5334
|
-
options = {};
|
|
5335
|
-
}
|
|
5336
|
-
|
|
5337
|
-
// For server-side rendering.
|
|
5338
|
-
if (!el) return prop; // Remove cache for benchmark tests or return property from the cache.
|
|
5339
|
-
|
|
5340
|
-
if (process.env.NODE_ENV !== 'benchmark' && cache[prop] != null) {
|
|
5341
|
-
return cache[prop];
|
|
5342
|
-
} // Check if 'transition' or 'transform' natively supported in browser.
|
|
5343
|
-
|
|
5344
|
-
|
|
5345
|
-
if (prop === 'transition' || prop === 'transform') {
|
|
5346
|
-
options[prop] = prop in el.style;
|
|
5347
|
-
} // Find a plugin for current prefix property.
|
|
5348
|
-
|
|
5349
|
-
|
|
5350
|
-
for (var i = 0; i < propertyDetectors.length; i++) {
|
|
5351
|
-
cache[prop] = propertyDetectors[i](prop, el.style, options); // Break loop, if value found.
|
|
5352
|
-
|
|
5353
|
-
if (cache[prop]) break;
|
|
5354
|
-
} // Reset styles for current property.
|
|
5355
|
-
// Firefox can even throw an error for invalid properties, e.g., "0".
|
|
5356
|
-
|
|
5357
|
-
|
|
5358
|
-
try {
|
|
5359
|
-
el.style[prop] = '';
|
|
5360
|
-
} catch (err) {
|
|
5361
|
-
return false;
|
|
5362
|
-
}
|
|
5363
|
-
|
|
5364
|
-
return cache[prop];
|
|
5365
|
-
}
|
|
5366
|
-
|
|
5367
|
-
var cache$1 = {};
|
|
5368
|
-
var transitionProperties = {
|
|
5369
|
-
transition: 1,
|
|
5370
|
-
'transition-property': 1,
|
|
5371
|
-
'-webkit-transition': 1,
|
|
5372
|
-
'-webkit-transition-property': 1
|
|
5373
|
-
};
|
|
5374
|
-
var transPropsRegExp = /(^\s*[\w-]+)|, (\s*[\w-]+)(?![^()]*\))/g;
|
|
5375
|
-
var el$1;
|
|
5376
|
-
/**
|
|
5377
|
-
* Returns prefixed value transition/transform if needed.
|
|
5378
|
-
*
|
|
5379
|
-
* @param {String} match
|
|
5380
|
-
* @param {String} p1
|
|
5381
|
-
* @param {String} p2
|
|
5382
|
-
* @return {String}
|
|
5383
|
-
* @api private
|
|
5384
|
-
*/
|
|
5385
|
-
|
|
5386
|
-
function prefixTransitionCallback(match, p1, p2) {
|
|
5387
|
-
if (p1 === 'var') return 'var';
|
|
5388
|
-
if (p1 === 'all') return 'all';
|
|
5389
|
-
if (p2 === 'all') return ', all';
|
|
5390
|
-
var prefixedValue = p1 ? supportedProperty(p1) : ", " + supportedProperty(p2);
|
|
5391
|
-
if (!prefixedValue) return p1 || p2;
|
|
5392
|
-
return prefixedValue;
|
|
5393
|
-
}
|
|
5394
|
-
|
|
5395
|
-
if (isInBrowser) el$1 = document.createElement('p');
|
|
5396
|
-
/**
|
|
5397
|
-
* Returns prefixed value if needed. Returns `false` if value is not supported.
|
|
5398
|
-
*
|
|
5399
|
-
* @param {String} property
|
|
5400
|
-
* @param {String} value
|
|
5401
|
-
* @return {String|Boolean}
|
|
5402
|
-
* @api public
|
|
5403
|
-
*/
|
|
5404
|
-
|
|
5405
|
-
function supportedValue(property, value) {
|
|
5406
|
-
// For server-side rendering.
|
|
5407
|
-
var prefixedValue = value;
|
|
5408
|
-
if (!el$1 || property === 'content') return value; // It is a string or a number as a string like '1'.
|
|
5409
|
-
// We want only prefixable values here.
|
|
5410
|
-
// eslint-disable-next-line no-restricted-globals
|
|
5411
|
-
|
|
5412
|
-
if (typeof prefixedValue !== 'string' || !isNaN(parseInt(prefixedValue, 10))) {
|
|
5413
|
-
return prefixedValue;
|
|
5414
|
-
} // Create cache key for current value.
|
|
5415
|
-
|
|
5416
|
-
|
|
5417
|
-
var cacheKey = property + prefixedValue; // Remove cache for benchmark tests or return value from cache.
|
|
5418
|
-
|
|
5419
|
-
if (process.env.NODE_ENV !== 'benchmark' && cache$1[cacheKey] != null) {
|
|
5420
|
-
return cache$1[cacheKey];
|
|
5421
|
-
} // IE can even throw an error in some cases, for e.g. style.content = 'bar'.
|
|
5422
|
-
|
|
5423
|
-
|
|
5424
|
-
try {
|
|
5425
|
-
// Test value as it is.
|
|
5426
|
-
el$1.style[property] = prefixedValue;
|
|
5427
|
-
} catch (err) {
|
|
5428
|
-
// Return false if value not supported.
|
|
5429
|
-
cache$1[cacheKey] = false;
|
|
5430
|
-
return false;
|
|
5431
|
-
} // If 'transition' or 'transition-property' property.
|
|
5432
|
-
|
|
5433
|
-
|
|
5434
|
-
if (transitionProperties[property]) {
|
|
5435
|
-
prefixedValue = prefixedValue.replace(transPropsRegExp, prefixTransitionCallback);
|
|
5436
|
-
} else if (el$1.style[property] === '') {
|
|
5437
|
-
// Value with a vendor prefix.
|
|
5438
|
-
prefixedValue = prefix.css + prefixedValue; // Hardcode test to convert "flex" to "-ms-flexbox" for IE10.
|
|
5439
|
-
|
|
5440
|
-
if (prefixedValue === '-ms-flex') el$1.style[property] = '-ms-flexbox'; // Test prefixed value.
|
|
5441
|
-
|
|
5442
|
-
el$1.style[property] = prefixedValue; // Return false if value not supported.
|
|
5443
|
-
|
|
5444
|
-
if (el$1.style[property] === '') {
|
|
5445
|
-
cache$1[cacheKey] = false;
|
|
5446
|
-
return false;
|
|
5447
|
-
}
|
|
5448
|
-
} // Reset styles for current property.
|
|
5449
|
-
|
|
5450
|
-
|
|
5451
|
-
el$1.style[property] = ''; // Write current value to cache.
|
|
5452
|
-
|
|
5453
|
-
cache$1[cacheKey] = prefixedValue;
|
|
5454
|
-
return cache$1[cacheKey];
|
|
5455
|
-
}
|
|
5456
|
-
|
|
5457
|
-
cssVendor_cjs.prefix = prefix;
|
|
5458
|
-
var supportedKeyframes_1 = cssVendor_cjs.supportedKeyframes = supportedKeyframes;
|
|
5459
|
-
var supportedProperty_1 = cssVendor_cjs.supportedProperty = supportedProperty;
|
|
5460
|
-
var supportedValue_1 = cssVendor_cjs.supportedValue = supportedValue;
|
|
5461
|
-
|
|
5462
|
-
/**
|
|
5463
|
-
* Add vendor prefix to a property name when needed.
|
|
5464
|
-
*/
|
|
5465
|
-
|
|
5466
|
-
function jssVendorPrefixer() {
|
|
5467
|
-
function onProcessRule(rule) {
|
|
5468
|
-
if (rule.type === 'keyframes') {
|
|
5469
|
-
var atRule = rule;
|
|
5470
|
-
atRule.at = supportedKeyframes_1(atRule.at);
|
|
5471
|
-
}
|
|
5472
|
-
}
|
|
5473
|
-
|
|
5474
|
-
function prefixStyle(style) {
|
|
5475
|
-
for (var prop in style) {
|
|
5476
|
-
var value = style[prop];
|
|
5477
|
-
|
|
5478
|
-
if (prop === 'fallbacks' && Array.isArray(value)) {
|
|
5479
|
-
style[prop] = value.map(prefixStyle);
|
|
5480
|
-
continue;
|
|
5481
|
-
}
|
|
5482
|
-
|
|
5483
|
-
var changeProp = false;
|
|
5484
|
-
var supportedProp = supportedProperty_1(prop);
|
|
5485
|
-
if (supportedProp && supportedProp !== prop) changeProp = true;
|
|
5486
|
-
var changeValue = false;
|
|
5487
|
-
var supportedValue$1 = supportedValue_1(supportedProp, toCssValue(value));
|
|
5488
|
-
if (supportedValue$1 && supportedValue$1 !== value) changeValue = true;
|
|
5489
|
-
|
|
5490
|
-
if (changeProp || changeValue) {
|
|
5491
|
-
if (changeProp) delete style[prop];
|
|
5492
|
-
style[supportedProp || prop] = supportedValue$1 || value;
|
|
5493
|
-
}
|
|
5494
|
-
}
|
|
5495
|
-
|
|
5496
|
-
return style;
|
|
5497
|
-
}
|
|
5498
|
-
|
|
5499
|
-
function onProcessStyle(style, rule) {
|
|
5500
|
-
if (rule.type !== 'style') return style;
|
|
5501
|
-
return prefixStyle(style);
|
|
5502
|
-
}
|
|
5503
|
-
|
|
5504
|
-
function onChangeValue(value, prop) {
|
|
5505
|
-
return supportedValue_1(prop, toCssValue(value)) || value;
|
|
5506
|
-
}
|
|
5507
|
-
|
|
5508
|
-
return {
|
|
5509
|
-
onProcessRule: onProcessRule,
|
|
5510
|
-
onProcessStyle: onProcessStyle,
|
|
5511
|
-
onChangeValue: onChangeValue
|
|
5512
|
-
};
|
|
5513
|
-
}
|
|
5514
|
-
|
|
5515
|
-
/**
|
|
5516
|
-
* Sort props by length.
|
|
5517
|
-
*/
|
|
5518
|
-
function jssPropsSort() {
|
|
5519
|
-
var sort = function sort(prop0, prop1) {
|
|
5520
|
-
if (prop0.length === prop1.length) {
|
|
5521
|
-
return prop0 > prop1 ? 1 : -1;
|
|
5522
|
-
}
|
|
5523
|
-
|
|
5524
|
-
return prop0.length - prop1.length;
|
|
5525
|
-
};
|
|
5526
|
-
|
|
5527
|
-
return {
|
|
5528
|
-
onProcessStyle: function onProcessStyle(style, rule) {
|
|
5529
|
-
if (rule.type !== 'style') return style;
|
|
5530
|
-
var newStyle = {};
|
|
5531
|
-
var props = Object.keys(style).sort(sort);
|
|
5532
|
-
|
|
5533
|
-
for (var i = 0; i < props.length; i++) {
|
|
5534
|
-
newStyle[props[i]] = style[props[i]];
|
|
5535
|
-
}
|
|
5536
|
-
|
|
5537
|
-
return newStyle;
|
|
5538
|
-
}
|
|
5539
|
-
};
|
|
5540
|
-
}
|
|
5541
|
-
|
|
5542
|
-
var create = function create(options) {
|
|
5543
|
-
if (options === void 0) {
|
|
5544
|
-
options = {};
|
|
5545
|
-
}
|
|
5546
|
-
|
|
5547
|
-
return {
|
|
5548
|
-
plugins: [functionPlugin(), observablePlugin(options.observable), templatePlugin(), jssGlobal(), jssExtend(), jssNested(), jssCompose(), camelCase(), defaultUnit(options.defaultUnit), jssExpand(), jssVendorPrefixer(), jssPropsSort()]
|
|
5549
|
-
};
|
|
5550
|
-
};
|
|
5551
|
-
|
|
5552
|
-
index.setup({
|
|
5553
|
-
...create(),
|
|
5554
|
-
createGenerateId: () => (rule) => rule.key,
|
|
5555
|
-
plugins: [...create().plugins, dist({ combineMediaQueries: true })],
|
|
5556
|
-
});
|
|
5557
|
-
const isScrollable = (isPrevHidden, isNextHidden) => {
|
|
5558
|
-
return !(isPrevHidden && isNextHidden);
|
|
5559
|
-
};
|
|
5560
|
-
|
|
5561
|
-
const hasDocument = typeof document !== 'undefined';
|
|
5562
|
-
|
|
5563
|
-
hasDocument && 'scrollBehavior' in document.documentElement.style;
|
|
5564
|
-
const win = typeof window !== 'undefined' ? window : {};
|
|
5565
|
-
win.document || { head: {} };
|
|
5566
|
-
(win.HTMLElement || class {
|
|
5567
|
-
});
|
|
5568
|
-
|
|
5569
|
-
const isThemeDark = (theme) => {
|
|
5570
|
-
return theme === 'dark';
|
|
5571
|
-
};
|
|
5572
|
-
|
|
5573
|
-
const formatObjectOutput = (value) => {
|
|
5574
|
-
return JSON.stringify(value)
|
|
5575
|
-
.replace(/"([a-zA-Z?]+)":/g, '$1:') // remove double quotes from keys
|
|
5576
|
-
.replace(/([,:{])/g, '$1 ') // add space after following: ,:{
|
|
5577
|
-
.replace(/(})/g, ' $1') // add space before following: }
|
|
5578
|
-
.replace(/^"(.+)"$/, '$1'); // remove wrapping double quotes
|
|
5579
|
-
};
|
|
5580
|
-
'value, ' +
|
|
5581
|
-
formatObjectOutput(BREAKPOINTS.reduce((prev, key) => (Object.assign(Object.assign({}, prev), { [key + (key !== 'base' ? '?' : '')]: 'value' })), {})).replace(/"/g, '');
|
|
5582
|
-
|
|
5583
|
-
const HEADING_TAGS = ['h1', 'h2', 'h3', 'h4', 'h5', 'h6'];
|
|
5584
|
-
|
|
5585
|
-
const getLinkButtonThemeForIcon = (variant, theme) => variant === 'primary' ? (theme === 'light' ? 'dark' : 'light') : theme;
|
|
5586
|
-
const resizeMap = new Map();
|
|
5587
|
-
const isResizeObserverDefined = () => hasWindow && 'ResizeObserver' in window;
|
|
5588
|
-
isResizeObserverDefined() &&
|
|
5589
|
-
new ResizeObserver((entries) => {
|
|
5590
|
-
entries.forEach((resizeEntry) => { var _a; return (_a = resizeMap.get(resizeEntry.target)) === null || _a === void 0 ? void 0 : _a(resizeEntry); });
|
|
5591
|
-
});
|
|
5592
|
-
const getButtonPureAriaAttributes = (isDisabled, isLoading, aria) => {
|
|
5593
|
-
return Object.assign(Object.assign({}, parseAndGetAriaAttributes(aria)), getButtonBaseAriaAttributes(isDisabled, isLoading));
|
|
5594
|
-
};
|
|
5595
|
-
|
|
5596
|
-
const getButtonAriaAttributes = (isDisabled, isLoading, aria) => {
|
|
5597
|
-
return Object.assign(Object.assign({}, parseAndGetAriaAttributes(aria)), getButtonBaseAriaAttributes(isDisabled, isLoading));
|
|
5598
|
-
};
|
|
5599
|
-
getMediaQueryMin('s');
|
|
5600
|
-
getMediaQueryMin('xxl');
|
|
5601
|
-
typeof HTMLElement !== 'undefined' && HTMLElement.prototype.hasOwnProperty('inert');
|
|
5602
|
-
|
|
5603
|
-
const DISPLAY_TAGS = ['h1', 'h2', 'h3', 'h4', 'h5', 'h6'];
|
|
5604
|
-
const displaySizeToTagMap = {
|
|
5605
|
-
medium: 'h2',
|
|
5606
|
-
large: 'h1',
|
|
5607
|
-
inherit: 'h1',
|
|
5608
|
-
};
|
|
5609
|
-
const getDisplayTagType = (host, size, tag) => {
|
|
5610
|
-
if (hasSpecificSlottedTag(host, DISPLAY_TAGS.join())) {
|
|
5611
|
-
return 'div';
|
|
5612
|
-
}
|
|
5613
|
-
else if (tag) {
|
|
5614
|
-
return tag;
|
|
5615
|
-
}
|
|
5616
|
-
else {
|
|
5617
|
-
return displaySizeToTagMap[size] || 'h1';
|
|
5618
|
-
}
|
|
5619
|
-
};
|
|
5620
|
-
const headingSizeToTagMap = {
|
|
5621
|
-
small: 'h6',
|
|
5622
|
-
medium: 'h5',
|
|
5623
|
-
large: 'h4',
|
|
5624
|
-
'x-large': 'h3',
|
|
5625
|
-
'xx-large': 'h2',
|
|
5626
|
-
'xxx-large': 'h1',
|
|
5627
|
-
inherit: 'h1',
|
|
5628
|
-
};
|
|
5629
|
-
const getHeadingTagType = (host, size, tag) => {
|
|
5630
|
-
if (hasSpecificSlottedTag(host, HEADING_TAGS.join())) {
|
|
5631
|
-
return 'div';
|
|
5632
|
-
}
|
|
5633
|
-
else if (tag) {
|
|
5634
|
-
return tag;
|
|
5635
|
-
}
|
|
5636
|
-
else {
|
|
5637
|
-
return headingSizeToTagMap[size] || 'h2';
|
|
5638
|
-
}
|
|
5639
|
-
};
|
|
5640
|
-
const HEADLINE_TAGS = ['h1', 'h2', 'h3', 'h4', 'h5', 'h6'];
|
|
5641
|
-
const variantToTagMap = {
|
|
5642
|
-
'large-title': 'h1',
|
|
5643
|
-
'headline-1': 'h1',
|
|
5644
|
-
'headline-2': 'h2',
|
|
5645
|
-
'headline-3': 'h3',
|
|
5646
|
-
'headline-4': 'h4',
|
|
5647
|
-
'headline-5': 'h5',
|
|
5648
|
-
};
|
|
5649
|
-
const getHeadlineTagType = (host, variant, tag) => {
|
|
5650
|
-
if (hasSpecificSlottedTag(host, HEADLINE_TAGS.join())) {
|
|
5651
|
-
return 'div';
|
|
5652
|
-
}
|
|
5653
|
-
else if (tag) {
|
|
5654
|
-
return tag;
|
|
5655
|
-
}
|
|
5656
|
-
else {
|
|
5657
|
-
return variantToTagMap[variant] || 'h1';
|
|
5658
|
-
}
|
|
5659
|
-
};
|
|
3745
|
+
else if (tag) {
|
|
3746
|
+
return tag;
|
|
3747
|
+
}
|
|
3748
|
+
else {
|
|
3749
|
+
return variantToTagMap[variant] || 'h1';
|
|
3750
|
+
}
|
|
3751
|
+
};
|
|
5660
3752
|
|
|
5661
3753
|
const CDN_BASE_URL$2 = (typeof window !== 'undefined' && window.PORSCHE_DESIGN_SYSTEM_CDN === 'cn' ? 'https://cdn.ui.porsche.cn' : 'https://cdn.ui.porsche.com') + '/porsche-design-system/icons';
|
|
5662
3754
|
const ICONS_MANIFEST = { "360": "360.min.5f2fcac02969bc425484fe8d80e5a1c9.svg", "accessibility": "accessibility.min.295a9d53a11c42212b8cce594982dfd2.svg", "active-cabin-ventilation": "active-cabin-ventilation.min.030c46def7a7397091d920b65bc0da3c.svg", "add": "add.min.8578a2d10c79a78e398e963b506b6cb5.svg", "adjust": "adjust.min.cdb89f5c161a4c82328fe60e72a88c59.svg", "arrow-double-down": "arrow-double-down.min.3b17923187ef2114d1f17da042fc97ca.svg", "arrow-double-left": "arrow-double-left.min.bba22e26f025c439b600bf74f0566465.svg", "arrow-double-right": "arrow-double-right.min.14f743d4adb5467fc0e95ac7f6426e1f.svg", "arrow-double-up": "arrow-double-up.min.8e3b3e31d227366f916c91dcb6e1b466.svg", "arrow-down": "arrow-down.min.84e69acc6554637cc373b8a4f50ba991.svg", "arrow-first": "arrow-first.min.bc51317ecf4953a664870ebab5059775.svg", "arrow-head-down": "arrow-head-down.min.454c189f4914925447670d0ae9bd2043.svg", "arrow-head-left": "arrow-head-left.min.aa2da7b4dbbb8a28c046592290054e94.svg", "arrow-head-right": "arrow-head-right.min.fb602ae5cb51970770570a70287e77e9.svg", "arrow-head-up": "arrow-head-up.min.2c282619214e4f998e1ac64a61b5545b.svg", "arrow-last": "arrow-last.min.72553c4284717d4961f8bcf8d51e0303.svg", "arrow-left": "arrow-left.min.24e8467ef0f8f206f228a3d8d443d70b.svg", "arrow-right": "arrow-right.min.8fb7b42d2d08d60f918602aa28475c0b.svg", "arrow-up": "arrow-up.min.0bc737f7f2cc56ef65c5d33472e014b0.svg", "augmented-reality": "augmented-reality.min.290ff033e35774fd093e1ab8ed07e10f.svg", "battery-empty": "battery-empty.min.8594e37d3e67a95b85eb9935f02e69cf.svg", "battery-full": "battery-full.min.4c75acb5a64a6dd3116ede7b1859a6d6.svg", "bell": "bell.min.d69dc9a220dec323e758ccbff756b5b5.svg", "bookmark": "bookmark.min.0cb177c79674593133f6d3d384c5df4b.svg", "broadcast": "broadcast.min.edbfac03d4afdc964d350f54df79c6f3.svg", "calculator": "calculator.min.2518729352d3709e488e71dcbf449247.svg", "calendar": "calendar.min.588fabe880634ece974291f5adfee50d.svg", "camera": "camera.min.10af3a4fac8c289775390534a50606d0.svg", "car": "car.min.4eeec04c87a14bb5d3d316eeeee0185b.svg", "car-battery": "car-battery.min.2a619bbd456ad531c922bf8f51b70977.svg", "card": "card.min.06394222c7ca5d6c7e783d6f86f030a6.svg", "charging-active": "charging-active.min.915410d626a52a3a76b6bf498491c255.svg", "charging-state": "charging-state.min.c5cb87ef2808f824f352a6ebd9b9d4a9.svg", "charging-station": "charging-station.min.211fcf0f9a9bb50b6e83482ee588dda9.svg", "chart": "chart.min.267e23c07f47784c186c5119b870df76.svg", "chat": "chat.min.a8a52d1b8b463ee0e5a3b0d812c9a40c.svg", "check": "check.min.0cb26d9a5ee1d217e5054f1ad60ae3b4.svg", "city": "city.min.a99b88b51adda8244a2c72953a2f4ab4.svg", "climate": "climate.min.5d52b2880552275d9032afc0fa2b7296.svg", "climate-control": "climate-control.min.152235d2bf2b7ec6e1a3c40e6971c446.svg", "clock": "clock.min.bcea9f182e1fe861ea6e765650f79b38.svg", "close": "close.min.eefab6ef191882058f9ed548bd5a467e.svg", "closed-caption": "closed-caption.min.b93ac43c07223fda14249d2279823f6a.svg", "co2-emission": "co2-emission.min.788590454baa0f6c52dfc99a55fe0b85.svg", "compare": "compare.min.657a924ca48bf93d200d2e6539fa8050.svg", "configurate": "configurate.min.2d137bc6f43ee03587188b571c97aacd.svg", "country-road": "country-road.min.3ee2c1be9d063f5d7c5772fcc7ae2568.svg", "cubic-capacity": "cubic-capacity.min.b5df863671bdf059bce19eddc2990698.svg", "delete": "delete.min.fd9788c3a0842a7bb1d737c6de1969d1.svg", "disable": "disable.min.c3d85d4ed9738c077d19e524775dbd56.svg", "document": "document.min.d2db26d7049ab2180361c7ce40f52d57.svg", "download": "download.min.d7c63bcbadf4dd5b14c3c79a438d93f3.svg", "duration": "duration.min.9405be759f64c8253076f7e55c80c336.svg", "edit": "edit.min.06bde2175fafb58233fa1ce6d3d00f83.svg", "email": "email.min.eb8ff02812a48c5098d3c40614e8d9d7.svg", "error-filled": "error-filled.min.35d7da7cb866bcfd3a25859f8cd2246b.svg", "exclamation": "exclamation.min.6ca46945978bd4eb2a40dc29766b1882.svg", "external": "external.min.b804bef35446f6b3cb379c121de3f13d.svg", "filter": "filter.min.60f168332c7550dfdf714ed0507877b0.svg", "flash": "flash.min.e5a6de1239300a6104076ee67aec42ca.svg", "fuel-station": "fuel-station.min.0155159076984cccdbfe854eb4da3720.svg", "garage": "garage.min.463577e6a1ffac592b5aa7bec9a82d39.svg", "gift": "gift.min.eeb1a5871a4008bcafd9495fe11ec9bc.svg", "globe": "globe.min.50fd2c886a822673902bd106efc73c3f.svg", "grid": "grid.min.c36c5015115005dcb9c948f07af0be80.svg", "highway": "highway.min.ea773dcf33a43fa8e82beae96c1222b7.svg", "home": "home.min.2bdc01bb7c9b39fa5ef5a81c8c3f9f49.svg", "horn": "horn.min.77105eb430a033a3ffdf21f9fecd32de.svg", "image": "image.min.851c64681e1950312a934a723ca04a85.svg", "increase": "increase.min.45bfe421e86192da37c8cca4917c10c2.svg", "information": "information.min.d387e44cc786ca3df3702f429518a1d9.svg", "information-filled": "information-filled.min.1055e842bb7d89c061ff1b5f47ed6169.svg", "key": "key.min.37b5e8ff9fda430f855f4b82bfd03485.svg", "leaf": "leaf.min.ea91b1d04ade4c49640e89ade35c9d90.svg", "leather": "leather.min.ef9e664d2fc3c28171fbd3d93b079503.svg", "light": "light.min.5fa3dd77ee9c63e28614c4c7c4a6d39c.svg", "list": "list.min.ecaeee96ec6cf2f8c9028ea404113a9e.svg", "locate": "locate.min.c28bdf292bbf297eb8109a272e2ffb91.svg", "lock": "lock.min.d258c21c7217cd1342307c45ecd5176e.svg", "lock-open": "lock-open.min.2ef427e273635e3aab7601b0fe92e86e.svg", "logo-baidu": "logo-baidu.min.a8eb57b32e616b21820d86882835fe20.svg", "logo-delicious": "logo-delicious.min.fc2927d4979ffaed1f23160091e0975e.svg", "logo-digg": "logo-digg.min.d7340b3f22cf4a22a8ac3b472c16e0e2.svg", "logo-facebook": "logo-facebook.min.0c2e020d0b61d37e76e6bab67e4d149e.svg", "logo-foursquare": "logo-foursquare.min.b2699d993d9d731892ba01874c0e023d.svg", "logo-gmail": "logo-gmail.min.0c14069d86c2ba0a42c726d96f0cae9c.svg", "logo-google": "logo-google.min.c1f3931d74e40e5cdc875236b7e674a1.svg", "logo-hatena": "logo-hatena.min.021834899da6e6f6a9dd963f4fc3337c.svg", "logo-instagram": "logo-instagram.min.2f8c578e2472dc13b2f0ec8d1b936442.svg", "logo-kaixin": "logo-kaixin.min.8fb995689a3442669df37b5f375922fc.svg", "logo-kakaotalk": "logo-kakaotalk.min.988146b4cd8bced103fd8b5a9be064d8.svg", "logo-linkedin": "logo-linkedin.min.e4848fd4b74404e504fd1a4d5a25b960.svg", "logo-naver": "logo-naver.min.13f97e4c3ad4898d169904caa609f2d0.svg", "logo-pinterest": "logo-pinterest.min.101284bac1d7cf468719fccf416069df.svg", "logo-qq": "logo-qq.min.5d89ab35e4e00e81deadaa2fe0d51a5d.svg", "logo-qq-share": "logo-qq-share.min.01da8f9d6665f4529f349f88b4fb0cfc.svg", "logo-reddit": "logo-reddit.min.40dd42ee1368dbc74611afee4d3c9850.svg", "logo-skyrock": "logo-skyrock.min.9440a0e4a088cdfbfcc99bc91010768a.svg", "logo-sohu": "logo-sohu.min.d7a030336d712a2b44982e65071cd2bc.svg", "logo-tecent": "logo-tecent.min.fd1ec329327f4cbf5706c393df66af9d.svg", "logo-telegram": "logo-telegram.min.624fca36dd6f6c5b64bce6e617372d77.svg", "logo-tiktok": "logo-tiktok.min.9c5ffad4c76353afaa99feca9e4f2f0a.svg", "logo-tumblr": "logo-tumblr.min.9b77d06b659cee9d5f45015c33c23967.svg", "logo-twitter": "logo-twitter.min.ac4d6b189cd2a47e4fac75bedb76b5bd.svg", "logo-viber": "logo-viber.min.330fbae7d2683b7910d828cbe864f738.svg", "logo-vk": "logo-vk.min.727ba204a194c8cf1b7fc389ac1db14b.svg", "logo-wechat": "logo-wechat.min.0392ff30f188aa9f52480e965142474a.svg", "logo-weibo": "logo-weibo.min.3ded49004baea42d85fa6fcb9d79ccb1.svg", "logo-whatsapp": "logo-whatsapp.min.02c83d3cbde89763eee8fc3bcab02257.svg", "logo-xing": "logo-xing.min.6a5f5fde119a841823d0ef05293b3454.svg", "logo-yahoo": "logo-yahoo.min.622e886e777c08cf80c31dc99ca13f1a.svg", "logo-youku": "logo-youku.min.d35a5283c6d3094748f565c729f56d9f.svg", "logo-youtube": "logo-youtube.min.59c939904cbec0c7793289eb5e68cb99.svg", "logout": "logout.min.aa54756e3aec12f347fdec0a2905a232.svg", "map": "map.min.643551801bfc27a93438c30ebe1d1387.svg", "menu-dots-horizontal": "menu-dots-horizontal.min.94e0804e3a5a30a577cab6296ad8d15d.svg", "menu-dots-vertical": "menu-dots-vertical.min.7ec3f5be33dd3459d7a9bed9fdbe22d3.svg", "menu-lines": "menu-lines.min.30ff09f6e2ce846286dd136279636097.svg", "minus": "minus.min.00cca11ec9ce4bd913abba2059c3f10b.svg", "mobile": "mobile.min.71d3c0d7fb4349383562cc233478f7fb.svg", "moon": "moon.min.5c447b4013210e7c7723ca4b6fdbfa9f.svg", "oil-can": "oil-can.min.31978141ee5529f97833027b1e03294a.svg", "parking-brake": "parking-brake.min.f03105e84898f1db02c6fcbdd008bfcf.svg", "parking-light": "parking-light.min.968af68684df1220b15cff6616e8376e.svg", "pause": "pause.min.dd29b256b73311abf1549ed16fe7a47b.svg", "phone": "phone.min.e1a58c454ffe074b30a5bb16c75ff23f.svg", "pin": "pin.min.c6ce5ea394fd9cf9dca80a592e2aeae4.svg", "play": "play.min.703fb2dbebac16ea91a6524914626ae2.svg", "plug": "plug.min.02d79b2702ac5c41020b54bd9eedf523.svg", "plus": "plus.min.dd34f71292a547080b9247a72c1adda2.svg", "preheating": "preheating.min.96ccdd3d24b0634ca820dc894894a34d.svg", "printer": "printer.min.bcd50214772a8fcc1d0f0ae1205610bf.svg", "purchase": "purchase.min.70535cff1a085154ab49ab958fe91aae.svg", "question": "question.min.df469b72598d2dbfb458c46430c0690a.svg", "racing-flag": "racing-flag.min.1aee1d177d44aaaca113a8b7a81db573.svg", "refresh": "refresh.min.36ced59c8e8d06980d6ac20cca8a9057.svg", "replay": "replay.min.d4f212bf3d5f8fe166d78dba57eeacde.svg", "reset": "reset.min.e1ce71f684b6e83b9ed8182389bd407f.svg", "route": "route.min.49f1935d2a563b150bb382eb56a04972.svg", "rss": "rss.min.eaf3873673fcbff72833e7a77f9510f8.svg", "save": "save.min.6506e50ad89aee223e85fe52242c232e.svg", "screen": "screen.min.c17978f44a7bf9f7d80f178fd2b7d116.svg", "search": "search.min.f2755d61c24b6ad037f51d65588be308.svg", "send": "send.min.544f2b90e562b8582808f735846b1351.svg", "share": "share.min.b7b59aa7085cc865735acfd940480234.svg", "shopping-bag": "shopping-bag.min.9d99682e614f5bbb9760c1a0272bd1e0.svg", "shopping-cart": "shopping-cart.min.05a6c651afb21246daba2e941e8366cc.svg", "sidelights": "sidelights.min.996d591ee87247eae32968bf0b588d1e.svg", "snowflake": "snowflake.min.cf85d1b3c62e223ffb80d8c838d4f0b8.svg", "sort": "sort.min.d90a6657569305b9b09b0c6997b5b915.svg", "stack": "stack.min.d36295767f8e2540bbbf60278114ca09.svg", "star": "star.min.d7445429f599f915661e6c57841ae339.svg", "steering-wheel": "steering-wheel.min.c632bf7d06f41d68f0a95d76615f3981.svg", "stopwatch": "stopwatch.min.c90f1fde0961349fe79c0b077f7b0d41.svg", "subtract": "subtract.min.bb9f2dcb0c81ac7f216f6fe2ba916c09.svg", "success": "success.min.4401a4715549bd7dfaaa4f54684b2088.svg", "success-filled": "success-filled.min.c9cb3c66aebf9c4f40b897064f901335.svg", "sun": "sun.min.a68eb6225965558e4498d3d38c33d52a.svg", "switch": "switch.min.ab6c8b55ab119d9bd5170a1893a75ed2.svg", "tablet": "tablet.min.60e7c4ef821bf610d2b2d5b06c7e88b7.svg", "tachometer": "tachometer.min.348f8c5eed7c61993a864ebcffee98bd.svg", "truck": "truck.min.43f91b0320003695d8804cf6a8a86da4.svg", "upload": "upload.min.cf3aaf8fb27e339d26133cbd6a5332ca.svg", "user": "user.min.0f8dcfbe34322e7968b4b23e11d963f0.svg", "user-group": "user-group.min.87f6ca16e7174b9a8d1894283a8ff1d4.svg", "user-manual": "user-manual.min.0b87e500e3d747e67be964c47a3ae312.svg", "video": "video.min.107dfd64c6fd7398dd48b94d61b2fe11.svg", "view": "view.min.cd78cae7309f44d941e9264047e3efa0.svg", "view-off": "view-off.min.e27746517bdb4c2c9ae5f025c7e74991.svg", "volume-off": "volume-off.min.711d24824df04d61c3129bbdcdbfa083.svg", "volume-up": "volume-up.min.0a2ebc984c6b9d2f53c747f9ba2028f1.svg", "warning": "warning.min.04529c502dddce98f0ae2eec0bfb3432.svg", "warning-filled": "warning-filled.min.ee8effcdc653f660043f909b6f0c938b.svg", "weight": "weight.min.47ef0b98ca8ed590dd7d6e6c3f1bcd46.svg", "wifi": "wifi.min.14540859e9241374bd9d0c89eb85667b.svg", "work": "work.min.d17986d8fcff6a5fcd5e9925e838fade.svg", "wrench": "wrench.min.90e402dc170fe83de23e2c11588ba037.svg", "wrenches": "wrenches.min.990b074555825a218e86fd35397fc88c.svg", "zoom-in": "zoom-in.min.22fa9d7ee8748debc801fe910f2d3d01.svg", "zoom-out": "zoom-out.min.9408a4dc5786ed5a783a729e58ab3d6d.svg" };
|
|
@@ -5944,12 +4036,23 @@ const isSortable = (active, direction) => {
|
|
|
5944
4036
|
};
|
|
5945
4037
|
|
|
5946
4038
|
const getThemeForIcon = (color, theme) => {
|
|
5947
|
-
return
|
|
4039
|
+
return color === 'neutral-contrast-high' || color === 'primary' ? (isThemeDark(theme) ? 'light' : 'dark') : theme;
|
|
5948
4040
|
};
|
|
5949
4041
|
const isType = (inputType, typeToValidate) => inputType === typeToValidate;
|
|
5950
4042
|
const isWithinForm = (host) => !!getClosestHTMLElement(host, 'form');
|
|
5951
4043
|
const hasLocateAction = (icon) => icon === 'locate';
|
|
5952
|
-
|
|
4044
|
+
// eslint-disable-next-line no-underscore-dangle
|
|
4045
|
+
const _hasShowPickerSupport = () => {
|
|
4046
|
+
return (hasDocument &&
|
|
4047
|
+
'showPicker' in HTMLInputElement.prototype &&
|
|
4048
|
+
// TODO: it would be better to determinate support by checking for existence of "calendar-picker-indicator"
|
|
4049
|
+
!!window.navigator.userAgent.match(/chrome|chromium|crios|edg/i));
|
|
4050
|
+
};
|
|
4051
|
+
const hasShowPickerSupport = _hasShowPickerSupport();
|
|
4052
|
+
const showCustomCalendarOrTimeIndicator = (isCalendar, isTime) => {
|
|
4053
|
+
return hasShowPickerSupport && (isCalendar || isTime);
|
|
4054
|
+
};
|
|
4055
|
+
const isListTypeOrdered = (type) => type !== 'unordered';
|
|
5953
4056
|
|
|
5954
4057
|
const TEXT_TAGS = ['p', 'span', 'div', 'address', 'blockquote', 'figcaption', 'cite', 'time', 'legend'];
|
|
5955
4058
|
const getTextTagType = (host, tag) => {
|
|
@@ -5966,6 +4069,7 @@ exports.DISPLAY_TAGS = DISPLAY_TAGS;
|
|
|
5966
4069
|
exports.HEADING_TAGS = HEADING_TAGS;
|
|
5967
4070
|
exports.HEADLINE_TAGS = HEADLINE_TAGS;
|
|
5968
4071
|
exports.TEXT_TAGS = TEXT_TAGS;
|
|
4072
|
+
exports._hasShowPickerSupport = _hasShowPickerSupport;
|
|
5969
4073
|
exports.attributeMutationMap = attributeMutationMap;
|
|
5970
4074
|
exports.buildIconUrl = buildIconUrl;
|
|
5971
4075
|
exports.buildSrcSet = buildSrcSet;
|
|
@@ -6016,6 +4120,7 @@ exports.itemTypes = itemTypes;
|
|
|
6016
4120
|
exports.parseAndGetAriaAttributes = parseAndGetAriaAttributes;
|
|
6017
4121
|
exports.parseJSONAttribute = parseJSONAttribute;
|
|
6018
4122
|
exports.resizeMap = resizeMap;
|
|
4123
|
+
exports.showCustomCalendarOrTimeIndicator = showCustomCalendarOrTimeIndicator;
|
|
6019
4124
|
exports.supportsConstructableStylesheets = supportsConstructableStylesheets;
|
|
6020
4125
|
exports.tempDiv = tempDiv;
|
|
6021
4126
|
exports.tempIcon = tempIcon;
|