eco-vue-js 0.11.42 → 0.11.44

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/dist/main.js CHANGED
@@ -95,15 +95,17 @@ import _sfc_main$1r from './components/Select/WSelectStringified.vue.js';
95
95
  import _sfc_main$1s from './components/Shine/WShine.vue.js';
96
96
  import _sfc_main$1t from './components/Shine/WShineEffect.vue.js';
97
97
  import _sfc_main$1u from './components/Skeleton/WSkeleton.vue.js';
98
+ import _sfc_main$1v from './components/Slider/WSlider.vue.js';
99
+ import _sfc_main$1w from './components/Slider/WSliderRange.vue.js';
98
100
  import WSpinner from './components/Spinner/WSpinner.vue.js';
99
- import _sfc_main$1v from './components/Status/WStatusIcon.vue.js';
100
- import _sfc_main$1w from './components/Tabs/WTabs.vue.js';
101
- import _sfc_main$1x from './components/Tabs/WTabsColumns.vue.js';
102
- import _sfc_main$1y from './components/Tabs/WTabsItem.vue.js';
103
- import _sfc_main$1z from './components/Toggle/WToggle.vue.js';
104
- import _sfc_main$1A from './components/Toggle/WToggleTheme.vue.js';
105
- import _sfc_main$1B from './components/Tooltip/WTooltip.vue.js';
106
- import _sfc_main$1C from './components/Tooltip/WTooltipContainer.vue.js';
101
+ import _sfc_main$1x from './components/Status/WStatusIcon.vue.js';
102
+ import _sfc_main$1y from './components/Tabs/WTabs.vue.js';
103
+ import _sfc_main$1z from './components/Tabs/WTabsColumns.vue.js';
104
+ import _sfc_main$1A from './components/Tabs/WTabsItem.vue.js';
105
+ import _sfc_main$1B from './components/Toggle/WToggle.vue.js';
106
+ import _sfc_main$1C from './components/Toggle/WToggleTheme.vue.js';
107
+ import _sfc_main$1D from './components/Tooltip/WTooltip.vue.js';
108
+ import _sfc_main$1E from './components/Tooltip/WTooltipContainer.vue.js';
107
109
  export { ApiClientInstance, getURLParams } from './utils/ApiClient.js';
108
110
  export { DOMListenerContainer } from './utils/DOMListenerContainer.js';
109
111
  export { HorizontalAlign } from './utils/HorizontalAlign.js';
@@ -317,16 +319,18 @@ const main = {
317
319
  app.component("WShine", _sfc_main$1s);
318
320
  app.component("WShineEffect", _sfc_main$1t);
319
321
  app.component("WSkeleton", _sfc_main$1u);
322
+ app.component("WSlider", _sfc_main$1v);
323
+ app.component("WSliderRange", _sfc_main$1w);
320
324
  app.component("WSpinner", WSpinner);
321
- app.component("WStatusIcon", _sfc_main$1v);
322
- app.component("WTabs", _sfc_main$1w);
323
- app.component("WTabsColumns", _sfc_main$1x);
324
- app.component("WTabsItem", _sfc_main$1y);
325
- app.component("WToggle", _sfc_main$1z);
326
- app.component("WToggleTheme", _sfc_main$1A);
327
- app.component("WTooltip", _sfc_main$1B);
328
- app.component("WTooltipContainer", _sfc_main$1C);
325
+ app.component("WStatusIcon", _sfc_main$1x);
326
+ app.component("WTabs", _sfc_main$1y);
327
+ app.component("WTabsColumns", _sfc_main$1z);
328
+ app.component("WTabsItem", _sfc_main$1A);
329
+ app.component("WToggle", _sfc_main$1B);
330
+ app.component("WToggleTheme", _sfc_main$1C);
331
+ app.component("WTooltip", _sfc_main$1D);
332
+ app.component("WTooltipContainer", _sfc_main$1E);
329
333
  }
330
334
  };
331
335
 
