@openameba/spindle-ui 2.2.0 → 2.4.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.
Files changed (72) hide show
  1. package/.bundlewatch.config.js +5 -0
  2. package/.scaffdog/component.md +28 -18
  3. package/CHANGELOG.md +26 -0
  4. package/Dialog/Dialog.d.ts +2 -2
  5. package/DropdownMenu/DropdownMenu.d.ts +1 -1
  6. package/DropdownMenu/DropdownMenu.js +1 -1
  7. package/DropdownMenu/DropdownMenu.js.map +1 -1
  8. package/DropdownMenu/DropdownMenu.mjs +1 -1
  9. package/Form/ButtonSwitch/ButtonSwitch.d.ts +13 -0
  10. package/Form/ButtonSwitch/ButtonSwitch.d.ts.map +1 -0
  11. package/Form/ButtonSwitch/ButtonSwitch.js +68 -0
  12. package/Form/ButtonSwitch/ButtonSwitch.js.map +1 -0
  13. package/Form/ButtonSwitch/ButtonSwitch.mjs +36 -0
  14. package/Form/ToggleSwitch.css +1 -1
  15. package/Form/index.css +1 -1
  16. package/Form/index.d.ts +1 -0
  17. package/Form/index.d.ts.map +1 -1
  18. package/Form/index.js +3 -1
  19. package/Form/index.js.map +1 -1
  20. package/Form/index.mjs +1 -0
  21. package/Icon/Alt.d.ts +5 -0
  22. package/Icon/Alt.d.ts.map +1 -0
  23. package/Icon/Alt.js +41 -0
  24. package/Icon/Alt.js.map +1 -0
  25. package/Icon/Alt.mjs +4 -0
  26. package/Icon/AltFill.d.ts +5 -0
  27. package/Icon/AltFill.d.ts.map +1 -0
  28. package/Icon/AltFill.js +41 -0
  29. package/Icon/AltFill.js.map +1 -0
  30. package/Icon/AltFill.mjs +4 -0
  31. package/Icon/Table.d.ts +5 -0
  32. package/Icon/Table.d.ts.map +1 -0
  33. package/Icon/Table.js +41 -0
  34. package/Icon/Table.js.map +1 -0
  35. package/Icon/Table.mjs +4 -0
  36. package/Icon/index.d.ts +3 -0
  37. package/Icon/index.d.ts.map +1 -1
  38. package/Icon/index.js +14 -8
  39. package/Icon/index.js.map +1 -1
  40. package/Icon/index.mjs +3 -0
  41. package/InlineNotification/InlineNotification.d.ts +2 -2
  42. package/InlineNotification/InlineNotification.d.ts.map +1 -1
  43. package/InlineNotification/InlineNotification.js +15 -3
  44. package/InlineNotification/InlineNotification.js.map +1 -1
  45. package/InlineNotification/InlineNotification.mjs +14 -2
  46. package/Modal/AppealModal.d.ts +2 -2
  47. package/Modal/SemiModal.css +1 -1
  48. package/Modal/index.css +1 -1
  49. package/README.md +4 -13
  50. package/StackNotificationManager/StackNotificationManager.d.ts +1 -1
  51. package/StackNotificationManager/StackNotificationManager.d.ts.map +1 -1
  52. package/StackNotificationManager/StackNotificationManager.js +1 -1
  53. package/StackNotificationManager/StackNotificationManager.js.map +1 -1
  54. package/StackNotificationManager/StackNotificationManager.mjs +2 -2
  55. package/StackNotificationManager/hooks.d.ts +2 -2
  56. package/StackNotificationManager/index.d.ts +2 -1
  57. package/StackNotificationManager/index.d.ts.map +1 -1
  58. package/StackNotificationManager/index.js +2 -1
  59. package/StackNotificationManager/index.js.map +1 -1
  60. package/StackNotificationManager/index.mjs +1 -1
  61. package/icons.figma.js +3 -0
  62. package/icons.figma.js.map +1 -1
  63. package/icons.figma.mjs +4 -1
  64. package/index.css +2 -2
  65. package/index.d.ts +2 -0
  66. package/index.d.ts.map +1 -1
  67. package/index.js +4 -1
  68. package/index.js.map +1 -1
  69. package/index.mjs +1 -0
  70. package/package.json +45 -46
  71. package/tsconfig.cjs.json +7 -2
  72. package/tsconfig.esm.json +7 -2
@@ -50,6 +50,11 @@ const bundlewatchConfig = {
50
50
  maxSize: '1.3 kB',
51
51
  compression: 'gzip',
52
52
  },
