@donotdev/components 0.0.4 → 0.0.6

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.
@@ -1057,12 +1057,13 @@ em {
1057
1057
  }
1058
1058
 
1059
1059
  .dndev-surface[data-variant='glass'] {
1060
- background: color-mix(in oklab, var(--card) 40%, transparent);
1061
- backdrop-filter: blur(12px);
1062
- -webkit-backdrop-filter: blur(12px);
1060
+ background: color-mix(in oklab, var(--card) 55%, transparent);
1061
+ backdrop-filter: blur(20px) saturate(180%);
1062
+ -webkit-backdrop-filter: blur(20px) saturate(180%);
1063
1063
  border: var(--border-hairline) solid
1064
- color-mix(in oklab, var(--card-foreground) 15%, transparent);
1065
- box-shadow: var(--shadow-lg);
1064
+ color-mix(in oklab, var(--card-foreground) 25%, transparent);
1065
+ box-shadow: var(--shadow-lg),
1066
+ inset 0 1px 0 0 color-mix(in oklab, var(--card-foreground) 10%, transparent);
1066
1067
  }
1067
1068
 
1068
1069
  /* Separator style */
@@ -2132,6 +2133,7 @@ em {
2132
2133
  background: transparent;
2133
2134
  color: inherit;
2134
2135
  font-size: var(--font-size-base);
2136
+ font-weight: var(--font-weight-medium);
2135
2137
  }
2136
2138
 