332
- export { _sfc_main as WActionsBar, _sfc_main$1 as WActionsBarFilter, _sfc_main$2 as WBottomSheet, _sfc_main$3 as WButton, _sfc_main$4 as WButtonAction, _sfc_main$5 as WButtonCopy, _sfc_main$6 as WButtonDropdown, _sfc_main$7 as WButtonGroup, _sfc_main$8 as WButtonInput, _sfc_main$9 as WButtonMore, _sfc_main$a as WButtonMoreItem, _sfc_main$b as WButtonSelection, _sfc_main$c as WButtonSelectionAction, _sfc_main$d as WButtonSelectionState, _sfc_main$e as WButtonTab, _sfc_main$f as WButtonUnselect, _sfc_main$g as WChartLine, _sfc_main$h as WChartLinear, _sfc_main$i as WCheckbox, _sfc_main$j as WCheckboxGroup, _sfc_main$k as WCheckboxGroupMultiple, _sfc_main$l as WChip, _sfc_main$m as WClickOutside, _sfc_main$n as WCounter, _sfc_main$o as WDatePicker, _sfc_main$p as WDatePickerSingle, _sfc_main$q as WDismissable, _sfc_main$r as WDragContainer, _sfc_main$s as WDropdown, _sfc_main$t as WDropdownMenu, _sfc_main$u as WEmptyComponent, _sfc_main$v as WExpansion, _sfc_main$w as WExpansionItem, _sfc_main$x as WFieldWrapper, _sfc_main$y as WFilePicker, _sfc_main$z as WFilterWrapper, _sfc_main$A as WForm, _sfc_main$C as WFormAsyncButtonGroup, _sfc_main$D as WFormAsyncCheckboxGroup, _sfc_main$E as WFormAsyncInput, _sfc_main$F as WFormAsyncSelect, _sfc_main$G as WFormAsyncSelectInfiniteSingle, _sfc_main$H as WFormAsyncSelectSingle, _sfc_main$I as WFormAsyncSelectStringified, _sfc_main$J as WFormAsyncToggle, _sfc_main$B as WFormValidator, _sfc_main$K as WHeaderBar, _sfc_main$L as WHeaderBarSearch, _sfc_main$M as WImageViewer, _sfc_main$N as WInfiniteList, _sfc_main$O as WInfiniteListScrollingElement, _sfc_main$P as WInfiniteListWrapper, _sfc_main$Q as WInfoCard, _sfc_main$R as WInfoCardNegative, _sfc_main$S as WInput, _sfc_main$T as WInputAsync, _sfc_main$U as WInputDate, _sfc_main$V as WInputOptions, _sfc_main$W as WInputSuggest, _sfc_main$X as WInputToolbarButton, _sfc_main$Y as WLink, _sfc_main$Z as WLinkArrow, _sfc_main$_ as WList, _sfc_main$$ as WListCard, _sfc_main$10 as WListCardField, _sfc_main$11 as WListFilter, _sfc_main$12 as WListHeader, _sfc_main$13 as WListHeaderItem, _sfc_main$14 as WMenuItem, _sfc_main$15 as WModal, _sfc_main$16 as WModalExport, _sfc_main$17 as WModalExportSimple, _sfc_main$18 as WModalImport, _sfc_main$19 as WModalStepper, _sfc_main$1a as WModalWrapper, _sfc_main$1b as WNavBar, _sfc_main$1c as WNavItem, _sfc_main$1d as WNavItemExpand, WNavItemTransition, _sfc_main$1e as WNotify, _sfc_main$1f as WNumberFormatter, _sfc_main$1g as WPage, _sfc_main$1h as WPageBreadcrumbs, WPageNumerator, _sfc_main$1i as WPageTitle, _sfc_main$1j as WProgress, _sfc_main$1k as WProgressStriped, _sfc_main$1l as WRouterLink, _sfc_main$1m as WSelect, _sfc_main$1n as WSelectAsync, _sfc_main$1o as WSelectAsyncList, _sfc_main$1p as WSelectAsyncSingle, _sfc_main$1q as WSelectSingle, _sfc_main$1r as WSelectStringified, _sfc_main$1s as WShine, _sfc_main$1t as WShineEffect, _sfc_main$1u as WSkeleton, WSpinner, _sfc_main$1v as WStatusIcon, _sfc_main$1w as WTabs, _sfc_main$1x as WTabsColumns, _sfc_main$1y as WTabsItem, _sfc_main$1z as WToggle, _sfc_main$1A as WToggleTheme, _sfc_main$1B as WTooltip, _sfc_main$1C as WTooltipContainer, main as default };
336
+ export { _sfc_main as WActionsBar, _sfc_main$1 as WActionsBarFilter, _sfc_main$2 as WBottomSheet, _sfc_main$3 as WButton, _sfc_main$4 as WButtonAction, _sfc_main$5 as WButtonCopy, _sfc_main$6 as WButtonDropdown, _sfc_main$7 as WButtonGroup, _sfc_main$8 as WButtonInput, _sfc_main$9 as WButtonMore, _sfc_main$a as WButtonMoreItem, _sfc_main$b as WButtonSelection, _sfc_main$c as WButtonSelectionAction, _sfc_main$d as WButtonSelectionState, _sfc_main$e as WButtonTab, _sfc_main$f as WButtonUnselect, _sfc_main$g as WChartLine, _sfc_main$h as WChartLinear, _sfc_main$i as WCheckbox, _sfc_main$j as WCheckboxGroup, _sfc_main$k as WCheckboxGroupMultiple, _sfc_main$l as WChip, _sfc_main$m as WClickOutside, _sfc_main$n as WCounter, _sfc_main$o as WDatePicker, _sfc_main$p as WDatePickerSingle, _sfc_main$q as WDismissable, _sfc_main$r as WDragContainer, _sfc_main$s as WDropdown, _sfc_main$t as WDropdownMenu, _sfc_main$u as WEmptyComponent, _sfc_main$v as WExpansion, _sfc_main$w as WExpansionItem, _sfc_main$x as WFieldWrapper, _sfc_main$y as WFilePicker, _sfc_main$z as WFilterWrapper, _sfc_main$A as WForm, _sfc_main$C as WFormAsyncButtonGroup, _sfc_main$D as WFormAsyncCheckboxGroup, _sfc_main$E as WFormAsyncInput, _sfc_main$F as WFormAsyncSelect, _sfc_main$G as WFormAsyncSelectInfiniteSingle, _sfc_main$H as WFormAsyncSelectSingle, _sfc_main$I as WFormAsyncSelectStringified, _sfc_main$J as WFormAsyncToggle, _sfc_main$B as WFormValidator, _sfc_main$K as WHeaderBar, _sfc_main$L as WHeaderBarSearch, _sfc_main$M as WImageViewer, _sfc_main$N as WInfiniteList, _sfc_main$O as WInfiniteListScrollingElement, _sfc_main$P as WInfiniteListWrapper, _sfc_main$Q as WInfoCard, _sfc_main$R as WInfoCardNegative, _sfc_main$S as WInput, _sfc_main$T as WInputAsync, _sfc_main$U as WInputDate, _sfc_main$V as WInputOptions, _sfc_main$W as WInputSuggest, _sfc_main$X as WInputToolbarButton, _sfc_main$Y as WLink, _sfc_main$Z as WLinkArrow, _sfc_main$_ as WList, _sfc_main$$ as WListCard, _sfc_main$10 as WListCardField, _sfc_main$11 as WListFilter, _sfc_main$12 as WListHeader, _sfc_main$13 as WListHeaderItem, _sfc_main$14 as WMenuItem, _sfc_main$15 as WModal, _sfc_main$16 as WModalExport, _sfc_main$17 as WModalExportSimple, _sfc_main$18 as WModalImport, _sfc_main$19 as WModalStepper, _sfc_main$1a as WModalWrapper, _sfc_main$1b as WNavBar, _sfc_main$1c as WNavItem, _sfc_main$1d as WNavItemExpand, WNavItemTransition, _sfc_main$1e as WNotify, _sfc_main$1f as WNumberFormatter, _sfc_main$1g as WPage, _sfc_main$1h as WPageBreadcrumbs, WPageNumerator, _sfc_main$1i as WPageTitle, _sfc_main$1j as WProgress, _sfc_main$1k as WProgressStriped, _sfc_main$1l as WRouterLink, _sfc_main$1m as WSelect, _sfc_main$1n as WSelectAsync, _sfc_main$1o as WSelectAsyncList, _sfc_main$1p as WSelectAsyncSingle, _sfc_main$1q as WSelectSingle, _sfc_main$1r as WSelectStringified, _sfc_main$1s as WShine, _sfc_main$1t as WShineEffect, _sfc_main$1u as WSkeleton, _sfc_main$1v as WSlider, _sfc_main$1w as WSliderRange, WSpinner, _sfc_main$1x as WStatusIcon, _sfc_main$1y as WTabs, _sfc_main$1z as WTabsColumns, _sfc_main$1A as WTabsItem, _sfc_main$1B as WToggle, _sfc_main$1C as WToggleTheme, _sfc_main$1D as WTooltip, _sfc_main$1E as WTooltipContainer, main as default };
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "type": "git",
5
5
  "url": "https://github.com/rsmple/eco-vue-js.git"