53
+ {
54
+ path: './dist/InlineNotification/*.mjs',
55
+ maxSize: '1.2 kB',
56
+ compression: 'gzip',
57
+ },
53
58
  {
54
59
  path: './dist/!(InlineNotification|Modal|SnackBar)/!(index).css',
55
60
  maxSize: '1.5 kB',
@@ -35,15 +35,34 @@ export const {{ inputs.name | pascal }}: React.FC<Props> = ({}) => {
35
35
  .spui-{{ inputs.name | pascal }} {}
36
36
  ```
37
37
 
38
- # `{{ inputs.name | pascal }}/{{ inputs.name | pascal }}.stories.mdx`
38
+ # `{{ inputs.name | pascal }}/{{ inputs.name | pascal }}.stories.tsx`
39
39
 
40
- ```
41
- import { Meta, Story, Source } from '@storybook/addon-docs/blocks';
40
+ ```typescript
41
+ import type { Meta, StoryObj } from '@storybook/react';
42
42
  import { {{ inputs.name | pascal }} } from './{{ inputs.name | pascal }}';
43
43
 
44
- # {{ inputs.name | pascal }}
44
+ const meta: Meta<typeof {{ inputs.name | pascal }}> = {
45
+ title: '{{ inputs.name | pascal }}',
46
+ component: {{ inputs.name | pascal }},
47
+ };
48
+
49
+ export default meta;
50
+ type Story = StoryObj<typeof meta>;
51
+
52
+ export const Normal: Story = {
53
+ args: {},
54
+ };
55
+ ```
56
+
57
+ # `{{ inputs.name | pascal }}/{{ inputs.name | pascal }}.mdx`
58
+
59
+ ```mdx
60
+ import { Meta, Primary, Controls, Story, Source } from '@storybook/blocks';
61
+ import * as {{ inputs.name | pascal }}Stories from './{{ inputs.name | pascal }}.stories';
45
62
 
46
- <Meta title="{{ inputs.name | pascal }}" component={ {{ inputs.name | pascal }} } />
63
+ <Meta of={{ "{" }}{{ inputs.name | pascal }}Stories{{ "}" }} />
64
+
65
+ # {{ inputs.name | pascal }}
47
66
 
48
67
  <Source
49
68
  language='javascript'
@@ -60,22 +79,13 @@ import { {{ inputs.name | pascal }} } from './{{ inputs.name | pascal }}';
60
79
  code={`<link rel="stylesheet" href="https://unpkg.com/@openameba/spindle-ui/{{ inputs.name | pascal }}/{{ inputs.name | pascal }}.css">`}
61
80
  />
62
81
 
63
- ## Normal
82
+ ## Interface
64
83
 
65
- <Preview withSource="open">
66
- <Story name="Normal">
67
- <{{ inputs.name | pascal }} />
68
- </Story>
69
- </Preview>
84
+ <Controls />
70
85
 
71
- <Source
72
- code={``}
73
- />
86
+ ## Normal
74
87
 
75
- <Source
76
- language='html'
77
- code={``}
78
- />
88
+ <Story of={{ "{" }}{{ inputs.name | pascal }}Stories.Normal{{ "}" }} />
79
89
  ```
80
90
 
81
91
  # `{{ inputs.name | pascal }}/{{ inputs.name | pascal }}.test.tsx`
package/CHANGELOG.md CHANGED
@@ -3,6 +3,32 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [2.4.0](https://github.com/openameba/spindle/compare/@openameba/spindle-ui@2.3.0...@openameba/spindle-ui@2.4.0) (2025-07-15)
7
+
8
+ ### Bug Fixes
9
+
10
+ - **spindle-ui:** fix semi modal style ([45650be](https://github.com/openameba/spindle/commit/45650bece6ed84a708a39dcf7460b501eb47fc62))
11
+ - **spindle-ui:** inlineNotificationがFragmentを受け取った際に値のコピーが上手く行かない問題を修正 ([#1332](https://github.com/openameba/spindle/issues/1332)) ([f169fc2](https://github.com/openameba/spindle/commit/f169fc2959206285add8551c433097dd9de83477))
12
+ - **spindle-ui:** ページの背景色に隠れてフォーカスリングが表示されないことがある問題を修正 ([7dd9bd9](https://github.com/openameba/spindle/commit/7dd9bd9ec49602d8d5d0e7861dd2be478e168cbb))
13
+
14
+ ### Features
15
+
16
+ - **spindle-icons:** update icons ([b122821](https://github.com/openameba/spindle/commit/b12282176f8bac392a0c7d8c6edfe8f5d0b1ab46))
17
+ - **spindle-mcp-server:** add tool for design doc ([e8f6179](https://github.com/openameba/spindle/commit/e8f61792304af59e6d98e2c9ed6f993b892c02b2))
18
+
19
+ # [2.3.0](https://github.com/openameba/spindle/compare/@openameba/spindle-ui@2.2.0...@openameba/spindle-ui@2.3.0) (2025-03-28)
20
+
21
+ ### Bug Fixes
22
+
23
+ - **spindle-ui:** variable name ([4f1c6de](https://github.com/openameba/spindle/commit/4f1c6de6243a75a792517105a7451fc5b4a03432))
24
+
25
+ ### Features
26
+
27
+ - **spindle-ui:** ButtonSwitchコンポーネントの実装 ([#1280](https://github.com/openameba/spindle/issues/1280)) ([a4217cd](https://github.com/openameba/spindle/commit/a4217cdd5cf93c0018ef1327b71d9c0888b9f313))
28
+ - **spindle-ui:** update design-doc ([88bcc34](https://github.com/openameba/spindle/commit/88bcc34417924a633f30b2f9c3e4da64e084a642))
29
+ - **spindle-ui:** update design-doc of ButtonSwitch ([231d346](https://github.com/openameba/spindle/commit/231d346fdf3c4982111267e9e35a50c3d7076914))
30
+ - **spindle-ui:** update usage of ButtonSwitch ([0724c21](https://github.com/openameba/spindle/commit/0724c2183f98a76f2c24f4267d4306feb20551b7))
31
+
6
32
  # [2.2.0](https://github.com/openameba/spindle/compare/@openameba/spindle-ui@2.1.3...@openameba/spindle-ui@2.2.0) (2025-03-03)
7
33
 
8
34
  ### Features
@@ -20,8 +20,8 @@ export declare const Dialog: {
20
20
  Title: ({ children, id }: PartsProps) => React.JSX.Element;
21
21
  Body: ({ children, id }: PartsProps) => React.JSX.Element;
22
22
  ButtonGroup: React.FC<{
23
- direction?: ("column" | "row") | undefined;
24
- size?: ("small" | "medium" | "large") | undefined;
23
+ direction?: ("row" | "column") | undefined;
24
+ size?: ("small" | "large" | "medium") | undefined;
25
25
  } & React.HTMLAttributes<HTMLDivElement>>;
26
26
  };
27
27
  export {};
@@ -21,7 +21,7 @@ declare const Position: ({ children, position, triggerRef, }: Omit<ListProps, 'o
21
21
  export declare const DropdownMenu: {
22
22
  Caption: ({ children }: DefaultProps) => React.JSX.Element;
23
23
  Frame: ({ children }: DefaultProps) => React.JSX.Element;
24
- List: ({ children, id, onClose, open, position, triggerRef, variant, }: ListProps) => React.JSX.Element;
24
+ List: ({ children, id, onClose, open, position, triggerRef, variant, }: ListProps) => React.JSX.Element | null;
25
25
  ListItem: ({ children, icon, onClick }: ListItemProps) => React.JSX.Element;
26
26
  Position: ({ children, position, triggerRef, }: Omit<ListProps, 'onClose' | 'open'>) => React.JSX.Element;
27
27
  Title: ({ children }: DefaultProps) => React.JSX.Element;
@@ -109,7 +109,7 @@ var List = function (_a) {
109
109
  return function () { return window.removeEventListener('keydown', handleKeyDown); };
110
110
  }, [handleKeyDown, open]);
111
111
  if (!open) {
112
- return react_1.default.createElement(react_1.default.Fragment, null);
112
+ return null;
113
113
  }
114
114
  var top;
115
115
  var bottom;
@@ -1 +1 @@
1
- {"version":3,"file":"DropdownMenu.js","sourceRoot":"","sources":["../../src/DropdownMenu/DropdownMenu.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAAwE;AAwC3D,QAAA,UAAU,GAAG,mBAAmB,CAAC;AAC9C,IAAM,iBAAiB,GAAG,2BAA2B,CAAC;AACtD,IAAM,cAAc,GAAG,CAAC,QAAQ,EAAE,KAAK,CAAC,CAAC;AACzC,IAAM,UAAU,GAAG,GAAG,CAAC;AAEvB,IAAM,OAAO,GAAG,UAAC,EAA0B;QAAxB,QAAQ,cAAA;IACzB,OAAO,qCAAG,SAAS,EAAE,UAAG,kBAAU,aAAU,IAAG,QAAQ,CAAK,CAAC;AAC/D,CAAC,CAAC;AAEF,IAAM,KAAK,GAAG,UAAC,EAA0B;QAAxB,QAAQ,cAAA;IACvB,OAAO,uCAAK,SAAS,EAAE,UAAG,kBAAU,CAAE,IAAG,QAAQ,CAAO,CAAC;AAC3D,CAAC,CAAC;AAEF,IAAM,IAAI,GAAG,UAAC,EAQF;QAPV,QAAQ,cAAA,EACR,EAAE,QAAA,EACF,OAAO,aAAA,EACP,IAAI,UAAA,EACJ,gBAAoB,EAApB,QAAQ,mBAAG,SAAS,KAAA,EACpB,UAAU,gBAAA,EACV,eAAgB,EAAhB,OAAO,mBAAG,MAAM,KAAA;IAEhB,IAAM,MAAM,GAAG,IAAA,cAAM,EAAmB,IAAI,CAAC,CAAC;IACxC,IAAA,KAAwB,IAAA,gBAAQ,EAAC,KAAK,CAAC,EAAtC,OAAO,QAAA,EAAE,UAAU,QAAmB,CAAC;IACxC,IAAA,KAAoC,IAAA,gBAAQ,EAAC,CAAC,CAAC,EAA9C,aAAa,QA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,GAAG;IAC1B,OAAO,SAAA;IACP,KAAK,OAAA;IACL,IAAI,MAAA;IACJ,QAAQ,UAAA;IACR,QAAQ,UAAA;IACR,KAAK,OAAA;CACN,CAAC"}
@@ -77,7 +77,7 @@ const List = ({ children, id, onClose, open, position = 'leftTop', triggerRef, v
77
77
  return () => window.removeEventListener('keydown', handleKeyDown);
78
78
  }, [handleKeyDown, open]);
79
79
  if (!open) {
80
- return React.createElement(React.Fragment, null);
80
+ return null;
81
81
  }
82
82
  let top;
83
83
  let bottom;
@@ -0,0 +1,13 @@
1
+ import React from 'react';
2
+ declare type Props = {
3
+ id?: string;
4
+ value: string | null;
5
+ options: {
6
+ label: string;
7
+ value: string;
8
+ }[];
9
+ onClick: (value: string) => void;
10
+ };
11
+ export declare const ButtonSwitch: React.FC<Props>;
12
+ export {};
13
+ //# sourceMappingURL=ButtonSwitch.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ButtonSwitch.d.ts","sourceRoot":"","sources":["../../../src/Form/ButtonSwitch/ButtonSwitch.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAyD,MAAM,OAAO,CAAC;AAG9E,aAAK,KAAK,GAAG;IACX,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,OAAO,EAAE;QACP,KAAK,EAAE,MAAM,CAAC;QACd,KAAK,EAAE,MAAM,CAAC;KACf,EAAE,CAAC;IACJ,OAAO,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CAClC,CAAC;AAIF,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAsExC,CAAC"}
@@ -0,0 +1,68 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
25
+ var __importDefault = (this && this.__importDefault) || function (mod) {
26
+ return (mod && mod.__esModule) ? mod : { "default": mod };
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.ButtonSwitch = void 0;
30
+ var react_1 = __importStar(require("react"));
31
+ var CheckBold_1 = __importDefault(require("../../Icon/CheckBold"));
32
+ var BLOCK_NAME = 'spui-ButtonSwitch';
33
+ var ButtonSwitch = function (_a) {
34
+ var id = _a.id, value = _a.value, options = _a.options, onClick = _a.onClick;
35
+ var buttonsRef = (0, react_1.useRef)([]);
36
+ options.forEach(function (_, index) {
37
+ buttonsRef.current[index] = (0, react_1.createRef)();
38
+ });
39
+ var handleKeydown = (0, react_1.useCallback)(function (e, index) {
40
+ var focusButton = function (offset) {
41
+ var buttonRef = buttonsRef.current[(options.length + index + offset) % options.length];
42
+ var button = buttonRef.current;
43
+ button === null || button === void 0 ? void 0 : button.focus();
44
+ if (onClick) {
45
+ onClick(options[(options.length + index + offset) % options.length].value);
46
+ }
47
+ };
48
+ switch (e.key) {
49
+ case 'ArrowUp':
50
+ case 'ArrowLeft': {
51
+ e.preventDefault();
52
+ focusButton(-1);
53
+ break;
54
+ }
55
+ case 'ArrowDown':
56
+ case 'ArrowRight': {
57
+ e.preventDefault();
58
+ focusButton(1);
59
+ break;
60
+ }
61
+ }
62
+ }, [options, onClick]);
63
+ return (react_1.default.createElement("div", { id: id, className: BLOCK_NAME, role: "group" }, options.map(function (option, index) { return (react_1.default.createElement("button", { type: "button", "aria-pressed": value === option.value, onKeyDown: function (e) { return handleKeydown(e, index); }, key: option.value, className: "".concat(BLOCK_NAME, "-button"), onClick: function () { return onClick && onClick(option.value); }, ref: buttonsRef.current[index] },
64
+ value === option.value && (react_1.default.createElement(CheckBold_1.default, { "aria-hidden": "true", className: "".concat(BLOCK_NAME, "-icon"), width: 12, height: 12 })),
65
+ react_1.default.createElement("span", { className: "".concat(BLOCK_NAME, "-label") }, option.label))); })));
66
+ };
67
+ exports.ButtonSwitch = ButtonSwitch;
68
+ //# sourceMappingURL=ButtonSwitch.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ButtonSwitch.js","sourceRoot":"","sources":["../../../src/Form/ButtonSwitch/ButtonSwitch.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA8E;AAC9E,mEAA6C;AAY7C,IAAM,UAAU,GAAG,mBAAmB,CAAC;AAEhC,IAAM,YAAY,GAAoB,UAAC,EAK7C;QAJC,EAAE,QAAA,EACF,KAAK,WAAA,EACL,OAAO,aAAA,EACP,OAAO,aAAA;IAEP,IAAM,UAAU,GAAG,IAAA,cAAM,EAAiC,EAAE,CAAC,CAAC;IAE9D,OAAO,CAAC,OAAO,CAAC,UAAC,CAAC,EAAE,KAAK;QACvB,UAAU,CAAC,OAAO,CAAC,KAAK,CAAC,GAAG,IAAA,iBAAS,GAAqB,CAAC;IAC7D,CAAC,CAAC,CAAC;IAEH,IAAM,aAAa,GAAG,IAAA,mBAAW,EAC/B,UAAC,CAAyC,EAAE,KAAa;QACvD,IAAM,WAAW,GAAG,UAAC,MAAc;YACjC,IAAM,SAAS,GACb,UAAU,CAAC,OAAO,CAChB,CAAC,OAAO,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,EAAhC,CAAgC,EAC/C,GAAG,EAAE,UAAU,CAAC,OAAO,CAAC,KAAK,CAAC;QAE7B,KAAK,KAAK,MAAM,CAAC,KAAK,IAAI,CACzB,8BAAC,mBAAS,mBACI,MAAM,EAClB,SAAS,EAAE,UAAG,UAAU,UAAO,EAC/B,KAAK,EAAE,EAAE,EACT,MAAM,EAAE,EAAE,GACV,CACH;QACD,wCAAM,SAAS,EAAE,UAAG,UAAU,WAAQ,IAAG,MAAM,CAAC,KAAK,CAAQ,CACtD,CACV,EApB+B,CAoB/B,CAAC,CACE,CACP,CAAC;AACJ,CAAC,CAAC;AAtEW,QAAA,YAAY,gBAsEvB"}
@@ -0,0 +1,36 @@
1
+ import React, { createRef, useCallback, useRef } from 'react';
2
+ import CheckBold from "../../Icon/CheckBold.mjs";
3
+ const BLOCK_NAME = 'spui-ButtonSwitch';
4
+ export const ButtonSwitch = ({ id, value, options, onClick, }) => {
5
+ const buttonsRef = useRef([]);
6
+ options.forEach((_, index) => {
7
+ buttonsRef.current[index] = createRef();
8
+ });
9
+ const handleKeydown = useCallback((e, index) => {
10
+ const focusButton = (offset) => {
11
+ const buttonRef = buttonsRef.current[(options.length + index + offset) % options.length];
12
+ const button = buttonRef.current;
13
+ button?.focus();
14
+ if (onClick) {
15
+ onClick(options[(options.length + index + offset) % options.length].value);
16
+ }
17
+ };
18
+ switch (e.key) {
19
+ case 'ArrowUp':
20
+ case 'ArrowLeft': {
21
+ e.preventDefault();
22
+ focusButton(-1);
23
+ break;
24
+ }
25
+ case 'ArrowDown':
26
+ case 'ArrowRight': {
27
+ e.preventDefault();
28
+ focusButton(1);
29
+ break;
30
+ }
31
+ }
32
+ }, [options, onClick]);
33
+ return (React.createElement("div", { id: id, className: BLOCK_NAME, role: "group" }, options.map((option, index) => (React.createElement("button", { type: "button", "aria-pressed": value === option.value, onKeyDown: (e) => handleKeydown(e, index), key: option.value, className: `${BLOCK_NAME}-button`, onClick: () => onClick && onClick(option.value), ref: buttonsRef.current[index] },
34
+ value === option.value && (React.createElement(CheckBold, { "aria-hidden": "true", className: `${BLOCK_NAME}-icon`, width: 12, height: 12 })),
35
+ React.createElement("span", { className: `${BLOCK_NAME}-label` }, option.label))))));
36
+ };
@@ -1 +1 @@
1
- .spui-ToggleSwitch{display:inline-block;height:32px;position:relative;width:52px}.spui-ToggleSwitch-input{opacity:0;outline:none}.spui-ToggleSwitch-input:disabled~.spui-ToggleSwitch-visual{opacity:.3}.spui-ToggleSwitch-visual{background-color:var(--color-surface-quaternary);border-radius:16px;box-sizing:border-box;display:inline-block;height:100%;left:0;position:absolute;top:0;width:100%}.spui-ToggleSwitch-input:checked~.spui-ToggleSwitch-visual{background-color:var(--color-surface-accent-primary)}.spui-ToggleSwitch-visual:before{background-color:var(--color-object-high-emphasis-inverse);border:1px solid var(--color-border-low-emphasis);border-radius:100%;box-sizing:border-box;content:"";display:inline-block;height:24px;left:4px;position:absolute;top:4px;transition:transform .3s ease-out;width:24px}.spui-ToggleSwitch-input:checked~.spui-ToggleSwitch-visual:before{transform:translate(20px)}.spui-ToggleSwitch-outline{border-radius:16px;bottom:-2px;left:-2px;position:absolute;right:-2px;top:-2px;z-index:-1}.spui-ToggleSwitch-input:focus~.spui-ToggleSwitch-outline{box-shadow:0 0 0 2px var(--color-focus-clarity)}.spui-ToggleSwitch-input:focus:not(:focus-visible)~.spui-ToggleSwitch-outline{box-shadow:none}
1
+ .spui-ToggleSwitch{display:inline-block;height:32px;position:relative;width:52px}.spui-ToggleSwitch-input{opacity:0;outline:none}.spui-ToggleSwitch-input:disabled~.spui-ToggleSwitch-visual{opacity:.3}.spui-ToggleSwitch-visual{background-color:var(--color-surface-quaternary);border-radius:16px;box-sizing:border-box;display:inline-block;height:100%;left:0;position:absolute;top:0;width:100%}.spui-ToggleSwitch-input:checked~.spui-ToggleSwitch-visual{background-color:var(--color-surface-accent-primary)}.spui-ToggleSwitch-visual:before{background-color:var(--color-object-high-emphasis-inverse);border:1px solid var(--color-border-low-emphasis);border-radius:100%;box-sizing:border-box;content:"";display:inline-block;height:24px;left:4px;position:absolute;top:4px;transition:transform .3s ease-out;width:24px}.spui-ToggleSwitch-input:checked~.spui-ToggleSwitch-visual:before{transform:translate(20px)}.spui-ToggleSwitch-outline{border-radius:16px;bottom:-2px;left:-2px;position:absolute;right:-2px;top:-2px}.spui-ToggleSwitch-input:focus~.spui-ToggleSwitch-outline{box-shadow:0 0 0 2px var(--color-focus-clarity)}.spui-ToggleSwitch-input:focus:not(:focus-visible)~.spui-ToggleSwitch-outline{box-shadow:none}
package/Form/index.css CHANGED
@@ -1 +1 @@
1
- .spui-Checkbox-label{align-items:center;border-radius:2px;color:var(--color-text-low-emphasis);display:inline-flex;font-size:1em;font-weight:700;line-height:1;position:relative}.spui-Checkbox-input{clip:rect(1px,1px,1px,1px);height:1px;margin-top:0;overflow:hidden;position:absolute;width:1px}.spui-Checkbox-icon{align-items:center;border:1px solid var(--color-border-medium-emphasis);border-radius:4px;box-sizing:border-box;color:transparent;display:inline-flex;font-size:.875em;height:18px;justify-content:center;width:18px}.spui-Checkbox-input:checked+.spui-Checkbox-icon{background-color:var(--color-object-accent-primary);border:1px solid var(--color-object-accent-primary);color:var(--color-text-high-emphasis-inverse)}.spui-Checkbox-input:disabled+.spui-Checkbox-icon{opacity:.3}.spui-Checkbox-outline{border-radius:2px;bottom:-2px;height:22px;left:-2px;position:absolute;right:-2px;top:-2px;width:22px}.spui-Checkbox-input:focus~.spui-Checkbox-outline{box-shadow:0 0 0 2px var(--color-focus-clarity)}.spui-Checkbox-input:focus:not(:focus-visible)~.spui-Checkbox-outline{box-shadow:none}.spui-Checkbox-text:not(:empty){margin-left:8px}.spui-Checkbox-input:checked~.spui-Checkbox-text{color:var(--color-object-accent-primary)}.spui-Checkbox-input:disabled~.spui-Checkbox-text{color:var(--color-text-disabled)}.spui-DropDown-label{display:inline-block;position:relative}.spui-DropDown-select{-webkit-appearance:none;margin:0;opacity:0;outline:none}.spui-DropDown-select,.spui-DropDown-visual{box-sizing:border-box;font-size:1em;min-height:40px;padding:.5em calc(40px + 1em) .5em 1em}.spui-DropDown-visual{align-items:center;background-color:var(--color-surface-primary);border:1px solid var(--color-border-medium-emphasis);border-radius:8px;color:var(--color-text-disabled);display:flex;height:100%;left:0;position:absolute;top:0;width:100%}.spui-DropDown-label.is-active .spui-DropDown-visual{color:var(--color-text-high-emphasis)}.spui-DropDown-icon{align-items:center;background-color:var(--color-surface-secondary);border:1px solid var(--color-border-medium-emphasis);border-bottom-right-radius:8px;border-top-right-radius:8px;box-sizing:border-box;color:var(--color-object-low-emphasis);display:flex;height:100%;justify-content:center;position:absolute;right:0;top:0;width:40px}.spui-DropDown-outline{border-radius:8px;display:inline-block;height:100%;left:0;pointer-events:none;position:absolute;top:0;width:100%}.spui-DropDown-select:focus~.spui-DropDown-outline{border-color:var(--color-border-high-emphasis);box-shadow:0 0 0 3px var(--color-focus-ambiguous)}.spui-DropDown-select:focus:not(:focus-visible)~.spui-DropDown-outline{border-color:var(--color-border-medium-emphasis);box-shadow:none}.spui-DropDown-label.is-error .spui-DropDown-icon,.spui-DropDown-label.is-error .spui-DropDown-visual,.spui-DropDown-label:user-invalid .spui-DropDown-icon,.spui-DropDown-label:user-invalid .spui-DropDown-visual{background-color:var(--color-surface-caution-light);border-color:var(--color-border-caution)}.spui-InlineDropDown-label{display:inline-block;position:relative}.spui-InlineDropDown-select{-webkit-appearance:listitem;box-sizing:border-box;font-size:1em;margin:0;opacity:0;outline:none;position:absolute;top:0;width:100%}.spui-InlineDropDown-select--medium{min-height:40px}.spui-InlineDropDown-select--small{min-height:32px}.spui-InlineDropDown-text,.spui-InlineDropDown-visual{border-radius:8px;display:flex}.spui-InlineDropDown-text{align-items:center;box-sizing:border-box;color:var(--color-text-medium-emphasis);font-weight:700;height:100%;left:0;padding:.5em 0}.spui-InlineDropDown-text--medium{font-size:.875em;min-height:40px}.spui-InlineDropDown-text--small{font-size:.8125em;min-height:32px}.spui-InlineDropDown-icon{align-items:center;background-color:transparent;border-bottom-right-radius:8px;border-top-right-radius:8px;box-sizing:border-box;color:var(--color-object-medium-emphasis);display:flex;justify-content:center;margin-left:4px}.spui-InlineDropDown-icon--medium{font-size:.875em}.spui-InlineDropDown-icon--small{font-size:.8125em}.spui-InlineDropDown-outline{border-radius:8px;display:inline-block;height:100%;left:0;pointer-events:none;position:absolute;top:0;width:100%}.spui-InlineDropDown-select:focus~.spui-InlineDropDown-outline{border-color:var(--color-border-medium-emphasis);box-shadow:0 0 0 3px var(--color-focus-ambiguous)}.spui-InlineDropDown-select:focus:not(:focus-visible)~.spui-InlineDropDown-outline{border-color:var(--color-border-medium-emphasis);box-shadow:none}.spui-InputLabel{color:var(--color-text-medium-emphasis);display:block;font-size:.875em;font-weight:700;line-height:1.4}.spui-InputLabel:empty{display:none}.spui-InvalidMessage{color:var(--color-text-caution);display:flex;font-size:.75em;font-weight:700;line-height:1.4;margin:8px 0 0;min-height:1.1em;transition:height .3s}.spui-InvalidMessage[hidden]{display:none}.spui-InvalidMessage-icon{font-size:1.33em;line-height:1;margin-right:.25em}.spui-InvalidMessage-body{position:relative;top:1px}.spui-Radio-label{align-items:center;border-radius:2px;color:var(--color-text-low-emphasis);display:inline-flex;font-size:1em;font-weight:700;line-height:1;position:relative}.spui-Radio-input{clip:rect(1px,1px,1px,1px);height:1px;margin-top:0;overflow:hidden;position:absolute;width:1px}.spui-Radio-icon{align-items:center;border:1px solid var(--color-border-medium-emphasis);border-radius:50%;box-sizing:border-box;color:transparent;display:inline-flex;flex-shrink:0;font-size:.875em;height:20px;justify-content:center;vertical-align:top;width:20px}.spui-Radio-input:checked+.spui-Radio-icon{background-color:var(--color-object-accent-primary);border:1px solid var(--color-object-accent-primary);color:var(--color-text-high-emphasis-inverse)}.spui-Radio-input:disabled+.spui-Radio-icon{opacity:.3}.spui-Radio-outline{border-radius:50%;bottom:-2px;height:24px;left:-2px;position:absolute;right:-2px;top:-2px;width:24px}.spui-Radio-input:focus~.spui-Radio-outline{box-shadow:0 0 0 2px var(--color-focus-clarity)}.spui-Radio-input:focus:not(:focus-visible)~.spui-Radio-outline{box-shadow:none}.spui-Radio-text:not(:empty){margin-left:8px}.spui-Radio-input:checked~.spui-Radio-text{color:var(--color-object-accent-primary)}.spui-Radio-input:disabled~.spui-Radio-text{color:var(--color-text-disabled)}.spui-TextArea{background-color:var(--color-surface-primary);border:1px solid var(--color-border-medium-emphasis);border-radius:8px;box-sizing:border-box;color:var(--color-text-high-emphasis);font-size:1em;line-height:1.4;margin:0;min-height:92px;outline:none;padding:12px 16px;transition:box-shadow .3s;width:100%}@media (prefers-reduced-motion:reduce){.spui-TextArea{transition:box-shadow .1ms}}.spui-TextArea::-moz-placeholder{color:var(--color-text-disabled)}.spui-TextArea::placeholder{color:var(--color-text-disabled)}.spui-TextArea:focus{border-color:var(--color-border-high-emphasis);box-shadow:0 0 0 3px var(--color-focus-ambiguous)}.spui-TextArea:focus:not(:focus-visible){border-color:var(--color-border-medium-emphasis);box-shadow:none}.spui-TextArea.is-error,.spui-TextArea:user-invalid{background-color:var(--color-surface-caution-light);border-color:var(--color-border-caution)}.spui-TextField{background-color:var(--color-surface-primary);border:1px solid var(--color-border-medium-emphasis);border-radius:8px;box-sizing:border-box;color:var(--color-text-high-emphasis);font-size:1em;margin:0;outline:none;padding:0 16px;transition:box-shadow .3s;width:100%}@media (prefers-reduced-motion:reduce){.spui-TextField{transition:box-shadow .1ms}}.spui-TextField::-moz-placeholder{color:var(--color-text-disabled)}.spui-TextField::placeholder{color:var(--color-text-disabled)}.spui-TextField:focus{border-color:var(--color-border-high-emphasis);box-shadow:0 0 0 3px var(--color-focus-ambiguous)}.spui-TextField:focus:not(:focus-visible){border-color:var(--color-border-medium-emphasis);box-shadow:none}.spui-TextField.is-error,.spui-TextField:user-invalid{background-color:var(--color-surface-caution-light);border-color:var(--color-border-caution)}.spui-TextField--large{min-height:48px}.spui-TextField--medium{min-height:40px}.spui-ToggleSwitch{display:inline-block;height:32px;position:relative;width:52px}.spui-ToggleSwitch-input{opacity:0;outline:none}.spui-ToggleSwitch-input:disabled~.spui-ToggleSwitch-visual{opacity:.3}.spui-ToggleSwitch-visual{background-color:var(--color-surface-quaternary);border-radius:16px;box-sizing:border-box;display:inline-block;height:100%;left:0;position:absolute;top:0;width:100%}.spui-ToggleSwitch-input:checked~.spui-ToggleSwitch-visual{background-color:var(--color-surface-accent-primary)}.spui-ToggleSwitch-visual:before{background-color:var(--color-object-high-emphasis-inverse);border:1px solid var(--color-border-low-emphasis);border-radius:100%;box-sizing:border-box;content:"";display:inline-block;height:24px;left:4px;position:absolute;top:4px;transition:transform .3s ease-out;width:24px}.spui-ToggleSwitch-input:checked~.spui-ToggleSwitch-visual:before{transform:translate(20px)}.spui-ToggleSwitch-outline{border-radius:16px;bottom:-2px;left:-2px;position:absolute;right:-2px;top:-2px;z-index:-1}.spui-ToggleSwitch-input:focus~.spui-ToggleSwitch-outline{box-shadow:0 0 0 2px var(--color-focus-clarity)}.spui-ToggleSwitch-input:focus:not(:focus-visible)~.spui-ToggleSwitch-outline{box-shadow:none}
1
+ .spui-Checkbox-label{align-items:center;border-radius:2px;color:var(--color-text-low-emphasis);display:inline-flex;font-size:1em;font-weight:700;line-height:1;position:relative}.spui-Checkbox-input{clip:rect(1px,1px,1px,1px);height:1px;margin-top:0;overflow:hidden;position:absolute;width:1px}.spui-Checkbox-icon{align-items:center;border:1px solid var(--color-border-medium-emphasis);border-radius:4px;box-sizing:border-box;color:transparent;display:inline-flex;font-size:.875em;height:18px;justify-content:center;width:18px}.spui-Checkbox-input:checked+.spui-Checkbox-icon{background-color:var(--color-object-accent-primary);border:1px solid var(--color-object-accent-primary);color:var(--color-text-high-emphasis-inverse)}.spui-Checkbox-input:disabled+.spui-Checkbox-icon{opacity:.3}.spui-Checkbox-outline{border-radius:2px;bottom:-2px;height:22px;left:-2px;position:absolute;right:-2px;top:-2px;width:22px}.spui-Checkbox-input:focus~.spui-Checkbox-outline{box-shadow:0 0 0 2px var(--color-focus-clarity)}.spui-Checkbox-input:focus:not(:focus-visible)~.spui-Checkbox-outline{box-shadow:none}.spui-Checkbox-text:not(:empty){margin-left:8px}.spui-Checkbox-input:checked~.spui-Checkbox-text{color:var(--color-object-accent-primary)}.spui-Checkbox-input:disabled~.spui-Checkbox-text{color:var(--color-text-disabled)}.spui-DropDown-label{display:inline-block;position:relative}.spui-DropDown-select{-webkit-appearance:none;margin:0;opacity:0;outline:none}.spui-DropDown-select,.spui-DropDown-visual{box-sizing:border-box;font-size:1em;min-height:40px;padding:.5em calc(40px + 1em) .5em 1em}.spui-DropDown-visual{align-items:center;background-color:var(--color-surface-primary);border:1px solid var(--color-border-medium-emphasis);border-radius:8px;color:var(--color-text-disabled);display:flex;height:100%;left:0;position:absolute;top:0;width:100%}.spui-DropDown-label.is-active .spui-DropDown-visual{color:var(--color-text-high-emphasis)}.spui-DropDown-icon{align-items:center;background-color:var(--color-surface-secondary);border:1px solid var(--color-border-medium-emphasis);border-bottom-right-radius:8px;border-top-right-radius:8px;box-sizing:border-box;color:var(--color-object-low-emphasis);display:flex;height:100%;justify-content:center;position:absolute;right:0;top:0;width:40px}.spui-DropDown-outline{border-radius:8px;display:inline-block;height:100%;left:0;pointer-events:none;position:absolute;top:0;width:100%}.spui-DropDown-select:focus~.spui-DropDown-outline{border-color:var(--color-border-high-emphasis);box-shadow:0 0 0 3px var(--color-focus-ambiguous)}.spui-DropDown-select:focus:not(:focus-visible)~.spui-DropDown-outline{border-color:var(--color-border-medium-emphasis);box-shadow:none}.spui-DropDown-label.is-error .spui-DropDown-icon,.spui-DropDown-label.is-error .spui-DropDown-visual,.spui-DropDown-label:user-invalid .spui-DropDown-icon,.spui-DropDown-label:user-invalid .spui-DropDown-visual{background-color:var(--color-surface-caution-light);border-color:var(--color-border-caution)}.spui-InlineDropDown-label{display:inline-block;position:relative}.spui-InlineDropDown-select{-webkit-appearance:listitem;box-sizing:border-box;font-size:1em;margin:0;opacity:0;outline:none;position:absolute;top:0;width:100%}.spui-InlineDropDown-select--medium{min-height:40px}.spui-InlineDropDown-select--small{min-height:32px}.spui-InlineDropDown-text,.spui-InlineDropDown-visual{border-radius:8px;display:flex}.spui-InlineDropDown-text{align-items:center;box-sizing:border-box;color:var(--color-text-medium-emphasis);font-weight:700;height:100%;left:0;padding:.5em 0}.spui-InlineDropDown-text--medium{font-size:.875em;min-height:40px}.spui-InlineDropDown-text--small{font-size:.8125em;min-height:32px}.spui-InlineDropDown-icon{align-items:center;background-color:transparent;border-bottom-right-radius:8px;border-top-right-radius:8px;box-sizing:border-box;color:var(--color-object-medium-emphasis);display:flex;justify-content:center;margin-left:4px}.spui-InlineDropDown-icon--medium{font-size:.875em}.spui-InlineDropDown-icon--small{font-size:.8125em}.spui-InlineDropDown-outline{border-radius:8px;display:inline-block;height:100%;left:0;pointer-events:none;position:absolute;top:0;width:100%}.spui-InlineDropDown-select:focus~.spui-InlineDropDown-outline{border-color:var(--color-border-medium-emphasis);box-shadow:0 0 0 3px var(--color-focus-ambiguous)}.spui-InlineDropDown-select:focus:not(:focus-visible)~.spui-InlineDropDown-outline{border-color:var(--color-border-medium-emphasis);box-shadow:none}.spui-InputLabel{color:var(--color-text-medium-emphasis);display:block;font-size:.875em;font-weight:700;line-height:1.4}.spui-InputLabel:empty{display:none}.spui-InvalidMessage{color:var(--color-text-caution);display:flex;font-size:.75em;font-weight:700;line-height:1.4;margin:8px 0 0;min-height:1.1em;transition:height .3s}.spui-InvalidMessage[hidden]{display:none}.spui-InvalidMessage-icon{font-size:1.33em;line-height:1;margin-right:.25em}.spui-InvalidMessage-body{position:relative;top:1px}.spui-Radio-label{align-items:center;border-radius:2px;color:var(--color-text-low-emphasis);display:inline-flex;font-size:1em;font-weight:700;line-height:1;position:relative}.spui-Radio-input{clip:rect(1px,1px,1px,1px);height:1px;margin-top:0;overflow:hidden;position:absolute;width:1px}.spui-Radio-icon{align-items:center;border:1px solid var(--color-border-medium-emphasis);border-radius:50%;box-sizing:border-box;color:transparent;display:inline-flex;flex-shrink:0;font-size:.875em;height:20px;justify-content:center;vertical-align:top;width:20px}.spui-Radio-input:checked+.spui-Radio-icon{background-color:var(--color-object-accent-primary);border:1px solid var(--color-object-accent-primary);color:var(--color-text-high-emphasis-inverse)}.spui-Radio-input:disabled+.spui-Radio-icon{opacity:.3}.spui-Radio-outline{border-radius:50%;bottom:-2px;height:24px;left:-2px;position:absolute;right:-2px;top:-2px;width:24px}.spui-Radio-input:focus~.spui-Radio-outline{box-shadow:0 0 0 2px var(--color-focus-clarity)}.spui-Radio-input:focus:not(:focus-visible)~.spui-Radio-outline{box-shadow:none}.spui-Radio-text:not(:empty){margin-left:8px}.spui-Radio-input:checked~.spui-Radio-text{color:var(--color-object-accent-primary)}.spui-Radio-input:disabled~.spui-Radio-text{color:var(--color-text-disabled)}.spui-TextArea{background-color:var(--color-surface-primary);border:1px solid var(--color-border-medium-emphasis);border-radius:8px;box-sizing:border-box;color:var(--color-text-high-emphasis);font-size:1em;line-height:1.4;margin:0;min-height:92px;outline:none;padding:12px 16px;transition:box-shadow .3s;width:100%}@media (prefers-reduced-motion:reduce){.spui-TextArea{transition:box-shadow .1ms}}.spui-TextArea::-moz-placeholder{color:var(--color-text-disabled)}.spui-TextArea::placeholder{color:var(--color-text-disabled)}.spui-TextArea:focus{border-color:var(--color-border-high-emphasis);box-shadow:0 0 0 3px var(--color-focus-ambiguous)}.spui-TextArea:focus:not(:focus-visible){border-color:var(--color-border-medium-emphasis);box-shadow:none}.spui-TextArea.is-error,.spui-TextArea:user-invalid{background-color:var(--color-surface-caution-light);border-color:var(--color-border-caution)}.spui-TextField{background-color:var(--color-surface-primary);border:1px solid var(--color-border-medium-emphasis);border-radius:8px;box-sizing:border-box;color:var(--color-text-high-emphasis);font-size:1em;margin:0;outline:none;padding:0 16px;transition:box-shadow .3s;width:100%}@media (prefers-reduced-motion:reduce){.spui-TextField{transition:box-shadow .1ms}}.spui-TextField::-moz-placeholder{color:var(--color-text-disabled)}.spui-TextField::placeholder{color:var(--color-text-disabled)}.spui-TextField:focus{border-color:var(--color-border-high-emphasis);box-shadow:0 0 0 3px var(--color-focus-ambiguous)}.spui-TextField:focus:not(:focus-visible){border-color:var(--color-border-medium-emphasis);box-shadow:none}.spui-TextField.is-error,.spui-TextField:user-invalid{background-color:var(--color-surface-caution-light);border-color:var(--color-border-caution)}.spui-TextField--large{min-height:48px}.spui-TextField--medium{min-height:40px}.spui-ToggleSwitch{display:inline-block;height:32px;position:relative;width:52px}.spui-ToggleSwitch-input{opacity:0;outline:none}.spui-ToggleSwitch-input:disabled~.spui-ToggleSwitch-visual{opacity:.3}.spui-ToggleSwitch-visual{background-color:var(--color-surface-quaternary);border-radius:16px;box-sizing:border-box;display:inline-block;height:100%;left:0;position:absolute;top:0;width:100%}.spui-ToggleSwitch-input:checked~.spui-ToggleSwitch-visual{background-color:var(--color-surface-accent-primary)}.spui-ToggleSwitch-visual:before{background-color:var(--color-object-high-emphasis-inverse);border:1px solid var(--color-border-low-emphasis);border-radius:100%;box-sizing:border-box;content:"";display:inline-block;height:24px;left:4px;position:absolute;top:4px;transition:transform .3s ease-out;width:24px}.spui-ToggleSwitch-input:checked~.spui-ToggleSwitch-visual:before{transform:translate(20px)}.spui-ToggleSwitch-outline{border-radius:16px;bottom:-2px;left:-2px;position:absolute;right:-2px;top:-2px}.spui-ToggleSwitch-input:focus~.spui-ToggleSwitch-outline{box-shadow:0 0 0 2px var(--color-focus-clarity)}.spui-ToggleSwitch-input:focus:not(:focus-visible)~.spui-ToggleSwitch-outline{box-shadow:none}.spui-ButtonSwitch{align-items:stretch;display:flex;flex-direction:row}.spui-ButtonSwitch-button{align-items:center;background-color:var(--color-surface-tertiary);border:none;border-radius:0;color:var(--color-text-medium-emphasis);display:inline-flex;flex:1;font-size:.8125em;gap:4px;justify-content:center;line-height:1.3;padding:8px 4px;position:relative;text-align:center;text-decoration:none;transition:font-weight .35s ease,color .35s ease,background-color .15s ease;white-space:nowrap}.spui-ButtonSwitch-button:hover{background-color:var(--color-hover-neutral-button)}.spui-ButtonSwitch-button[aria-pressed=true]{background-color:var(--color-surface-accent-primary);font-weight:700}.spui-ButtonSwitch-button[aria-pressed=true] .spui-ButtonSwitch-icon{color:var(--color-object-high-emphasis-inverse)}.spui-ButtonSwitch-button[aria-pressed=true] .spui-ButtonSwitch-label{color:var(--color-text-high-emphasis-inverse)}.spui-ButtonSwitch-button[aria-pressed=true]:hover{background-color:var(--color-hover-contained-button)}.spui-ButtonSwitch-button:focus-visible{outline:2px solid var(--color-focus-clarity);outline-offset:2px}.spui-ButtonSwitch-button:first-child{border-bottom-left-radius:6px;border-top-left-radius:6px}.spui-ButtonSwitch-button:last-child{border-bottom-right-radius:6px;border-top-right-radius:6px}.spui-ButtonSwitch-button+.spui-ButtonSwitch-button:after{background-color:var(--color-border-low-emphasis);content:"";height:100%;left:-.5px;position:absolute;top:0;width:1px}.spui-ButtonSwitch-icon{flex-shrink:0}.spui-ButtonSwitch-label{margin:0;white-space:break-spaces}
package/Form/index.d.ts CHANGED
@@ -6,4 +6,5 @@ export { Radio } from './Radio';
6
6
  export { TextArea } from './TextArea';
7
7
  export { TextField } from './TextField';
8
8
  export { ToggleSwitch } from './ToggleSwitch';
9
+ export { ButtonSwitch } from './ButtonSwitch/ButtonSwitch';
9
10
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/Form/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/Form/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC"}
package/Form/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ToggleSwitch = exports.TextField = exports.TextArea = exports.Radio = exports.InvalidMessage = exports.InputLabel = exports.DropDown = exports.Checkbox = void 0;
3
+ exports.ButtonSwitch = exports.ToggleSwitch = exports.TextField = exports.TextArea = exports.Radio = exports.InvalidMessage = exports.InputLabel = exports.DropDown = exports.Checkbox = void 0;
4
4
  var Checkbox_1 = require("./Checkbox");
5
5
  Object.defineProperty(exports, "Checkbox", { enumerable: true, get: function () { return Checkbox_1.Checkbox; } });
6
6
  var DropDown_1 = require("./DropDown");
@@ -17,4 +17,6 @@ var TextField_1 = require("./TextField");
17
17
  Object.defineProperty(exports, "TextField", { enumerable: true, get: function () { return TextField_1.TextField; } });
18
18
  var ToggleSwitch_1 = require("./ToggleSwitch");
19
19
  Object.defineProperty(exports, "ToggleSwitch", { enumerable: true, get: function () { return ToggleSwitch_1.ToggleSwitch; } });
20
+ var ButtonSwitch_1 = require("./ButtonSwitch/ButtonSwitch");
21
+ Object.defineProperty(exports, "ButtonSwitch", { enumerable: true, get: function () { return ButtonSwitch_1.ButtonSwitch; } });
20
22
  //# sourceMappingURL=index.js.map
package/Form/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/Form/index.ts"],"names":[],"mappings":";;;AAAA,uCAAsC;AAA7B,oGAAA,QAAQ,OAAA;AACjB,uCAAsC;AAA7B,oGAAA,QAAQ,OAAA;AACjB,2CAA0C;AAAjC,wGAAA,UAAU,OAAA;AACnB,mDAAkD;AAAzC,gHAAA,cAAc,OAAA;AACvB,iCAAgC;AAAvB,8FAAA,KAAK,OAAA;AACd,uCAAsC;AAA7B,oGAAA,QAAQ,OAAA;AACjB,yCAAwC;AAA/B,sGAAA,SAAS,OAAA;AAClB,+CAA8C;AAArC,4GAAA,YAAY,OAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/Form/index.ts"],"names":[],"mappings":";;;AAAA,uCAAsC;AAA7B,oGAAA,QAAQ,OAAA;AACjB,uCAAsC;AAA7B,oGAAA,QAAQ,OAAA;AACjB,2CAA0C;AAAjC,wGAAA,UAAU,OAAA;AACnB,mDAAkD;AAAzC,gHAAA,cAAc,OAAA;AACvB,iCAAgC;AAAvB,8FAAA,KAAK,OAAA;AACd,uCAAsC;AAA7B,oGAAA,QAAQ,OAAA;AACjB,yCAAwC;AAA/B,sGAAA,SAAS,OAAA;AAClB,+CAA8C;AAArC,4GAAA,YAAY,OAAA;AACrB,4DAA2D;AAAlD,4GAAA,YAAY,OAAA"}
package/Form/index.mjs CHANGED
@@ -6,3 +6,4 @@ export { Radio } from "./Radio.mjs";
6
6
  export { TextArea } from "./TextArea.mjs";
7
7
  export { TextField } from "./TextField.mjs";
8
8
  export { ToggleSwitch } from "./ToggleSwitch.mjs";
9
+ export { ButtonSwitch } from "./ButtonSwitch/ButtonSwitch.mjs";
package/Icon/Alt.d.ts ADDED
@@ -0,0 +1,5 @@
1
+ import * as React from 'react';
2
+ import type { SVGProps } from 'react';
3
+ declare const SvgAlt: (props: SVGProps<SVGSVGElement>) => React.JSX.Element;
4
+ export default SvgAlt;
5
+ //# sourceMappingURL=Alt.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Alt.d.ts","sourceRoot":"","sources":["../../src/Icon/Alt.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACtC,QAAA,MAAM,MAAM,UAAW,SAAS,aAAa,CAAC,sBAW7C,CAAC;AACF,eAAe,MAAM,CAAC"}
package/Icon/Alt.js ADDED
@@ -0,0 +1,41 @@
1
+ "use strict";
2
+ var __assign = (this && this.__assign) || function () {
3
+ __assign = Object.assign || function(t) {
4
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
5
+ s = arguments[i];
6
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
+ t[p] = s[p];
8
+ }
9
+ return t;
10
+ };
11
+ return __assign.apply(this, arguments);
12
+ };
13
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
14
+ if (k2 === undefined) k2 = k;
15
+ var desc = Object.getOwnPropertyDescriptor(m, k);
16
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
17
+ desc = { enumerable: true, get: function() { return m[k]; } };
18
+ }
19
+ Object.defineProperty(o, k2, desc);
20
+ }) : (function(o, m, k, k2) {
21
+ if (k2 === undefined) k2 = k;
22
+ o[k2] = m[k];
23
+ }));
24
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
25
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
26
+ }) : function(o, v) {
27
+ o["default"] = v;
28
+ });
29
+ var __importStar = (this && this.__importStar) || function (mod) {
30
+ if (mod && mod.__esModule) return mod;
31
+ var result = {};
32
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
33
+ __setModuleDefault(result, mod);
34
+ return result;
35
+ };
36
+ Object.defineProperty(exports, "__esModule", { value: true });
37
+ var React = __importStar(require("react"));
38
+ var SvgAlt = function (props) { return (React.createElement("svg", __assign({ width: "1em", height: "1em", viewBox: "0 0 24 24", fill: "currentColor", role: "img" }, props),
39
+ React.createElement("path", { d: "M18 20.001H6c-2.21 0-4-1.79-4-4v-8c0-2.21 1.79-4 4-4h12c2.21 0 4 1.79 4 4v8c0 2.21-1.79 4-4 4m-12-14c-1.1 0-2 .9-2 2v8c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-8c0-1.1-.9-2-2-2zm1.85 3.26c-1.25 0-2.04.7-2.25.91-.28.28-.28.74 0 1.02.22.22.55.27.85.12.06-.03.13-.09.2-.15.04-.03.07-.06.11-.09.1-.09.47-.37 1.1-.37.52 0 .95.25 1.05.61-.36.18-.98.33-1.31.41-.55.13-2.24.52-2.24 2.16 0 1.21 1.12 2.19 2.51 2.19s2.5-.98 2.51-2.18c.02-.79.02-1.57 0-2.43-.01-1.25-1.09-2.19-2.51-2.19zm1.07 3.58v1.02c-.04.37-.46.76-1.08.76-.58 0-1.07-.34-1.07-.75 0-.17 0-.48 1.14-.76.37-.08.71-.17 1.01-.27m4.94 1.83c-.08-.03-.19-.03-.27-.04h-.1c-.28-.03-.39-.18-.39-.54v-5.7c0-.13 0-.22-.01-.3a.74.74 0 0 0-.7-.56c-.32 0-.62.23-.7.56-.02.09-.02.19-.02.3v5.5c0 .31.01.55.04.68.15.88.74 1.42 1.65 1.5h.19c.12 0 .26 0 .35-.04.29-.09.49-.37.49-.68s-.21-.61-.5-.68zm3.9-.02s-.24-.03-.28-.03c-.34-.05-.48-.24-.49-.62v-2.94h.75c.39 0 .73-.33.73-.72a.74.74 0 0 0-.73-.73h-.75v-1.23c0-.15-.01-.24-.02-.31a.745.745 0 0 0-.7-.55c-.32 0-.62.22-.7.55-.01.07-.01.17-.01.31v1.23h-.47c-.4 0-.73.33-.73.73s.33.72.73.72h.47v3.2c.09 1.08.81 1.75 1.91 1.81.09 0 .21 0 .3-.01.34-.06.6-.36.6-.71a.7.7 0 0 0-.58-.7z" }))); };
40
+ exports.default = SvgAlt;
41
+ //# sourceMappingURL=Alt.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Alt.js","sourceRoot":"","sources":["../../src/Icon/Alt.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,2CAA+B;AAE/B,IAAM,MAAM,GAAG,UAAC,KAA8B,IAAK,OAAA,CACjD,sCACE,KAAK,EAAC,KAAK,EACX,MAAM,EAAC,KAAK,EACZ,OAAO,EAAC,WAAW,EACnB,IAAI,EAAC,cAAc,EACnB,IAAI,EAAC,KAAK,IACN,KAAK;IAET,8BAAM,CAAC,EAAC,2oCAA2oC,GAAG,CAClpC,CACP,EAXkD,CAWlD,CAAC;AACF,kBAAe,MAAM,CAAC"}
package/Icon/Alt.mjs ADDED
@@ -0,0 +1,4 @@
1
+ import * as React from 'react';
2
+ const SvgAlt = (props) => (React.createElement("svg", { width: "1em", height: "1em", viewBox: "0 0 24 24", fill: "currentColor", role: "img", ...props },
3
+ React.createElement("path", { d: "M18 20.001H6c-2.21 0-4-1.79-4-4v-8c0-2.21 1.79-4 4-4h12c2.21 0 4 1.79 4 4v8c0 2.21-1.79 4-4 4m-12-14c-1.1 0-2 .9-2 2v8c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-8c0-1.1-.9-2-2-2zm1.85 3.26c-1.25 0-2.04.7-2.25.91-.28.28-.28.74 0 1.02.22.22.55.27.85.12.06-.03.13-.09.2-.15.04-.03.07-.06.11-.09.1-.09.47-.37 1.1-.37.52 0 .95.25 1.05.61-.36.18-.98.33-1.31.41-.55.13-2.24.52-2.24 2.16 0 1.21 1.12 2.19 2.51 2.19s2.5-.98 2.51-2.18c.02-.79.02-1.57 0-2.43-.01-1.25-1.09-2.19-2.51-2.19zm1.07 3.58v1.02c-.04.37-.46.76-1.08.76-.58 0-1.07-.34-1.07-.75 0-.17 0-.48 1.14-.76.37-.08.71-.17 1.01-.27m4.94 1.83c-.08-.03-.19-.03-.27-.04h-.1c-.28-.03-.39-.18-.39-.54v-5.7c0-.13 0-.22-.01-.3a.74.74 0 0 0-.7-.56c-.32 0-.62.23-.7.56-.02.09-.02.19-.02.3v5.5c0 .31.01.55.04.68.15.88.74 1.42 1.65 1.5h.19c.12 0 .26 0 .35-.04.29-.09.49-.37.49-.68s-.21-.61-.5-.68zm3.9-.02s-.24-.03-.28-.03c-.34-.05-.48-.24-.49-.62v-2.94h.75c.39 0 .73-.33.73-.72a.74.74 0 0 0-.73-.73h-.75v-1.23c0-.15-.01-.24-.02-.31a.745.745 0 0 0-.7-.55c-.32 0-.62.22-.7.55-.01.07-.01.17-.01.31v1.23h-.47c-.4 0-.73.33-.73.73s.33.72.73.72h.47v3.2c.09 1.08.81 1.75 1.91 1.81.09 0 .21 0 .3-.01.34-.06.6-.36.6-.71a.7.7 0 0 0-.58-.7z" })));
4
+ export default SvgAlt;
@@ -0,0 +1,5 @@
1
+ import * as React from 'react';
2
+ import type { SVGProps } from 'react';
3
+ declare const SvgAltFill: (props: SVGProps<SVGSVGElement>) => React.JSX.Element;
4
+ export default SvgAltFill;
5
+ //# sourceMappingURL=AltFill.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AltFill.d.ts","sourceRoot":"","sources":["../../src/Icon/AltFill.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACtC,QAAA,MAAM,UAAU,UAAW,SAAS,aAAa,CAAC,sBAWjD,CAAC;AACF,eAAe,UAAU,CAAC"}
@@ -0,0 +1,41 @@
1
+ "use strict";
2
+ var __assign = (this && this.__assign) || function () {
3
+ __assign = Object.assign || function(t) {
4
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
5
+ s = arguments[i];
6
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
+ t[p] = s[p];
8
+ }
9
+ return t;
10
+ };
11
+ return __assign.apply(this, arguments);
12
+ };
13
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
14
+ if (k2 === undefined) k2 = k;
15
+ var desc = Object.getOwnPropertyDescriptor(m, k);
16
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
17
+ desc = { enumerable: true, get: function() { return m[k]; } };
18
+ }
19
+ Object.defineProperty(o, k2, desc);
20
+ }) : (function(o, m, k, k2) {
21
+ if (k2 === undefined) k2 = k;
22
+ o[k2] = m[k];
23
+ }));
24
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
25
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
26
+ }) : function(o, v) {
27
+ o["default"] = v;
28
+ });
29
+ var __importStar = (this && this.__importStar) || function (mod) {
30
+ if (mod && mod.__esModule) return mod;
31
+ var result = {};
32
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
33
+ __setModuleDefault(result, mod);
34
+ return result;
35
+ };
36
+ Object.defineProperty(exports, "__esModule", { value: true });
37
+ var React = __importStar(require("react"));
38
+ var SvgAltFill = function (props) { return (React.createElement("svg", __assign({ width: "1em", height: "1em", viewBox: "0 0 24 24", fill: "currentColor", role: "img" }, props),
39
+ React.createElement("path", { d: "M7.92 13.161c.35-.08.67-.16.95-.25v.95c-.03.34-.43.71-1.03.71-.56 0-1.02-.32-1.02-.7 0-.16 0-.45 1.1-.71M22 8.001v8c0 2.21-1.79 4-4 4H6c-2.21 0-4-1.79-4-4v-8c0-2.21 1.79-4 4-4h12c2.21 0 4 1.79 4 4m-11.6 3.45c-.01-1.28-1.11-2.24-2.56-2.24-1.27 0-2.07.71-2.29.92-.3.3-.3.79 0 1.09.23.23.59.28.91.13.07-.04.14-.1.21-.16.04-.03.07-.06.11-.09.09-.08.45-.36 1.06-.36.48 0 .87.21.99.53-.36.17-.94.31-1.26.39-1.51.35-2.28 1.09-2.28 2.2 0 1.24 1.15 2.24 2.56 2.24s2.54-1 2.56-2.23c.02-.8.02-1.57 0-2.44zm4.01 3.9c0-.35-.22-.65-.53-.73-.09-.03-.19-.03-.29-.04h-.1c-.21-.03-.34-.12-.34-.49v-5.7c0-.13 0-.23-.01-.31a.78.78 0 0 0-.75-.59c-.35 0-.66.25-.75.6-.02.09-.02.19-.02.31v5.5c0 .18 0 .51.04.69.16.91.76 1.45 1.7 1.54h.19c.13 0 .27-.01.36-.05.31-.09.52-.39.52-.73zm2.63-1.35v-2.89h.7c.42 0 .78-.35.78-.77s-.35-.78-.78-.78h-.7v-1.18c0-.15-.01-.25-.03-.32a.78.78 0 0 0-.75-.58c-.35 0-.66.24-.75.59-.01.08-.01.17-.01.32v1.18h-.42c-.43 0-.78.35-.78.78s.36.77.78.77h.42v3.15c.1 1.1.83 1.8 1.96 1.86.1 0 .21 0 .3-.01a.78.78 0 0 0 .64-.76c0-.37-.26-.69-.61-.75-.05-.02-.29-.03-.29-.03-.26-.04-.44-.15-.45-.57z" }))); };
40
+ exports.default = SvgAltFill;
41
+ //# sourceMappingURL=AltFill.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AltFill.js","sourceRoot":"","sources":["../../src/Icon/AltFill.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,2CAA+B;AAE/B,IAAM,UAAU,GAAG,UAAC,KAA8B,IAAK,OAAA,CACrD,sCACE,KAAK,EAAC,KAAK,EACX,MAAM,EAAC,KAAK,EACZ,OAAO,EAAC,WAAW,EACnB,IAAI,EAAC,cAAc,EACnB,IAAI,EAAC,KAAK,IACN,KAAK;IAET,8BAAM,CAAC,EAAC,ykCAAykC,GAAG,CAChlC,CACP,EAXsD,CAWtD,CAAC;AACF,kBAAe,UAAU,CAAC"}
@@ -0,0 +1,4 @@
1
+ import * as React from 'react';
2
+ const SvgAltFill = (props) => (React.createElement("svg", { width: "1em", height: "1em", viewBox: "0 0 24 24", fill: "currentColor", role: "img", ...props },
3
+ React.createElement("path", { d: "M7.92 13.161c.35-.08.67-.16.95-.25v.95c-.03.34-.43.71-1.03.71-.56 0-1.02-.32-1.02-.7 0-.16 0-.45 1.1-.71M22 8.001v8c0 2.21-1.79 4-4 4H6c-2.21 0-4-1.79-4-4v-8c0-2.21 1.79-4 4-4h12c2.21 0 4 1.79 4 4m-11.6 3.45c-.01-1.28-1.11-2.24-2.56-2.24-1.27 0-2.07.71-2.29.92-.3.3-.3.79 0 1.09.23.23.59.28.91.13.07-.04.14-.1.21-.16.04-.03.07-.06.11-.09.09-.08.45-.36 1.06-.36.48 0 .87.21.99.53-.36.17-.94.31-1.26.39-1.51.35-2.28 1.09-2.28 2.2 0 1.24 1.15 2.24 2.56 2.24s2.54-1 2.56-2.23c.02-.8.02-1.57 0-2.44zm4.01 3.9c0-.35-.22-.65-.53-.73-.09-.03-.19-.03-.29-.04h-.1c-.21-.03-.34-.12-.34-.49v-5.7c0-.13 0-.23-.01-.31a.78.78 0 0 0-.75-.59c-.35 0-.66.25-.75.6-.02.09-.02.19-.02.31v5.5c0 .18 0 .51.04.69.16.91.76 1.45 1.7 1.54h.19c.13 0 .27-.01.36-.05.31-.09.52-.39.52-.73zm2.63-1.35v-2.89h.7c.42 0 .78-.35.78-.77s-.35-.78-.78-.78h-.7v-1.18c0-.15-.01-.25-.03-.32a.78.78 0 0 0-.75-.58c-.35 0-.66.24-.75.59-.01.08-.01.17-.01.32v1.18h-.42c-.43 0-.78.35-.78.78s.36.77.78.77h.42v3.15c.1 1.1.83 1.8 1.96 1.86.1 0 .21 0 .3-.01a.78.78 0 0 0 .64-.76c0-.37-.26-.69-.61-.75-.05-.02-.29-.03-.29-.03-.26-.04-.44-.15-.45-.57z" })));
4
+ export default SvgAltFill;
@@ -0,0 +1,5 @@
1
+ import * as React from 'react';
2
+ import type { SVGProps } from 'react';
3
+ declare const SvgTable: (props: SVGProps<SVGSVGElement>) => React.JSX.Element;
4
+ export default SvgTable;
5
+ //# sourceMappingURL=Table.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Table.d.ts","sourceRoot":"","sources":["../../src/Icon/Table.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACtC,QAAA,MAAM,QAAQ,UAAW,SAAS,aAAa,CAAC,sBAW/C,CAAC;AACF,eAAe,QAAQ,CAAC"}
package/Icon/Table.js ADDED
@@ -0,0 +1,41 @@
1
+ "use strict";
2
+ var __assign = (this && this.__assign) || function () {
3
+ __assign = Object.assign || function(t) {
4
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
5
+ s = arguments[i];
6
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
+ t[p] = s[p];
8
+ }
9
+ return t;
10
+ };
11
+ return __assign.apply(this, arguments);
12
+ };
13
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
14
+ if (k2 === undefined) k2 = k;
15
+ var desc = Object.getOwnPropertyDescriptor(m, k);
16
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
17
+ desc = { enumerable: true, get: function() { return m[k]; } };
18
+ }
19
+ Object.defineProperty(o, k2, desc);
20
+ }) : (function(o, m, k, k2) {
21
+ if (k2 === undefined) k2 = k;
22
+ o[k2] = m[k];
23
+ }));
24
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
25
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
26
+ }) : function(o, v) {
27
+ o["default"] = v;
28
+ });
29
+ var __importStar = (this && this.__importStar) || function (mod) {
30
+ if (mod && mod.__esModule) return mod;
31
+ var result = {};
32
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
33
+ __setModuleDefault(result, mod);
34
+ return result;
35
+ };
36
+ Object.defineProperty(exports, "__esModule", { value: true });
37
+ var React = __importStar(require("react"));
38
+ var SvgTable = function (props) { return (React.createElement("svg", __assign({ width: "1em", height: "1em", viewBox: "0 0 24 24", fill: "currentColor", role: "img" }, props),
39
+ React.createElement("path", { d: "M18 6c1.1 0 2 .9 2 2v8.01c0 1.1-.9 2-2 2H6c-1.1 0-2-.9-2-2V8c0-1.1.9-2 2-2h12.01M18 4H6C3.79 4 2 5.79 2 8v8.01c0 2.21 1.79 4 4 4h12.01c2.21 0 4-1.79 4-4V8c0-2.21-1.79-4-4-4zm.25 4.5c0-.55-.45-1-1-1H9.5c-.55 0-1 .45-1 1s.45 1 1 1h7.75c.55 0 1-.45 1-1M17 12c0-.55-.45-1-1-1H9.5c-.55 0-1 .45-1 1s.45 1 1 1H16c.55 0 1-.45 1-1m-1.25 3.5c0-.55-.45-1-1-1H9.5c-.55 0-1 .45-1 1s.45 1 1 1h5.25c.55 0 1-.45 1-1m-9.25-8c-.55 0-1 .45-1 1s.45 1 1 1 1-.45 1-1-.45-1-1-1m0 3.5c-.55 0-1 .45-1 1s.45 1 1 1 1-.45 1-1-.45-1-1-1m0 3.5c-.55 0-1 .45-1 1s.45 1 1 1 1-.45 1-1-.45-1-1-1" }))); };
40
+ exports.default = SvgTable;
41
+ //# sourceMappingURL=Table.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Table.js","sourceRoot":"","sources":["../../src/Icon/Table.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,2CAA+B;AAE/B,IAAM,QAAQ,GAAG,UAAC,KAA8B,IAAK,OAAA,CACnD,sCACE,KAAK,EAAC,KAAK,EACX,MAAM,EAAC,KAAK,EACZ,OAAO,EAAC,WAAW,EACnB,IAAI,EAAC,cAAc,EACnB,IAAI,EAAC,KAAK,IACN,KAAK;IAET,8BAAM,CAAC,EAAC,kjBAAkjB,GAAG,CACzjB,CACP,EAXoD,CAWpD,CAAC;AACF,kBAAe,QAAQ,CAAC"}