2137
2139
  .dndev-interactive[data-role='accordion-trigger']:hover {
@@ -2156,6 +2158,7 @@ em {
2156
2158
  transition: all var(--dur-fast) var(--ease-in-out);
2157
2159
  width: 100%;
2158
2160
  min-width: 0;
2161
+ text-align: start;
2159
2162
  }
2160
2163
 
2161
2164
  .dndev-accordion-content[data-state='closed'] {
@@ -2888,8 +2891,6 @@ em {
2888
2891
  /* packages/components/src/atomic/CallToAction/CallToAction.css */
2889
2892
 
2890
2893
  .dndev-cta {
2891
- /* Default gradient */
2892
- background: linear-gradient(to right, var(--secondary), var(--background));
2893
2894
  color: var(--foreground);
2894
2895
  /* Padding for background - vertical only, horizontal handled by content */
2895
2896
  padding-block: var(--gap-lg);
@@ -2897,29 +2898,32 @@ em {
2897
2898
 
2898
2899
  /* Tone variants - leverage existing data-tone system */
2899
2900
 
2901
+ /* Ghost (default) - no background */
2902
+
2903
+ .dndev-cta[data-tone='ghost'],
2904
+ .dndev-cta:not([data-tone]) {
2905
+ background: transparent;
2906
+ }
2907
+
2900
2908
  .dndev-cta[data-tone='base'] {
2901
- background: linear-gradient(to right, var(--secondary), var(--background));
2909
+ background: var(--background);
2902
2910
  }
2903
2911
 
2904
2912
  .dndev-cta[data-tone='muted'] {
2905
- background: linear-gradient(to right, var(--muted), var(--background));
2913
+ background: var(--muted);
2906
2914
  }
2907
2915
 
2908
- .dndev-cta[data-tone='accent'] {
2909
- background: linear-gradient(
2910
- to right,
2911
- color-mix(in oklab, var(--accent) 10%, transparent),
2912
- var(--background)
2913
- );
2916
+ .dndev-cta[data-tone='elevated'] {
2917
+ background: var(--background);
2914
2918
  }
2915
2919
 
2916
2920
  .dndev-cta[data-tone='contrast'] {
2917
- background: linear-gradient(to right, var(--foreground), var(--background));
2921
+ background: var(--foreground);
2918
2922
  color: var(--background);
2919
2923
  }
2920
2924
 
2921
- .dndev-cta[data-tone='elevated'] {
2922
- background: linear-gradient(to right, var(--secondary), var(--background));
2925
+ .dndev-cta[data-tone='accent'] {
2926
+ background: color-mix(in oklab, var(--accent) 5%, transparent);
2923
2927
  }
2924
2928
 
2925
2929
  .dndev-cta-content {
@@ -3026,11 +3030,12 @@ em {
3026
3030
  word-wrap: break-word;
3027
3031
  }
3028
3032
 
3029
- .dndev-card-subtitle {
3033
+ .dndev-surface .dndev-card-subtitle {
3030
3034
  margin-top: 0;
3031
3035
  margin-bottom: 0;
3032
3036
  min-width: 0;
3033
3037
  word-wrap: break-word;
3038
+ color: color-mix(in oklab, var(--card-foreground) 70%, transparent);
3034
3039
  }
3035
3040
 
3036
3041
  /* packages/components/src/atomic/Checkbox/Checkbox.css */
@@ -3121,6 +3126,203 @@ em {
3121
3126
  }
3122
3127
  }
3123
3128
 
3129
+ /* packages/components/src/atomic/Collapsible/Collapsible.css */
3130
+
3131
+ .dndev-collapsible {
3132
+ width: 100%;
3133
+ display: flex;
3134
+ flex-direction: column;
3135
+ }
3136
+
3137
+ .dndev-collapsible-content {
3138
+ overflow: hidden;
3139
+ width: 100%;
3140
+ }
3141
+
3142
+ .dndev-collapsible-content[data-state='open'] {
3143
+ animation: slideDown var(--dur-normal) var(--ease-in-out);
3144
+ }
3145
+
3146
+ .dndev-collapsible-content[data-state='closed'] {
3147
+ animation: slideUp var(--dur-normal) var(--ease-in-out);
3148
+ }
3149
+
3150
+ @keyframes slideDown {
3151
+ from {
3152
+ height: 0;
3153
+ }
3154
+ to {
3155
+ height: var(--radix-collapsible-content-height);
3156
+ }
3157
+ }
3158
+
3159
+ @keyframes slideUp {
3160
+ from {
3161
+ height: var(--radix-collapsible-content-height);
3162
+ }
3163
+ to {
3164
+ height: 0;
3165
+ }
3166
+ }
3167
+
3168
+ /* packages/components/src/atomic/Combobox/Combobox.css */
3169
+
3170
+ .dndev-combobox-trigger {
3171
+ display: flex;
3172
+ justify-content: space-between;
3173
+ align-items: center;
3174
+ width: 100%;
3175
+ text-align: left;
3176
+ }
3177
+
3178
+ .dndev-combobox-trigger button {
3179
+ display: flex;
3180
+ justify-content: space-between;
3181
+ align-items: center;
3182
+ width: 100%;
3183
+ }
3184
+
3185
+ .dndev-combobox-placeholder {
3186
+ opacity: var(--opacity-muted);
3187
+ }
3188
+
3189
+ .dndev-combobox-trigger-icons {
3190
+ display: flex;
3191
+ align-items: center;
3192
+ gap: var(--gap-tight);
3193
+ margin-inline-start: auto;
3194
+ }
3195
+
3196
+ .dndev-combobox-clear {
3197
+ display: flex;
3198
+ align-items: center;
3199
+ justify-content: center;
3200
+ cursor: pointer;
3201
+ opacity: var(--opacity-muted);
3202
+ transition: opacity var(--dur-fast) var(--ease-in-out);
3203
+ -webkit-user-select: none;
3204
+ -moz-user-select: none;
3205
+ user-select: none;
3206
+ }
3207
+
3208
+ .dndev-combobox-clear:hover,
3209
+ .dndev-combobox-clear:focus {
3210
+ opacity: 1;
3211
+ outline: none;
3212
+ }
3213
+
3214
+ .dndev-combobox-clear svg {
3215
+ width: var(--icon-sm);
3216
+ height: var(--icon-sm);
3217
+ }
3218
+
3219
+ .dndev-combobox-chevron {
3220
+ width: var(--icon-md);
3221
+ height: var(--icon-md);
3222
+ opacity: var(--opacity-muted);
3223
+ transition: transform var(--dur-fast) var(--ease-in-out);
3224
+ }
3225
+
3226
+ [data-state='open'] .dndev-combobox-chevron {
3227
+ transform: rotate(180deg);
3228
+ }
3229
+
3230
+ .dndev-combobox-loading-container {
3231
+ display: flex;
3232
+ align-items: center;
3233
+ gap: var(--gap-sm);
3234
+ }
3235
+
3236
+ .dndev-combobox-loading-spinner {
3237
+ width: var(--icon-md);
3238
+ height: var(--icon-md);
3239
+ border-radius: var(--radius-full);
3240
+ border: 2px solid currentColor;
3241
+ border-top-color: transparent;
3242
+ }
3243
+
3244
+ .dndev-combobox-content {
3245
+ width: var(--radix-popover-trigger-width);
3246
+ min-width: var(--radix-popover-trigger-width);
3247
+ max-height: 300px;
3248
+ display: flex;
3249
+ flex-direction: column;
3250
+ padding: 0;
3251
+ }
3252
+
3253
+ .dndev-combobox-search-container {
3254
+ padding: var(--gap-sm);
3255
+ border-bottom: var(--border-width) solid var(--line-2);
3256
+ }
3257
+
3258
+ .dndev-combobox-search-input {
3259
+ width: 100%;
3260
+ }
3261
+
3262
+ .dndev-combobox-list {
3263
+ overflow-y: auto;
3264
+ padding: var(--gap-tight);
3265
+ display: flex;
3266
+ flex-direction: column;
3267
+ gap: var(--gap-none);
3268
+ }
3269
+
3270
+ .dndev-combobox-option {
3271
+ all: unset;
3272
+ display: flex;
3273
+ align-items: center;
3274
+ justify-content: space-between;
3275
+ padding: var(--gap-sm) var(--gap-md);
3276
+ cursor: pointer;
3277
+ border-radius: var(--radius-interactive);
3278
+ transition: background-color var(--dur-fast) var(--ease-in-out);
3279
+ }
3280
+
3281
+ .dndev-combobox-option:disabled {
3282
+ opacity: var(--opacity-muted);
3283
+ cursor: not-allowed;
3284
+ }
3285
+
3286
+ .dndev-combobox-option-highlighted:not(:disabled) {
3287
+ background-color: var(--accent);
3288
+ opacity: var(--opacity-strong);
3289
+ }
3290
+
3291
+ .dndev-combobox-option-selected {
3292
+ font-weight: var(--font-weight-medium);
3293
+ }
3294
+
3295
+ .dndev-combobox-option-content {
3296
+ display: flex;
3297
+ flex-direction: column;
3298
+ gap: var(--gap-tight);
3299
+ flex: 1;
3300
+ }
3301
+
3302
+ .dndev-combobox-option-label {
3303
+ font-size: var(--font-size-sm);
3304
+ color: var(--foreground);
3305
+ }
3306
+
3307
+ .dndev-combobox-option-description {
3308
+ font-size: var(--font-size-xs);
3309
+ color: var(--muted-foreground);
3310
+ }
3311
+
3312
+ .dndev-combobox-option-check {
3313
+ width: var(--icon-md);
3314
+ height: var(--icon-md);
3315
+ color: currentColor;
3316
+ flex-shrink: 0;
3317
+ }
3318
+
3319
+ .dndev-combobox-empty {
3320
+ padding: var(--gap-lg) var(--gap-md);
3321
+ text-align: center;
3322
+ font-size: var(--font-size-sm);
3323
+ color: var(--muted-foreground);
3324
+ }
3325
+
3124
3326
  /* packages/components/src/atomic/DualCard/DualCard.css */
3125
3327
 
3126
3328
  .dndev-dual-card {
@@ -4236,6 +4438,10 @@ em {
4236
4438
  text-align: start; /* Always start-aligned, even when parent is centered */
4237
4439
  }
4238
4440
 
4441
+ .dndev-list[data-gap='none'] {
4442
+ gap: var(--gap-none);
4443
+ }
4444
+
4239
4445
  .dndev-list[data-gap='tight'] {
4240
4446
  gap: var(--gap-sm);
4241
4447
  }
@@ -4965,17 +5171,17 @@ em {
4965
5171
  margin-block-end: var(--gap-md);
4966
5172
  }
4967
5173
 
4968
- .dndev-section-full-width[data-text-align='start'] .dndev-section-content {
4969
- text-align: start;
4970
- }
5174
+ .dndev-section-full-width[data-text-align='start'] .dndev-section-title {
5175
+ text-align: start;
5176
+ }
4971
5177
 
4972
- .dndev-section-full-width[data-text-align='center'] .dndev-section-content {
4973
- text-align: center;
4974
- }
5178
+ .dndev-section-full-width[data-text-align='center'] .dndev-section-title {
5179
+ text-align: center;
5180
+ }
4975
5181
 
4976
- .dndev-section-full-width[data-text-align='end'] .dndev-section-content {
4977
- text-align: end;
4978
- }
5182
+ .dndev-section-full-width[data-text-align='end'] .dndev-section-title {
5183
+ text-align: end;
5184
+ }
4979
5185
 
4980
5186
  /* packages/components/src/atomic/Separator/Separator.css */
4981
5187
 
@@ -6128,6 +6334,123 @@ em {
6128
6334
  display: none;
6129
6335
  }
6130
6336
 
6337
+ /* packages/components/src/atomic/Tag/Tag.css */
6338
+
6339
+ .dndev-tag {
6340
+ display: inline-flex;
6341
+ align-items: center;
6342
+ gap: var(--gap-xs);
6343
+ border-radius: var(--radius-full);
6344
+ border: 1px solid transparent;
6345
+ font-size: var(--font-size-sm);
6346
+ font-weight: 500;
6347
+ line-height: 1;
6348
+ white-space: nowrap;
6349
+ transition: all var(--dur-fast) var(--ease-in-out);
6350
+
6351
+ /* Default variant */
6352
+ background-color: var(--secondary);
6353
+ color: var(--secondary-foreground);
6354
+ }
6355
+
6356
+ .dndev-tag .dndev-tag-remove {
6357
+ display: inline-flex;
6358
+ align-items: center;
6359
+ justify-content: center;
6360
+ padding: 0;
6361
+ margin-left: 2px;
6362
+ background: transparent;
6363
+ border: none;
6364
+ cursor: pointer;
6365
+ color: inherit;
6366
+ opacity: 0.7;
6367
+ border-radius: 50%;
6368
+ width: 14px;
6369
+ height: 14px;
6370
+ transition: opacity var(--dur-fast);
6371
+ }
6372
+
6373
+ :is(.dndev-tag .dndev-tag-remove):hover {
6374
+ opacity: 1;
6375
+ background-color: rgba(0, 0, 0, 0.1);
6376
+ }
6377
+
6378
+ :is(.dndev-tag .dndev-tag-remove):focus-visible {
6379
+ outline: 2px solid var(--ring);
6380
+ }
6381
+
6382
+ .dndev-tag .dndev-tag-remove-icon {
6383
+ width: 10px;
6384
+ height: 10px;
6385
+ }
6386
+
6387
+ /* Sizes */
6388
+
6389
+ .dndev-tag-sm {
6390
+ padding: 0.125rem 0.5rem;
6391
+ font-size: var(--font-size-xs);
6392
+ height: 20px;
6393
+ }
6394
+
6395
+ .dndev-tag-md {
6396
+ padding: 0.25rem 0.75rem;
6397
+ font-size: var(--font-size-sm);
6398
+ height: 24px;
6399
+ }
6400
+
6401
+ .dndev-tag-lg {
6402
+ padding: 0.375rem 0.875rem;
6403
+ font-size: var(--font-size-base);
6404
+ height: 32px;
6405
+ }
6406
+
6407
+ /* Variants */
6408
+
6409
+ .dndev-tag-outline {
6410
+ background-color: transparent;
6411
+ border-color: var(--border);
6412
+ color: var(--foreground);
6413
+ }
6414
+
6415
+ .dndev-tag-accent {
6416
+ background-color: var(--accent);
6417
+ color: var(--accent-foreground);
6418
+ border-color: transparent;
6419
+ }
6420
+
6421
+ /* Interactive States */
6422
+
6423
+ .dndev-tag-interactive {
6424
+ cursor: pointer;
6425
+ -webkit-user-select: none;
6426
+ -moz-user-select: none;
6427
+ user-select: none;
6428
+ }
6429
+
6430
+ .dndev-tag-interactive:hover {
6431
+ opacity: 0.8;
6432
+ }
6433
+
6434
+ .dndev-tag-interactive:focus-visible {
6435
+ outline: 2px solid var(--ring);
6436
+ outline-offset: 2px;
6437
+ }
6438
+
6439
+ .dndev-tag-disabled {
6440
+ pointer-events: none;
6441
+ opacity: 0.5;
6442
+ }
6443
+
6444
+ .dndev-tag-sm .dndev-tag-remove-icon {
6445
+ width: 8px;
6446
+ height: 8px;
6447
+ }
6448
+
6449
+ .dndev-tag-lg .dndev-tag-remove-icon {
6450
+ width: 12px;
6451
+ height: 12px;
6452
+ }
6453
+
6131
6454
  /* packages/components/src/atomic/Text/Text.css */
6132
6455
 
6133
6456
  .dndev-text-base[data-text-align='start'] {
@@ -6149,7 +6472,7 @@ em {
6149
6472
  }
6150
6473
 
6151
6474
  .dndev-text-base[data-variant='default'] {
6152
- color: var(--foreground);
6475
+ color: inherit;
6153
6476
  }
6154
6477
 
6155
6478
  .dndev-text-base[data-variant='muted'] {
@@ -6209,7 +6532,6 @@ em {
6209
6532
  .dndev-text-base[data-level='h4'] {
6210
6533
  font-size: var(--font-size-base);
6211
6534
  font-weight: var(--font-weight-medium);
6212
- color: var(--muted-foreground);
6213
6535
  }
6214
6536
 
6215
6537
  .dndev-text-base[data-level='body'] {
@@ -6573,6 +6895,14 @@ em {
6573
6895
  display: block;
6574
6896
  }
6575
6897
 
6898
+ /* SVG placeholder - zero bytes, instant render */
6899
+
6900
+ .dndev-video-placeholder {
6901
+ width: 100%;
6902
+ height: 100%;
6903
+ display: block;
6904
+ }
6905
+
6576
6906
  /* Play button overlay */
6577
6907
 
6578
6908
  .dndev-video-play-overlay {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@donotdev/components",
3
- "version": "0.0.4",
3
+ "version": "0.0.6",
4
4
  "type": "module",
5
5
  "private": false,
6
6
  "description": "Styled UI components for DoNotDev",