6
6
  },
7
- "version": "0.11.42",
7
+ "version": "0.11.44",
8
8
  "dependencies": {
9
9
  "@stylistic/eslint-plugin": "5.2.3",
10
10
  "@tanstack/eslint-plugin-query": "5.83.1",
@@ -444,6 +444,12 @@
444
444
  "./dist/components/Skeleton/WSkeleton.vue": {
445
445
  "import": "./dist/components/Skeleton/WSkeleton.vue.js"
446
446
  },
447
+ "./dist/components/Slider/WSlider.vue": {
448
+ "import": "./dist/components/Slider/WSlider.vue.js"
449
+ },
450
+ "./dist/components/Slider/WSliderRange.vue": {
451
+ "import": "./dist/components/Slider/WSliderRange.vue.js"
452
+ },
447
453
  "./dist/components/Spinner/WSpinner.vue": {
448
454
  "import": "./dist/components/Spinner/WSpinner.vue.js"
449
455
  },
@@ -4,6 +4,11 @@ import colors from 'tailwindcss/colors.js'
4
4
 
5
5
  import pluginContainerQueries from './plugins/container-queries.js'
6
6
  import pluginDefault from './plugins/default.js'
7
+ import pluginInternalClasses from './plugins/internal-classes.js'
8
+ import pluginInternalVariables from './plugins/internal-variables.js'
9
+ import pluginInternalVariants from './plugins/internal-variants.js'
10
+ import pluginText from './plugins/text.js'
11
+ import pluginHoverCircle from './plugins/w-hover-circle.js'
7
12
  import pluginRipple from './plugins/w-ripple.js'
8
13
  import animations from './theme/animations.js'
9
14
  import score from './theme/score.js'
@@ -120,7 +125,12 @@ const tailwindBase = {
120
125
  },
121
126
  plugins: [
122
127
  pluginDefault,
128
+ pluginInternalVariables,
129
+ pluginInternalVariants,
130
+ pluginInternalClasses,
131
+ pluginText,
123
132
  pluginRipple,
133
+ pluginHoverCircle,
124
134
  pluginContainerQueries,
125
135
  ],
126
136
  } satisfies Config
