@plexui/styles 0.16.6 → 0.17.0
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/es/components/Accordion/Accordion.module.css +74 -12
- package/dist/es/components/Alert/Alert.module.css +196 -0
- package/dist/es/components/Breadcrumb/Breadcrumb.module.css +32 -1
- package/dist/es/components/Button/Button.module.css +483 -5
- package/dist/es/components/Button/NavigationButton.module.css +195 -0
- package/dist/es/components/Checkbox/Checkbox.module.css +246 -0
- package/dist/es/components/CodeBlock/CodeBlock.module.css +15 -1
- package/dist/es/components/DatePicker/Calendar.module.css +216 -0
- package/dist/es/components/DatePicker/CalendarNavigationIcon.module.css +19 -0
- package/dist/es/components/DateRangePicker/Calendar.module.css +200 -0
- package/dist/es/components/DateRangePicker/Trigger.module.css +15 -1
- package/dist/es/components/Dialog/Dialog.module.css +456 -0
- package/dist/es/components/Field/Field.module.css +713 -0
- package/dist/es/components/FieldGroup/FieldGroup.module.css +272 -0
- package/dist/es/components/FloatingLabelInput/FloatingLabelInput.module.css +49 -0
- package/dist/es/components/FloatingLabelSelect/FloatingLabelSelect.module.css +81 -0
- package/dist/es/components/Input/Input.module.css +184 -0
- package/dist/es/components/InputGroup/InputGroup.module.css +17 -0
- package/dist/es/components/MarkdownEditor/MarkdownEditor.module.css +60 -0
- package/dist/es/components/Menu/Menu.module.css +244 -0
- package/dist/es/components/NavigationRow/NavigationRow.module.css +82 -0
- package/dist/es/components/Page/Page.module.css +278 -0
- package/dist/es/components/PageControl/PageControl.module.css +35 -0
- package/dist/es/components/Popover/Popover.module.css +20 -0
- package/dist/es/components/RadioGroup/RadioGroup.module.css +151 -0
- package/dist/es/components/Select/Select.module.css +315 -0
- package/dist/es/components/SelectControl/SelectControl.module.css +104 -0
- package/dist/es/components/Sidebar/Sidebar.module.css +169 -0
- package/dist/es/components/Skeleton/Skeleton.module.css +50 -0
- package/dist/es/components/Slider/Slider.module.css +12 -1
- package/dist/es/components/Switch/Switch.module.css +143 -0
- package/dist/es/components/TabBar/TabBar.module.css +354 -0
- package/dist/es/components/Tabs/Tabs.module.css +162 -0
- package/dist/es/components/Tip/Tip.module.css +225 -0
- package/dist/es/components/Toast/Toast.module.css +207 -0
- package/dist/es/components/Toolbar/Toolbar.module.css +1542 -0
- package/dist/es/components/Tooltip/Tooltip.module.css +44 -0
- package/dist/es/styles/android.css +882 -0
- package/dist/es/styles/touch.css +672 -0
- package/dist/es/styles/variables-components.css +4 -0
- package/dist/es/styles/variables-semantic.css +28 -0
- package/dist/es/tokens/index.js +5 -0
- package/dist/es/tokens/index.js.map +1 -0
- package/dist/es/tokens/resolve.js +746 -0
- package/dist/es/tokens/resolve.js.map +1 -0
- package/dist/es/tokens/tokens.generated.js +5872 -0
- package/dist/es/tokens/tokens.generated.js.map +1 -0
- package/dist/types/tokens/index.d.ts +19 -0
- package/dist/types/tokens/resolve.d.ts +145 -0
- package/dist/types/tokens/tokens.generated.d.ts +13 -0
- package/package.json +7 -2
|
@@ -417,6 +417,20 @@
|
|
|
417
417
|
--cubic-reduced-enter-dialog: cubic-bezier(0.3, 1, 0.7, 1);
|
|
418
418
|
--motion-reduced-enter-menu: 500ms;
|
|
419
419
|
--cubic-reduced-enter-menu: cubic-bezier(0.4, 1, 0.7, 1);
|
|
420
|
+
/* Springs, as SwiftUI's spring(duration:bounce:) with mass 1: smooth (0.5s, bounce 0) and snappy (0.5s, bounce 0.15)
|
|
421
|
+
are SwiftUI's presets; sheet (0.33s, bounce 0.2) and menu (0.21s, bounce 0.2) are an iOS 27.2 sheet and menu
|
|
422
|
+
growing from the button that opens them. Each is a cubic Bézier close to the spring here, for a browser without
|
|
423
|
+
linear() (Safari before 17.2); under @supports below it is the spring itself, sampled to within 0.004. The
|
|
424
|
+
duration is the time the spring takes to settle within 0.001 of its end, longer than the duration it is named
|
|
425
|
+
for, as a spring's tail is. */
|
|
426
|
+
--spring-smooth: cubic-bezier(0.3, 0.6, 0.1, 1);
|
|
427
|
+
--spring-smooth-duration: 750ms;
|
|
428
|
+
--spring-snappy: cubic-bezier(0.35, 0.8, 0.1, 1.02);
|
|
429
|
+
--spring-snappy-duration: 725ms;
|
|
430
|
+
--spring-sheet: cubic-bezier(0.35, 0.9, 0.1, 1.02);
|
|
431
|
+
--spring-sheet-duration: 495ms;
|
|
432
|
+
--spring-menu: cubic-bezier(0.35, 0.9, 0.1, 1.05);
|
|
433
|
+
--spring-menu-duration: 325ms;
|
|
420
434
|
|
|
421
435
|
/* =============================================
|
|
422
436
|
Scrollbar
|
|
@@ -671,6 +685,16 @@
|
|
|
671
685
|
--color-surface-elevated-secondary: var(--gray-400);
|
|
672
686
|
}
|
|
673
687
|
|
|
688
|
+
@supports (transition-timing-function: linear(0, 1)) {
|
|
689
|
+
:root,
|
|
690
|
+
:where([data-theme]) {
|
|
691
|
+
--spring-smooth: linear(0, 0.005 1.1%, 0.02 2.3%, 0.081 4.9%, 0.159 7.5%, 0.463 16.6%, 0.558 19.8%, 0.639 23%, 0.709 26.3%, 0.769 29.7%, 0.82 33.2%, 0.863 37%, 0.901 41.5%, 0.932 46.4%, 0.955 51.9%, 0.972 58.1%, 0.992 73.4%, 1);
|
|
692
|
+
--spring-snappy: linear(0, 0.006 1.2%, 0.023 2.5%, 0.052 3.9%, 0.094 5.5%, 0.187 8.3%, 0.516 17.4%, 0.615 20.6%, 0.698 23.6%, 0.768 26.6%, 0.828 29.8%, 0.877 33.1%, 0.917 36.5%, 0.949 40.3%, 0.973 44.4%, 0.99 49.1%, 1 54.4%, 1.006 65.8%, 1);
|
|
693
|
+
--spring-sheet: linear(0, 0.007 1.2%, 0.024 2.4%, 0.055 3.9%, 0.099 5.4%, 0.195 8.1%, 0.434 14.2%, 0.54 17%, 0.638 20%, 0.724 22.9%, 0.795 25.8%, 0.856 28.9%, 0.905 32%, 0.943 35.3%, 0.971 38.6%, 0.991 42.2%, 1.013 51.1%, 1);
|
|
694
|
+
--spring-menu: linear(0, 0.008 1.2%, 0.027 2.5%, 0.06 3.9%, 0.102 5.3%, 0.197 7.9%, 0.536 16.4%, 0.638 19.4%, 0.726 22.3%, 0.799 25.3%, 0.858 28.2%, 0.907 31.3%, 0.945 34.6%, 0.972 37.8%, 0.992 41.4%, 1.012 49.9%, 1);
|
|
695
|
+
}
|
|
696
|
+
}
|
|
697
|
+
|
|
674
698
|
@media (prefers-reduced-motion: reduce) {
|
|
675
699
|
:root,
|
|
676
700
|
:where([data-theme]) {
|
|
@@ -680,6 +704,10 @@
|
|
|
680
704
|
--motion-exit-large: 0ms;
|
|
681
705
|
--motion-enter-quick: 0ms;
|
|
682
706
|
--motion-exit-quick: 0ms;
|
|
707
|
+
--spring-smooth-duration: 0ms;
|
|
708
|
+
--spring-snappy-duration: 0ms;
|
|
709
|
+
--spring-sheet-duration: 0ms;
|
|
710
|
+
--spring-menu-duration: 0ms;
|
|
683
711
|
}
|
|
684
712
|
}
|
|
685
713
|
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { createTokenResolver, declarationsFor, layerApplies, formatColor, mixColors, resolveValue, } from "./resolve.js";
|
|
2
|
+
export { resolvedTokens, skippedDeclarations, tokenLayers } from "./tokens.generated.js";
|
|
3
|
+
/** The context `resolvedTokens` was built for: a phone in portrait, high density, motion allowed. */
|
|
4
|
+
export const defaultTokenContext = { width: 393, highDensity: true, reducedMotion: false };
|
|
5
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/tokens/index.ts"],"names":[],"mappings":"AAgBA,OAAO,EACL,mBAAmB,EACnB,eAAe,EACf,YAAY,EACZ,WAAW,EACX,SAAS,EACT,YAAY,GAOb,MAAM,cAAc,CAAA;AACrB,OAAO,EAAE,cAAc,EAAE,mBAAmB,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAExF,qGAAqG;AACrG,MAAM,CAAC,MAAM,mBAAmB,GAAiB,EAAE,KAAK,EAAE,GAAG,EAAE,WAAW,EAAE,IAAI,EAAE,aAAa,EAAE,KAAK,EAAE,CAAA","sourcesContent":["/**\n * Plex UI design tokens for platforms that do not read CSS (React Native): `@plexui/styles/tokens`.\n *\n * The CSS token files stay the one source of truth; `tokens.generated.ts` is built from them by\n * `scripts/build-tokens.mjs` (`npm run generate:tokens`), and tests/tokens keeps the two in step.\n *\n * ```ts\n * import { createTokenResolver, tokenLayers, defaultTokenContext } from \"@plexui/styles/tokens\"\n *\n * const tokens = createTokenResolver(tokenLayers, defaultTokenContext, { \"--color-accent\": \"#e5484d\" })\n * tokens.get(\"--color-text\", \"dark\") // \"#ffffff\"\n * tokens.get(\"--accent-500\", \"light\") // the brand accent, darker by black 20%\n * ```\n */\nimport type { TokenContext } from \"./resolve.js\"\n\nexport {\n createTokenResolver,\n declarationsFor,\n layerApplies,\n formatColor,\n mixColors,\n resolveValue,\n type ColorScheme,\n type LayerCondition,\n type TokenContext,\n type TokenLayer,\n type TokenResolver,\n type TokenValue,\n} from \"./resolve.js\"\nexport { resolvedTokens, skippedDeclarations, tokenLayers } from \"./tokens.generated.js\"\n\n/** The context `resolvedTokens` was built for: a phone in portrait, high density, motion allowed. */\nexport const defaultTokenContext: TokenContext = { width: 393, highDensity: true, reducedMotion: false }\n"]}
|