@kushagradhawan/kookie-ui 0.1.11 → 0.1.12
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/components.css +29 -0
- package/dist/cjs/components/card.props.d.ts +1 -1
- package/dist/cjs/components/card.props.js +1 -1
- package/dist/cjs/components/card.props.js.map +2 -2
- package/dist/esm/components/card.props.d.ts +1 -1
- package/dist/esm/components/card.props.js +1 -1
- package/dist/esm/components/card.props.js.map +2 -2
- package/package.json +1 -1
- package/src/components/card.css +46 -0
- package/src/components/card.props.tsx +1 -1
- package/styles.css +29 -0
package/components.css
CHANGED
|
@@ -3252,6 +3252,35 @@
|
|
|
3252
3252
|
.rt-Card:where(.rt-variant-ghost):where(:any-link, button, label):where(:active:not([data-state='open'])):where(:focus-visible) {
|
|
3253
3253
|
background-color: var(--focus-a2);
|
|
3254
3254
|
}
|
|
3255
|
+
.rt-Card:where(.rt-variant-soft) {
|
|
3256
|
+
--card-border-width: 0px;
|
|
3257
|
+
--card-background-color: var(--gray-a3);
|
|
3258
|
+
}
|
|
3259
|
+
.rt-Card:where(.rt-variant-soft)::before {
|
|
3260
|
+
background-color: var(--card-background-color);
|
|
3261
|
+
}
|
|
3262
|
+
.rt-Card:where(.rt-variant-soft)::after {
|
|
3263
|
+
box-shadow: none;
|
|
3264
|
+
border: none;
|
|
3265
|
+
outline: none;
|
|
3266
|
+
}
|
|
3267
|
+
.rt-Card:where(.rt-variant-soft):where(:focus-visible) {
|
|
3268
|
+
outline: none;
|
|
3269
|
+
}
|
|
3270
|
+
.rt-Card:where(.rt-variant-soft):where(:focus-visible)::after {
|
|
3271
|
+
outline: none;
|
|
3272
|
+
}
|
|
3273
|
+
@media (hover: hover) {
|
|
3274
|
+
.rt-Card:where(.rt-variant-soft):where(:any-link, button, label):where(:hover)::before {
|
|
3275
|
+
background-color: var(--gray-a4);
|
|
3276
|
+
}
|
|
3277
|
+
}
|
|
3278
|
+
.rt-Card:where(.rt-variant-soft):where(:any-link, button, label):where([data-state='open'])::before {
|
|
3279
|
+
background-color: var(--gray-a4);
|
|
3280
|
+
}
|
|
3281
|
+
.rt-Card:where(.rt-variant-soft):where(:any-link, button, label):where(:active:not([data-state='open']))::before {
|
|
3282
|
+
background-color: var(--gray-a5);
|
|
3283
|
+
}
|
|
3255
3284
|
@media (pointer: coarse) {
|
|
3256
3285
|
.rt-Card:where(:any-link, button, label):where(:active:not(:focus-visible, [data-state='open']))::before {
|
|
3257
3286
|
background-image: linear-gradient(var(--gray-a4), var(--gray-a4));
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";var t=Object.defineProperty;var f=Object.getOwnPropertyDescriptor;var n=Object.getOwnPropertyNames;var c=Object.prototype.hasOwnProperty;var u=(e,s)=>{for(var a in s)t(e,a,{get:s[a],enumerable:!0})},m=(e,s,a,o)=>{if(s&&typeof s=="object"||typeof s=="function")for(let r of n(s))!c.call(e,r)&&r!==a&&t(e,r,{get:()=>s[r],enumerable:!(o=f(s,r))||o.enumerable});return e};var l=e=>m(t({},"__esModule",{value:!0}),e);var y={};u(y,{cardPropDefs:()=>i});module.exports=l(y);var p=require("../props/as-child.prop.js");const v=["1","2","3","4","5"],d=["surface","classic","ghost"],i={...p.asChildPropDef,size:{type:"enum",className:"rt-r-size",values:v,default:"1",responsive:!0},variant:{type:"enum",className:"rt-variant",values:d,default:"surface"}};
|
|
1
|
+
"use strict";var t=Object.defineProperty;var f=Object.getOwnPropertyDescriptor;var n=Object.getOwnPropertyNames;var c=Object.prototype.hasOwnProperty;var u=(e,s)=>{for(var a in s)t(e,a,{get:s[a],enumerable:!0})},m=(e,s,a,o)=>{if(s&&typeof s=="object"||typeof s=="function")for(let r of n(s))!c.call(e,r)&&r!==a&&t(e,r,{get:()=>s[r],enumerable:!(o=f(s,r))||o.enumerable});return e};var l=e=>m(t({},"__esModule",{value:!0}),e);var y={};u(y,{cardPropDefs:()=>i});module.exports=l(y);var p=require("../props/as-child.prop.js");const v=["1","2","3","4","5"],d=["surface","classic","ghost","soft"],i={...p.asChildPropDef,size:{type:"enum",className:"rt-r-size",values:v,default:"1",responsive:!0},variant:{type:"enum",className:"rt-variant",values:d,default:"surface"}};
|
|
2
2
|
//# sourceMappingURL=card.props.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/components/card.props.tsx"],
|
|
4
|
-
"sourcesContent": ["import { asChildPropDef } from '../props/as-child.prop.js';\n\nimport type { PropDef } from '../props/prop-def.js';\n\nconst sizes = ['1', '2', '3', '4', '5'] as const;\nconst variants = ['surface', 'classic', 'ghost'] as const;\n\nconst cardPropDefs = {\n ...asChildPropDef,\n size: { type: 'enum', className: 'rt-r-size', values: sizes, default: '1', responsive: true },\n variant: { type: 'enum', className: 'rt-variant', values: variants, default: 'surface' },\n} satisfies {\n size: PropDef<(typeof sizes)[number]>;\n variant: PropDef<(typeof variants)[number]>;\n};\n\nexport { cardPropDefs };\n"],
|
|
5
|
-
"mappings": "yaAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,kBAAAE,IAAA,eAAAC,EAAAH,GAAA,IAAAI,EAA+B,qCAI/B,MAAMC,EAAQ,CAAC,IAAK,IAAK,IAAK,IAAK,GAAG,EAChCC,EAAW,CAAC,UAAW,UAAW,
|
|
4
|
+
"sourcesContent": ["import { asChildPropDef } from '../props/as-child.prop.js';\n\nimport type { PropDef } from '../props/prop-def.js';\n\nconst sizes = ['1', '2', '3', '4', '5'] as const;\nconst variants = ['surface', 'classic', 'ghost', 'soft'] as const;\n\nconst cardPropDefs = {\n ...asChildPropDef,\n size: { type: 'enum', className: 'rt-r-size', values: sizes, default: '1', responsive: true },\n variant: { type: 'enum', className: 'rt-variant', values: variants, default: 'surface' },\n} satisfies {\n size: PropDef<(typeof sizes)[number]>;\n variant: PropDef<(typeof variants)[number]>;\n};\n\nexport { cardPropDefs };\n"],
|
|
5
|
+
"mappings": "yaAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,kBAAAE,IAAA,eAAAC,EAAAH,GAAA,IAAAI,EAA+B,qCAI/B,MAAMC,EAAQ,CAAC,IAAK,IAAK,IAAK,IAAK,GAAG,EAChCC,EAAW,CAAC,UAAW,UAAW,QAAS,MAAM,EAEjDJ,EAAe,CACnB,GAAG,iBACH,KAAM,CAAE,KAAM,OAAQ,UAAW,YAAa,OAAQG,EAAO,QAAS,IAAK,WAAY,EAAK,EAC5F,QAAS,CAAE,KAAM,OAAQ,UAAW,aAAc,OAAQC,EAAU,QAAS,SAAU,CACzF",
|
|
6
6
|
"names": ["card_props_exports", "__export", "cardPropDefs", "__toCommonJS", "import_as_child_prop", "sizes", "variants"]
|
|
7
7
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{asChildPropDef as s}from"../props/as-child.prop.js";const e=["1","2","3","4","5"],r=["surface","classic","ghost"],a={...s,size:{type:"enum",className:"rt-r-size",values:e,default:"1",responsive:!0},variant:{type:"enum",className:"rt-variant",values:r,default:"surface"}};export{a as cardPropDefs};
|
|
1
|
+
import{asChildPropDef as s}from"../props/as-child.prop.js";const e=["1","2","3","4","5"],r=["surface","classic","ghost","soft"],a={...s,size:{type:"enum",className:"rt-r-size",values:e,default:"1",responsive:!0},variant:{type:"enum",className:"rt-variant",values:r,default:"surface"}};export{a as cardPropDefs};
|
|
2
2
|
//# sourceMappingURL=card.props.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/components/card.props.tsx"],
|
|
4
|
-
"sourcesContent": ["import { asChildPropDef } from '../props/as-child.prop.js';\n\nimport type { PropDef } from '../props/prop-def.js';\n\nconst sizes = ['1', '2', '3', '4', '5'] as const;\nconst variants = ['surface', 'classic', 'ghost'] as const;\n\nconst cardPropDefs = {\n ...asChildPropDef,\n size: { type: 'enum', className: 'rt-r-size', values: sizes, default: '1', responsive: true },\n variant: { type: 'enum', className: 'rt-variant', values: variants, default: 'surface' },\n} satisfies {\n size: PropDef<(typeof sizes)[number]>;\n variant: PropDef<(typeof variants)[number]>;\n};\n\nexport { cardPropDefs };\n"],
|
|
5
|
-
"mappings": "AAAA,OAAS,kBAAAA,MAAsB,4BAI/B,MAAMC,EAAQ,CAAC,IAAK,IAAK,IAAK,IAAK,GAAG,EAChCC,EAAW,CAAC,UAAW,UAAW,
|
|
4
|
+
"sourcesContent": ["import { asChildPropDef } from '../props/as-child.prop.js';\n\nimport type { PropDef } from '../props/prop-def.js';\n\nconst sizes = ['1', '2', '3', '4', '5'] as const;\nconst variants = ['surface', 'classic', 'ghost', 'soft'] as const;\n\nconst cardPropDefs = {\n ...asChildPropDef,\n size: { type: 'enum', className: 'rt-r-size', values: sizes, default: '1', responsive: true },\n variant: { type: 'enum', className: 'rt-variant', values: variants, default: 'surface' },\n} satisfies {\n size: PropDef<(typeof sizes)[number]>;\n variant: PropDef<(typeof variants)[number]>;\n};\n\nexport { cardPropDefs };\n"],
|
|
5
|
+
"mappings": "AAAA,OAAS,kBAAAA,MAAsB,4BAI/B,MAAMC,EAAQ,CAAC,IAAK,IAAK,IAAK,IAAK,GAAG,EAChCC,EAAW,CAAC,UAAW,UAAW,QAAS,MAAM,EAEjDC,EAAe,CACnB,GAAGH,EACH,KAAM,CAAE,KAAM,OAAQ,UAAW,YAAa,OAAQC,EAAO,QAAS,IAAK,WAAY,EAAK,EAC5F,QAAS,CAAE,KAAM,OAAQ,UAAW,aAAc,OAAQC,EAAU,QAAS,SAAU,CACzF",
|
|
6
6
|
"names": ["asChildPropDef", "sizes", "variants", "cardPropDefs"]
|
|
7
7
|
}
|
package/package.json
CHANGED
package/src/components/card.css
CHANGED
|
@@ -195,6 +195,52 @@
|
|
|
195
195
|
}
|
|
196
196
|
}
|
|
197
197
|
|
|
198
|
+
/* * * * * * * * * * * * * * * * * * * */
|
|
199
|
+
/* */
|
|
200
|
+
/* Variants / Soft */
|
|
201
|
+
/* */
|
|
202
|
+
/* * * * * * * * * * * * * * * * * * * */
|
|
203
|
+
|
|
204
|
+
.rt-Card:where(.rt-variant-soft) {
|
|
205
|
+
--card-border-width: 0px;
|
|
206
|
+
--card-background-color: var(--gray-a3);
|
|
207
|
+
|
|
208
|
+
&::before {
|
|
209
|
+
background-color: var(--card-background-color);
|
|
210
|
+
}
|
|
211
|
+
&::after {
|
|
212
|
+
box-shadow: none;
|
|
213
|
+
border: none;
|
|
214
|
+
outline: none;
|
|
215
|
+
}
|
|
216
|
+
&:where(:focus-visible) {
|
|
217
|
+
outline: none;
|
|
218
|
+
|
|
219
|
+
&::after {
|
|
220
|
+
outline: none;
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
&:where(:any-link, button, label) {
|
|
224
|
+
@media (hover: hover) {
|
|
225
|
+
&:where(:hover) {
|
|
226
|
+
&::before {
|
|
227
|
+
background-color: var(--gray-a4);
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
&:where([data-state='open']) {
|
|
232
|
+
&::before {
|
|
233
|
+
background-color: var(--gray-a4);
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
&:where(:active:not([data-state='open'])) {
|
|
237
|
+
&::before {
|
|
238
|
+
background-color: var(--gray-a5);
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
|
|
198
244
|
/* Better -webkit-tap-highlight-color */
|
|
199
245
|
.rt-Card:where(:any-link, button, label) {
|
|
200
246
|
@media (pointer: coarse) {
|
|
@@ -3,7 +3,7 @@ import { asChildPropDef } from '../props/as-child.prop.js';
|
|
|
3
3
|
import type { PropDef } from '../props/prop-def.js';
|
|
4
4
|
|
|
5
5
|
const sizes = ['1', '2', '3', '4', '5'] as const;
|
|
6
|
-
const variants = ['surface', 'classic', 'ghost'] as const;
|
|
6
|
+
const variants = ['surface', 'classic', 'ghost', 'soft'] as const;
|
|
7
7
|
|
|
8
8
|
const cardPropDefs = {
|
|
9
9
|
...asChildPropDef,
|
package/styles.css
CHANGED
|
@@ -7979,6 +7979,35 @@
|
|
|
7979
7979
|
.rt-Card:where(.rt-variant-ghost):where(:any-link, button, label):where(:active:not([data-state='open'])):where(:focus-visible) {
|
|
7980
7980
|
background-color: var(--focus-a2);
|
|
7981
7981
|
}
|
|
7982
|
+
.rt-Card:where(.rt-variant-soft) {
|
|
7983
|
+
--card-border-width: 0px;
|
|
7984
|
+
--card-background-color: var(--gray-a3);
|
|
7985
|
+
}
|
|
7986
|
+
.rt-Card:where(.rt-variant-soft)::before {
|
|
7987
|
+
background-color: var(--card-background-color);
|
|
7988
|
+
}
|
|
7989
|
+
.rt-Card:where(.rt-variant-soft)::after {
|
|
7990
|
+
box-shadow: none;
|
|
7991
|
+
border: none;
|
|
7992
|
+
outline: none;
|
|
7993
|
+
}
|
|
7994
|
+
.rt-Card:where(.rt-variant-soft):where(:focus-visible) {
|
|
7995
|
+
outline: none;
|
|
7996
|
+
}
|
|
7997
|
+
.rt-Card:where(.rt-variant-soft):where(:focus-visible)::after {
|
|
7998
|
+
outline: none;
|
|
7999
|
+
}
|
|
8000
|
+
@media (hover: hover) {
|
|
8001
|
+
.rt-Card:where(.rt-variant-soft):where(:any-link, button, label):where(:hover)::before {
|
|
8002
|
+
background-color: var(--gray-a4);
|
|
8003
|
+
}
|
|
8004
|
+
}
|
|
8005
|
+
.rt-Card:where(.rt-variant-soft):where(:any-link, button, label):where([data-state='open'])::before {
|
|
8006
|
+
background-color: var(--gray-a4);
|
|
8007
|
+
}
|
|
8008
|
+
.rt-Card:where(.rt-variant-soft):where(:any-link, button, label):where(:active:not([data-state='open']))::before {
|
|
8009
|
+
background-color: var(--gray-a5);
|
|
8010
|
+
}
|
|
7982
8011
|
@media (pointer: coarse) {
|
|
7983
8012
|
.rt-Card:where(:any-link, button, label):where(:active:not(:focus-visible, [data-state='open']))::before {
|
|
7984
8013
|
background-image: linear-gradient(var(--gray-a4), var(--gray-a4));
|