@@ -1,6 +1,7 @@
1
+ import flattenColorPalette from 'tailwindcss/lib/util/flattenColorPalette'
1
2
  import plugin from 'tailwindcss/plugin.js'
2
3
 
3
- const pluginDefault = plugin(function ({matchUtilities, addVariant, addUtilities, addBase, theme, addComponents, config}) {
4
+ const pluginDefault = plugin(function ({matchUtilities, addVariant, addUtilities, addBase, theme}) {
4
5
  matchUtilities(
5
6
  {
6
7
  square: value => {
@@ -28,30 +29,19 @@ const pluginDefault = plugin(function ({matchUtilities, addVariant, addUtilities
28
29
  }
29
30
  },
30
31
  },
31
- {
32
- values: theme('width'),
33
- },
32
+ {values: theme('width')},
34
33
  )
35
-
36
- addBase({
37
- '*': {
38
- '--w-left-inner': 'calc(var(--nav-bar-width, 0px) + var(--inner-margin, 0px))',
39
- '--w-right-inner': 'calc(var(--actions-bar-width, 0px) + var(--inner-margin, 0px) + var(--scroll-bar-width, 0px))',
40
- '--w-width-inner': 'calc(100vw - var(--w-left-inner, 0px) - var(--w-right-inner, 0px))',
41
34
 
42
- '--w-top-inner': 'calc(var(--header-height, 0px) + var(--infinite-list-header-height, 0px))',
43
- '--w-bottom-inner': 'var(--scroll-bar-width, 0px)',
44
- '--w-height-inner': 'calc(100vh - var(--w-top-inner, 0px) - var(--w-bottom-inner, 0px))',
35
+ matchUtilities(
36
+ {
37
+ 'stop-color': (value) => ({'stop-color': value}),
45
38
  },
46
- '.w-modal-wrapper *': {
47
- '--w-left-inner': 'var(--w-modal-wrapper-padding, 0px)',
48
- '--w-right-inner': 'calc(var(--w-modal-wrapper-padding, 0px) + var(--scroll-bar-width, 0px)))',
49
- '--w-width-inner': 'calc(var(--w-modal-wrapper-width, 35rem) - var(--w-left-inner, 0px) - var(--w-left-inner, 0px))',
39
+ {values: flattenColorPalette(theme('colors'))},
40
+ )
50
41
 
51
- '--w-top-inner': 'calc(var(--w-modal-header-height, 0px) + var(--infinite-list-header-height, 0px))',
52
- '--w-bottom-inner': 'calc(var(--w-modal-footer-height, 0px) + var(--scroll-bar-width, 0px))',
53
- '--w-height-inner': 'calc(var(--w-modal-content-height, 0px) - var(--w-top-inner, 0px) - var(--w-bottom-inner, 0px))',
54
- },
42
+ addBase({
43
+ 'cols-span-full': {'grid-column': '1 / -1'},
44
+ 'row-span-full': {'grid-row': '1 / -1'},
55
45
  })
56
46
 
57
47
  addVariant('supports-backdrop', '@supports ((-webkit-backdrop-filter: none) or (backdrop-filter: none))')
@@ -63,175 +53,7 @@ const pluginDefault = plugin(function ({matchUtilities, addVariant, addUtilities
63
53
  addVariant('resizer', '&::-webkit-resizer')
64
54
  addVariant('last-not', '&:not(:last-child)')
65
55
  addVariant('first-not', '&:not(:first-child)')
66
- addVariant('card', ['.w-card &'])
67
- addVariant('card-l', ['&.w-card'])
68
- addVariant('list', ['.w-list &'])
69
- addVariant('list-l', ['&.w-list'])
70
-
71
- addBase({
72
- '.w-input': {
73
- outline: 'none',
74
-
75
- '--input-autofill-bg': theme('colors.default'),
76
- '--input-autofull-text': theme('colors.black.default'),
77
- [config('darkMode')[1][0]]: {
78
- '--input-autofill-bg': theme('colors.default-dark'),
79
- '--input-autofull-text': theme('colors.gray.100'),
80
- },
81
-
82
- '&:focus-visible': {
83
- outline: 'none',
84
- },
85
-
86
- '&[autocomplete="off"]': {
87
- '&::-webkit-contacts-auto-fill-button, &::-webkit-credentials-auto-fill-button': {
88
- visibility: 'hidden',
89
- display: 'none !important',
90
- 'pointer-events': 'none',
91
- height: '0',
92
- width: '0',
93
- margin: '0',
94
- },
95
- },
96
-
97
- '&::-webkit-outer-spin-button, &::-webkit-inner-spin-button': {
98
- '-webkit-appearance': 'none',
99
- appearance: 'none',
100
- margin: '0',
101
- },
102
-
103
- '&:-webkit-autofill': {
104
- '&, &:hover, &:focus, &:active': {
105
- '-webkit-box-shadow': '0 0 0 30px var(--input-autofill-bg) inset !important',
106
- '-webkit-text-fill-color': 'var(--input-autofull-text) !important;',
107
- },
108
- },
109
-
110
- '&[type=number]': {
111
- '-moz-appearance': 'textfield',
112
- appearance: 'textfield',
113
- },
114
-
115
- '&::-webkit-textfield-decoration-container, &:focus::-webkit-textfield-decoration-container': {
116
- visibility: 'hidden',
117
- 'pointer-events': 'none',
118
- },
119
- },
120
- })
121
-
122
- addBase({
123
- '.w-scrollbar': {
124
- '&::-webkit-scrollbar, & ::-webkit-scrollbar': {
125
- width: '12px',
126
- height: '12px',
127
- 'z-index': '500',
128
- },
129
- '&::-webkit-scrollbar-button, & ::-webkit-scrollbar-button': {
130
- display: 'none',
131
- },
132
- '&::-webkit-scrollbar-thumb, & ::-webkit-scrollbar-thumb': {
133
- 'border-radius': '5px',
134
- 'border-color': 'transparent',
135
- 'border-style': 'solid',
136
- 'border-width': '2px',
137
- 'background-clip': 'padding-box',
138
- 'background-color': 'var(--w-scroll-bar-color)',
139
- '&:hover': {
140
- 'background-color': 'var(--w-scroll-bar-color-hover)',
141
- },
142
- },
143
- '&::-webkit-scrollbar-track, & ::-webkit-scrollbar-track, &::-webkit-scrollbar-corner, & ::-webkit-scrollbar-corner': {
144
- background: 'transparent',
145
- },
146
- },
147
- 'html.w-scrollbar': {
148
- '@supports (overflow: overlay)': {
149
- 'overflow-y': 'overlay',
150
- },
151
- '@supports (not (overflow: overlay))': {
152
- 'overflow-y': 'auto',
153
- },
154
- },
155
- '*::-webkit-resizer': {
156
- transform: 'scale(2)',
157
- 'transform-origin': 'top left',
158
- 'background-size': '7px 7px',
159
- 'background-position': 'top',
160
- 'background-image': 'linear-gradient(135deg, currentColor 10%, transparent 10%, transparent 50%, currentColor 50%, currentColor 60%, transparent 60%, transparent 100%)',
161
- color: theme('colors.gray.300'),
162
- [config('darkMode')[1][0]]: {
163
- color: theme('colors.gray.700'),
164
- },
165
- },
166
- '*:focus-visible': {
167
- outline: 'none',
168
- },
169
- })
170
-
171
- addBase({
172
- '.w-option': {
173
- 'min-height': 'var(--w-option-height)',
174
- 'border-radius': 'var(--w-option-rounded)',
175
-
176
- '--w-skeleton-height': 'var(--w-option-height)',
177
- '--w-skeleton-rounded': 'var(--w-option-rounded)',
178
- },
179
- '.w-option-has-bg, *:has(.w-option-has-bg) + .w-option-has-bg-input, .w-option-has-bg + .w-option-has-bg-input': {
180
- 'padding-left': 'var(--w-option-padding)',
181
- 'padding-right': 'var(--w-option-padding)',
182
- },
183
- '.w-option-has-bg .w-option-button': {
184
- 'margin-right': 'calc(var(--w-option-rounded) * -1)',
185
- },
186
- '.w-select-option': {
187
- padding: 'calc(var(--w-select-option-padding) / 2) var(--w-select-option-padding)',
188
- },
189
- '*': {
190
- '--w-option-height': 'calc(var(--w-input-height,2.75rem) - (var(--w-input-gap,0.25rem) * 2) - 2px)',
191
- '--w-option-rounded': 'calc(var(--w-input-rounded,0.75rem) - var(--w-input-gap,0.25rem) - 1px)',
192
- '--w-option-padding': 'var(--w-input-rounded,0.75rem)',
193
- '--w-select-option-padding': 'calc(var(--w-option-padding) + var(--w-input-gap) + 1px)',
194
- },
195
- })
196
-
197
- addBase({
198
- '.w-tooltip-center-x': {
199
- transform: 'translate(calc(min(100vw - var(--dropdown-x, 0px) - 50% - 12px, max((var(--dropdown-x, 0px) - 50% - 12px) * -1, 0px))), 0)',
200
- },
201
- '.w-tooltip-center-y': {
202
- transform: 'translate(0, calc(min(100vh - var(--dropdown-y, 0px) - 50% - 12px, max((var(--dropdown-y, 0px) - 50% - 12px) * -1, 0px))))',
203
- },
204
- })
205
-
206
- addBase({
207
- '.w-shine-hidden': {
208
- '.w-shine': {display: 'none'},
209
- },
210
- '.w-shine': {},
211
- })
212
-
213
- matchUtilities(
214
- {
215
- 'w-scroll-bar-color': value => {
216
- return {
217
- '--w-scroll-bar-color': value,
218
- }
219
- },
220
- 'w-scroll-bar-color-hover': value => {
221
- return {
222
- '--w-scroll-bar-color-hover': value,
223
- }
224
- },
225
- 'w-has-changes-color': value => {
226
- return {
227
- '--has-changes-bg': value,
228
- }
229
- },
230
- },
231
- {
232
- values: theme('colors'),
233
- },
234
- )
56
+ addVariant('not-print', '@media not print')
235
57
 
236
58
  addUtilities({
237
59
  '.rounded-inherit': {
@@ -259,256 +81,6 @@ const pluginDefault = plugin(function ({matchUtilities, addVariant, addUtilities
259
81
  },
260
82
  },
261
83
  })
262
-
263
- addComponents({
264
- '.text-accent': {
265
- color: theme('colors.black.default'),
266
- [config('darkMode')[1][0]]: {
267
- color: theme('colors.default'),
268
- },
269
- },
270
- '.text-description': {
271
- color: theme('colors.gray.400'),
272
- [config('darkMode')[1][0]]: {
273
- color: theme('colors.gray.500'),
274
- },
275
- },
276
- '.text-secure': {
277
- 'text-security': 'disc',
278
- '-webkit-text-security': 'disc',
279
- },
280
- })
281
-
282
- addUtilities({
283
- '.w-hover-circle': {
284
- '&::after': {
285
- content: '""',
286
- position: 'absolute',
287
- top: '0',
288
- left: '0',
289
- height: '100%',
290
- width: '100%',
291
- 'border-radius': '9999px',
292
- 'z-index': '1',
293
- 'background-color': 'currentColor',
294
- 'pointer-events': 'none',
295
- 'user-select': 'none',
296
- opacity: '0',
297
- transform: 'scaleX(0.5) scaleY(0.5)',
298
- 'transition-property': 'opacity transform',
299
- 'transition-timing-function': 'cubic-bezier(0.4, 0, 0.2, 1)',
300
- 'transition-duration': '200ms',
301
- },
302
-
303
- '&:hover::after, .w-hover-circle-trigger:hover &::after, &:focus::after, .w-hover-circle-trigger:focus &::after': {
304
- opacity: 'var(--w-hover-circle-opacity, 0.10)',
305
- transform: 'scaleX(2.2) scaleY(2.2)',
306
- },
307
-
308
- '&:active::after, .w-hover-circle-trigger:active &::after': {
309
- opacity: 'var(--w-hover-circle-opacity, 0.10)',
310
- transform: 'scaleX(1.8) scaleY(1.8)',
311
- },
312
- },
313
- })
314
-
315
- matchUtilities(
316
- {
317
- 'w-ripple-opacity': value => {
318
- return {
319
- '--w-ripple-opacity': value,
320
- }
321
- },
322
- 'w-hover-circle-opacity': value => {
323
- return {
324
- '--w-hover-circle-opacity': value,
325
- }
326
- },
327
- },
328
- {
329
- values: theme('opacity'),
330
- },
331
- )
332
-
333
- addUtilities({
334
- '.w-progress-striped': {
335
- '&::before': {
336
- content: '""',
337
- 'background-image': 'linear-gradient(135deg, hsla(0,0%,100%,.125) 25%, transparent 0, transparent 50%, hsla(0,0%,100%,.125) 0, hsla(0,0%,100%,.125) 75%, transparent 0, transparent)',
338
- position: 'absolute',
339
- top: '0',
340
- left: '0',
341
- width: 'calc(100% + 40px)',
342
- height: '100%',
343
- 'background-repeat': 'repeat',
344
- 'background-size': '40px 40px',
345
- animation: theme('animation.move-horizontal'),
346
- },
347
- [config('darkMode')[1][0]]: {
348
- '&::before': {
349
- 'background-image': 'linear-gradient(135deg, hsla(0,0%,10%,.125) 25%, transparent 0, transparent 50%, hsla(0,0%,10%,.125) 0, hsla(0,0%,10%,.125) 75%, transparent 0, transparent)',
350
- },
351
- },
352
- },
353
- })
354
-
355
- addComponents({
356
- '.w-select-field': {
357
- 'padding-top': '0.3125rem',
358
- 'padding-bottom': '0.3125rem',
359
- 'align-items': 'center',
360
- 'white-space': 'nowrap',
361
- overflow: 'hidden',
362
- 'text-overflow': 'ellipsis',
363
- },
364
- '.group\\/model .w-select-field': {
365
- 'padding-left': '0.75rem',
366
- 'padding-right': '0.75rem',
367
- },
368
-
369
- '.w-skeleton': {
370
- position: 'relative',
371
- width: 'var(--skeleton-width,var(--skeleton-width-internal,70%))',
372
- height: 'var(--skeleton-height,1em)',
373
- 'border-radius': 'var(--w-skeleton-rounded,0.5rem)',
374
- overflow: 'hidden',
375
- cursor: 'progress',
376
- display: 'inline-block',
377
- '&:not(.w-skeleton-static):before': {
378
- content: '""',
379
- position: 'absolute',
380
- top: '0',
381
- width: '100%',
382
- height: '100%',
383
- 'background-image': 'linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255, var(--w-skeleton-opacity)), rgba(255,255,255,0))',
384
- animation: theme('animation.ticker'),
385
- },
386
- },
387
- '.w-skeleton-static': {
388
- '& .w-skeleton:before, &.w-skeleton:before': {
389
- display: 'none',
390
- animation: 'none',
391
- },
392
- },
393
- })
394
-
395
- matchUtilities(
396
- {
397
- 'w-skeleton-w': value => ({'--skeleton-width': value}),
398
- 'w-list-card-w': value => ({'--w-list-card-width': value}),
399
- 'w-checkbox-size': value => ({'--w-checkbox-size': value}),
400
- 'w-input-gap': value => ({'--w-input-gap': value}),
401
- 'w-spinner-size': value => ({'--w-spinner-size': value}),
402
- 'w-modal-wrapper-p': value => ({'--w-modal-wrapper-padding': value}),
403
- 'w-modal-wrapper-w': value => ({'--w-modal-wrapper-width': value}),
404
- 'w-list-header-h': value => ({'--w-list-header-height': value}),
405
- 'w-list-padding': value => ({'--w-list-padding': value}),
406
- 'w-modal-confirm-w': value => ({'--w-modal-confirm-width': value}),
407
- 'grid-cols-fill': value => ({'grid-template-columns': `repeat(auto-fill, minmax(${ value }, 1fr))`}),
408
- 'grid-cols-fit': value => ({'grid-template-columns': `repeat(auto-fit, minmax(${ value }, 1fr))`}),
409
- 'w-tabs-side-width': value => ({'--w-tabs-side-width': value}),
410
- 'w-dropdown-x-min': value => ({'--w-dropdown-x-min': value}),
411
- 'w-dropdown-x-max': value => ({'--w-dropdown-x-max': value}),
412
- },
413
- {
414
- values: theme('width'),
415
- },
416
- )
417
-
418
- matchUtilities(
419
- {
420
- 'w-skeleton-h': value => ({'--skeleton-height': value}),
421
- 'w-input-h': value => ({'--w-input-height': value}),
422
- 'w-input-min-h': value => ({'--w-input-min-height': value}),
423
- 'w-textarea-h': value => ({'--w-textarea-height': value}),
424
- 'w-button-h': value => ({'--w-button-height': value}),
425
- 'w-dropdown-y-min': value => ({'--w-dropdown-y-min': value}),
426
- 'w-dropdown-y-max': value => ({'--w-dropdown-y-max': value}),
427
- },
428
- {
429
- values: theme('height'),
430
- },
431
- )
432
-
433
- matchUtilities(
434
- {
435
- 'w-input-rounded': value => ({'--w-input-rounded': value}),
436
- 'w-button-rounded': value => ({'--w-button-rounded': value}),
437
- 'w-skeleton-rounded': value => ({'--w-skeleton-rounded': value}),
438
- 'w-ripple-rounded': value => ({'--w-ripple-rounded': value}),
439
- 'w-list-rounded': value => ({'--w-list-rounded': value}),
440
- 'w-option-rounded': value => ({'--w-option-rounded': value}),
441
- 'w-modal-wrapper-rounded': value => ({'--w-modal-wrapper-rounded': value}),
442
- 'w-list-header-rounded': value => ({'--w-list-header-rounded': value}),
443
- },
444
- {
445
- values: theme('borderRadius'),
446
- },
447
- )
448
-
449
- matchUtilities(
450
- {
451
- 'w-button-border': value => ({'--w-button-border': value}),
452
- },
453
- {
454
- values: theme('borderWidth'),
455
- },
456
- )
457
-
458
- matchUtilities(
459
- {
460
- 'w-skeleton-opacity': value => ({'--w-skeleton-opacity': value}),
461
- },
462
- {
463
- values: theme('opacity'),
464
- },
465
- )
466
-
467
- matchUtilities(
468
- {
469
- 'w-svg-stroke-width': value => ({'& path': {'stroke-width': value}}),
470
- },
471
- {
472
- values: {
473
- '3xs': '0.5',
474
- '2xs': '0.75',
475
- xs: '1',
476
- sm: '1.25',
477
- md: '1.5',
478
- },
479
- },
480
- )
481
-
482
- matchUtilities(
483
- {
484
- 'w-list-gap': value => ({'--w-list-gap': value}),
485
- },
486
- {
487
- values: theme('gap'),
488
- },
489
- )
490
-
491
- matchUtilities(
492
- {
493
- 'w-input-bg': value => ({'--w-input-bg': value}),
494
- },
495
- {
496
- values: theme('colors'),
497
- },
498
- )
499
-
500
- addBase({
501
- 'cols-span-full': {
502
- 'grid-column': '1 / -1',
503
- },
504
- 'row-span-full': {
505
- 'grid-row': '1 / -1',
506
- },
507
- })
508
-
509
- addVariant(
510
- 'not-print', '@media not print',
511
- )
512
84
  })
513
85
 
514
86
  export default pluginDefault